1 #include "parser/keywords.h"
6 extern int braces_open;
13 struct _include_path { char * path;
14 struct _include_path * next;
17 extern struct _include_path *include_paths;
19 struct cursor { char *name;
21 struct arguments * argsinsert;
22 struct arguments * argsresult;
26 extern struct cursor *cur;
28 /* This is a linked list of the variable names and types. */
32 struct ECPGtype * type;
34 struct variable * next;
37 extern struct ECPGtype ecpg_no_indicator;
38 extern struct variable no_indicator;
41 struct variable * variable;
42 struct variable * indicator;
43 struct arguments * next;
46 extern struct arguments * argsinsert;
47 extern struct arguments * argsresult;
51 extern void lex_init(void);
52 extern char *input_filename;
53 extern int yyparse(void);
54 extern void *mm_alloc(size_t), *mm_realloc(void *, size_t);
55 ScanKeyword * ScanECPGKeywordLookup(char *);
56 ScanKeyword * ScanCKeywordLookup(char *);
57 extern void yyerror(char *);
62 #define PARSE_ERROR -1
63 #define ILLEGAL_OPTION -2
65 #define NO_INCLUDE_FILE ENOENT
66 #define OUT_OF_MEMORY ENOMEM