diff options
Diffstat (limited to 'contrib/seg/segscan.l')
-rw-r--r-- | contrib/seg/segscan.l | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/contrib/seg/segscan.l b/contrib/seg/segscan.l index 5fe4a2c4537..6db24fdd1f7 100644 --- a/contrib/seg/segscan.l +++ b/contrib/seg/segscan.l @@ -3,8 +3,6 @@ * A scanner for EMP-style numeric ranges */ -#include "postgres.h" - /* No reason to constrain amount of data slurped */ #define YY_READ_BUF_SIZE 16777216 @@ -22,12 +20,6 @@ fprintf_to_ereport(const char *fmt, const char *msg) static YY_BUFFER_STATE scanbufhandle; static char *scanbuf; static int scanbuflen; - -/* flex 2.5.4 doesn't bother with a decl for this */ -int seg_yylex(void); - -void seg_scanner_init(const char *str); -void seg_scanner_finish(void); %} %option 8bit @@ -59,7 +51,7 @@ float ({integer}|{real})([eE]{integer})? %% -void pg_attribute_noreturn +void yyerror(SEG *result, const char *message) { if (*yytext == YY_END_OF_BUFFER_CHAR) |