Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9a8e233

Browse files
committed
Remove a couple other vestigial yylex() declarations.
These were workarounds for a long-gone flex bug; all supported versions of flex emit an extern declaration as expected.
1 parent e9dd03c commit 9a8e233

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/backend/utils/misc/guc-file.l

-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ static sigjmp_buf *GUC_flex_fatal_jmp;
4747

4848
static void FreeConfigVariable(ConfigVariable *item);
4949

50-
/* flex fails to supply a prototype for yylex, so provide one */
51-
int GUC_yylex(void);
52-
5350
static int GUC_flex_fatal(const char *msg);
5451
static char *GUC_scanstr(const char *s);
5552

src/bin/psql/psqlscan.l

-2
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ static int backtick_start_offset;
114114
#define LEXRES_OK 3 /* OK completion of backslash argument */
115115

116116

117-
int yylex(void);
118-
119117
static void evaluate_backtick(void);
120118
static void push_new_buffer(const char *newstr, const char *varname);
121119
static void pop_buffer_stack(PsqlScanState state);

0 commit comments

Comments
 (0)