Remove a couple other vestigial yylex() declarations.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Mar 2015 17:12:28 +0000 (13:12 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Mar 2015 17:12:28 +0000 (13:12 -0400)
These were workarounds for a long-gone flex bug; all supported versions
of flex emit an extern declaration as expected.

src/backend/utils/misc/guc-file.l
src/bin/psql/psqlscan.l

index b2f04e512a98e6f4601b8418e3aea34ff2c07234..c5e0fac4671312904acf12c7c23c2b7c9ad61469 100644 (file)
@@ -47,9 +47,6 @@ static sigjmp_buf *GUC_flex_fatal_jmp;
 
 static void FreeConfigVariable(ConfigVariable *item);
 
-/* flex fails to supply a prototype for yylex, so provide one */
-int GUC_yylex(void);
-
 static int GUC_flex_fatal(const char *msg);
 static char *GUC_scanstr(const char *s);
 
index bb134a42d8a983e40a6a2e929703c6aba90aea71..be059abd8d9f8cdc8552ad35077355c4402ed326 100644 (file)
@@ -114,8 +114,6 @@ static int  backtick_start_offset;
 #define LEXRES_OK          3   /* OK completion of backslash argument */
 
 
-int    yylex(void);
-
 static void evaluate_backtick(void);
 static void push_new_buffer(const char *newstr, const char *varname);
 static void pop_buffer_stack(PsqlScanState state);