1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-14 08:21:07 +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

@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootscanner.l,v 1.24 2002/06/20 20:29:26 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootscanner.l,v 1.25 2002/07/30 16:33:08 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -42,18 +42,18 @@
#include "bootstrap_tokens.h"
#define YY_NO_UNPUT
/* some versions of lex define this as a macro */
#if defined(yywrap)
#undef yywrap
#endif /* yywrap */
YYSTYPE yylval;
int yyline; /* keep track of the line number for error reporting */
%}
%option 8bit
%option never-interactive
%option nounput
%option noyywrap
D [0-9]
oct \\{D}{D}{D}
Exp [Ee][-+]?{D}+
@ -132,12 +132,6 @@ insert { return(INSERT_TUPLE); }
%%
int
yywrap(void)
{
return 1;
}
void
yyerror(const char *str)
{