diff options
| author | Michael Meskes <meskes@postgresql.org> | 2008-05-20 23:17:32 +0000 |
|---|---|---|
| committer | Michael Meskes <meskes@postgresql.org> | 2008-05-20 23:17:32 +0000 |
| commit | f7563e97108b66b58a2f81ac491a9f8c328bb303 (patch) | |
| tree | 5ae56d74a28e979b6bd6e63fa2ae323fdd8f8256 /src/interfaces/ecpg/preproc/extern.h | |
| parent | 1ac1bea076be24f03c9c59911a8575222baef7f1 (diff) | |
| download | postgresql-f7563e97108b66b58a2f81ac491a9f8c328bb303.tar.gz | |
Synced parser.
Made ecpg parser use backend provided keyword list.
Changed whenever test so exit value is 0.
Diffstat (limited to 'src/interfaces/ecpg/preproc/extern.h')
| -rw-r--r-- | src/interfaces/ecpg/preproc/extern.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/interfaces/ecpg/preproc/extern.h b/src/interfaces/ecpg/preproc/extern.h index c9097c87ee..7f55441da3 100644 --- a/src/interfaces/ecpg/preproc/extern.h +++ b/src/interfaces/ecpg/preproc/extern.h @@ -1,9 +1,10 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/extern.h,v 1.70 2007/11/15 21:14:45 momjian Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/extern.h,v 1.71 2008/05/20 23:17:32 meskes Exp $ */ #ifndef _ECPG_PREPROC_EXTERN_H #define _ECPG_PREPROC_EXTERN_H #include "type.h" +#include "parser/keywords.h" #include <errno.h> #ifndef CHAR_BIT @@ -74,7 +75,6 @@ extern void base_yyerror(const char *); extern void *mm_alloc(size_t), *mm_realloc(void *, size_t); extern char *mm_strdup(const char *); extern void mmerror(int, enum errortype, char *,...); -extern const ScanKeyword *ScanCKeywordLookup(char *); extern void output_get_descr_header(char *); extern void output_get_descr(char *, char *); extern void output_set_descr_header(char *); @@ -96,8 +96,9 @@ extern void check_indicator(struct ECPGtype *); extern void remove_typedefs(int); extern void remove_variables(int); extern struct variable *new_variable(const char *, struct ECPGtype *, int); -extern const ScanKeyword *ScanKeywordLookup(char *text); -extern const ScanKeyword *DoLookup(char *, const ScanKeyword *, const ScanKeyword *); +extern const ScanKeyword *ScanCKeywordLookup(const char *); +extern const ScanKeyword *ScanECPGKeywordLookup(const char *text); +extern const ScanKeyword *DoLookup(const char *, const ScanKeyword *, const ScanKeyword *); extern void scanner_init(const char *); extern void parser_init(void); extern void scanner_finish(void); |
