mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
+ + Son Feb 21 14:10:47 CET 1999 + + - Fixed variable detection in libecpg. + + Mon Feb 22 19:47:45 CET 1999 + + - Added 'at <db_connection>' option to all commands it is apllicable + to. Due to changing the API of some libecpg functions this + requires me to increase the major version number. + - Synced pgc.l with scan.l. + - Added support for unions. + - Set library version to 3.0.0 + - Set ecpg version to 3.0.0
44 lines
1.0 KiB
C
44 lines
1.0 KiB
C
#include "parser/keywords.h"
|
|
#include "type.h"
|
|
#include <errno.h>
|
|
|
|
/* variables */
|
|
|
|
extern int braces_open,
|
|
no_auto_trans, struct_level;
|
|
extern char *yytext, errortext[128];
|
|
extern int yylineno,
|
|
yyleng;
|
|
extern FILE *yyin,
|
|
*yyout;
|
|
|
|
extern struct _include_path *include_paths;
|
|
extern struct cursor *cur;
|
|
extern struct typedefs *types;
|
|
extern struct _defines *defines;
|
|
extern struct ECPGtype ecpg_no_indicator;
|
|
extern struct variable no_indicator;
|
|
extern struct arguments *argsinsert;
|
|
extern struct arguments *argsresult;
|
|
|
|
/* functions */
|
|
|
|
extern void lex_init(void);
|
|
extern char *input_filename;
|
|
extern int yyparse(void);
|
|
extern void *mm_alloc(size_t), *mm_realloc(void *, size_t);
|
|
extern char *mm_strdup(const char *);
|
|
ScanKeyword *ScanECPGKeywordLookup(char *);
|
|
ScanKeyword *ScanCKeywordLookup(char *);
|
|
extern void yyerror(char *);
|
|
|
|
/* return codes */
|
|
|
|
#define OK 0
|
|
#define PARSE_ERROR -1
|
|
#define ILLEGAL_OPTION -2
|
|
#define INDICATOR_NOT_ARRAY -3
|
|
|
|
#define NO_INCLUDE_FILE ENOENT
|
|
#define OUT_OF_MEMORY ENOMEM
|