diff options
author | Michael Meskes <meskes@postgresql.org> | 2001-12-09 15:27:49 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2001-12-09 15:27:49 +0000 |
commit | a4420c497039c5cba5eae332ccee4830d9879f3c (patch) | |
tree | f25d0f5f8eb26d16943f9c1a3bfd5ba34e76ef3b /src/interfaces/ecpg/preproc/extern.h | |
parent | eda51264c8402c032c724e12fb7161b9c18bb61e (diff) | |
download | postgresql-a4420c497039c5cba5eae332ccee4830d9879f3c.tar.gz postgresql-a4420c497039c5cba5eae332ccee4830d9879f3c.zip |
Fixed several bugs concerning indicators and added error messages instead of segfaults.
Diffstat (limited to 'src/interfaces/ecpg/preproc/extern.h')
-rw-r--r-- | src/interfaces/ecpg/preproc/extern.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/preproc/extern.h b/src/interfaces/ecpg/preproc/extern.h index 1fd27655db9..985971647bc 100644 --- a/src/interfaces/ecpg/preproc/extern.h +++ b/src/interfaces/ecpg/preproc/extern.h @@ -55,7 +55,7 @@ extern int yylex(void); extern void yyerror(char *); extern void *mm_alloc(size_t), *mm_realloc(void *, size_t); extern char *mm_strdup(const char *); -extern void mmerror(enum errortype, char *); +extern void mmerror(int, enum errortype, char *); extern ScanKeyword *ScanECPGKeywordLookup(char *); extern ScanKeyword *ScanCKeywordLookup(char *); extern void output_get_descr_header(char *); @@ -85,3 +85,5 @@ extern ScanKeyword *ScanKeywordLookup(char *text); #define PARSE_ERROR 3 #define INDICATOR_NOT_ARRAY 4 #define OUT_OF_MEMORY 5 +#define INDICATOR_NOT_STRUCT 6 +#define INDICATOR_NOT_SIMPLE 7 |