summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/preproc/extern.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-12-11 18:04:28 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2016-12-11 18:04:28 -0500
commit15b3722700ca043494804dfd1fe7556c50d4f9e9 (patch)
tree9e9535882d47c4a2255e4f09990183286c86d813 /src/interfaces/ecpg/preproc/extern.h
parent4262c5b1eecc63f12f86daa293428009eee54b5c (diff)
Use "%option prefix" to set API names in ecpg's lexer.
Back-patch commit 92fb64983 into the pre-9.6 branches. Without this, ecpg fails to build with the latest version of flex. It's not unreasonable that people would want to compile our old branches with recent tools. Per report from Дилян Палаузов. Discussion: https://postgr.es/m/d845c1af-e18d-6651-178f-9f08cdf37e10@aegee.org
Diffstat (limited to 'src/interfaces/ecpg/preproc/extern.h')
-rw-r--r--src/interfaces/ecpg/preproc/extern.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interfaces/ecpg/preproc/extern.h b/src/interfaces/ecpg/preproc/extern.h
index ea8fd8ed98c..b259a1b07c4 100644
--- a/src/interfaces/ecpg/preproc/extern.h
+++ b/src/interfaces/ecpg/preproc/extern.h
@@ -34,15 +34,15 @@ extern char *descriptor_index;
extern char *descriptor_name;
extern char *connection;
extern char *input_filename;
-extern char *yytext,
+extern char *base_yytext,
*token_start;
#ifdef YYDEBUG
-extern int yydebug;
+extern int base_yydebug;
#endif
-extern int yylineno;
-extern FILE *yyin,
- *yyout;
+extern int base_yylineno;
+extern FILE *base_yyin,
+ *base_yyout;
extern char *output_filename;
extern struct _include_path *include_paths;