1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +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

@ -50,9 +50,14 @@ int bytestoread = 0; /* for limiting read from filehandle */
} \
}
#define YY_NO_UNPUT
%}
%option 8bit
%option never-interactive
%option nounput
%option noyywrap
/* parser's state for parsing defis-word */
%x DELIM
/* parser's state for parsing URL*/
@ -289,10 +294,6 @@ ftp"://" {
%%
int tsearch_yywrap(void) {
return 1;
}
/* clearing after parsing from string */
void end_parse() {
if (s) { free(s); s=NULL; }