4 #define YYLTYPE struct yyltype
6 #define YYERROR_VERBOSE 1
7 #define YYLLOC_DEFAULT(Current, Rhs, N) \
10 (Current).start = YYRHSLOC(Rhs, 1).start; \
11 (Current).end = YYRHSLOC(Rhs, N).end; \
13 fprintf(stderr, "WARNING: couldn't find location!\n"); \
22 void yyerror(char *s
);
24 void yyrestart(FILE *file
);
27 void reset_tokenizer(char *filename
);
32 struct node
*push_node(enum nodetype type
, long start
, long end
, int nchild
);
33 struct node
*push_node_name(enum nodetype type
, long start
, long end
, char *name
);
34 struct node
*push_decl(enum nodetype type
, long start
, long end
,
35 int nchild
, enum decltype decltype);
37 int typedef_name(char *filename
, char *name
, long offset
);