]> granicus.if.org Git - postgresql/blob - src/interfaces/ecpg/preproc/extern.h
Upgrade ECPG to 2.0
[postgresql] / src / interfaces / ecpg / preproc / extern.h
1 #include "parser/keywords.h"
2
3 /* variables */
4
5 extern int      debugging,
6                         braces_open;
7 extern char *yytext;
8 extern int      yylineno,
9                         yyleng;
10 extern FILE *yyin,
11                    *yyout;
12
13 struct _include_path {  char * path;
14                         struct _include_path * next;
15                      };
16
17 extern struct _include_path *include_paths;
18
19 struct cursor { char *name;
20                 char *command;
21                 struct cursor *next;
22               };
23
24 extern struct cursor *cur;
25
26 /* functions */
27
28 extern void lex_init(void);
29 extern char *input_filename;
30 extern int      yyparse(void);
31 extern void *mm_alloc(size_t), *mm_realloc(void *, size_t);
32 ScanKeyword * ScanECPGKeywordLookup(char *);
33 ScanKeyword * ScanCKeywordLookup(char *);
34 extern void yyerror(char *);