version 1.19, 2020/06/13 01:21:01 |
version 1.20, 2020/07/30 17:45:44 |
|
|
/* |
/* |
* this program makes the table to link function names |
* this program makes the table to link function names |
* and type indices that is used by execute() in run.c. |
* and type indices that is used by execute() in run.c. |
* it finds the indices in ytab.h, produced by yacc. |
* it finds the indices in awkgram.tab.h, produced by bison. |
*/ |
*/ |
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <string.h> |
#include <string.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include "awk.h" |
#include "awk.h" |
#include "ytab.h" |
#include "awkgram.tab.h" |
|
|
struct xx |
struct xx |
{ int token; |
{ int token; |
|
|
|
|
printf("#include <stdio.h>\n"); |
printf("#include <stdio.h>\n"); |
printf("#include \"awk.h\"\n"); |
printf("#include \"awk.h\"\n"); |
printf("#include \"ytab.h\"\n\n"); |
printf("#include \"awkgram.tab.h\"\n\n"); |
|
|
if (argc != 2) { |
if (argc != 2) { |
fprintf(stderr, "usage: maketab YTAB_H\n"); |
fprintf(stderr, "usage: maketab YTAB_H\n"); |