1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

Since we're depending on %option noyywrap in the main scanner now,

we may as well use it in all our flex files.  Make all the flex files
have a consistent set of options.
This commit is contained in:
Tom Lane
2002-07-30 16:33:08 +00:00
parent 74780590d8
commit 9f1fc1080e
7 changed files with 45 additions and 56 deletions

View File

@ -8,8 +8,6 @@
#include "segparse.h"
#include "buffer.h"
#define YY_NO_UNPUT 1
#undef yywrap
/* flex screws a couple symbols when used with the -P otion; fix those */
#define YY_DECL int seg_yylex YY_PROTO(( void )); \
@ -27,6 +25,12 @@ int seg_yylex YY_PROTO(( void ))
void seg_flush_scanner_buffer(void);
%}
%option 8bit
%option never-interactive
%option nounput
%option noyywrap
range (\.\.)(\.)?
plumin (\'\+\-\')|(\(\+\-)\)
integer [+-]?[0-9]+