summaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorTom Lane2002-07-30 16:33:08 +0000
committerTom Lane2002-07-30 16:33:08 +0000
commit9f1fc1080e91005cad96f84463e2392604823024 (patch)
tree6ef13d6e0f5bd9efc7c4aad4ec7953f8c341a2c1 /src/interfaces
parent74780590d81150712e7971a9a6af24c0ef78842f (diff)
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.
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/ecpg/preproc/pgc.l21
1 files changed, 7 insertions, 14 deletions
diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l
index 9ecbc23cacb..20f08b6182a 100644
--- a/src/interfaces/ecpg/preproc/pgc.l
+++ b/src/interfaces/ecpg/preproc/pgc.l
@@ -12,7 +12,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.97 2002/07/20 08:24:18 meskes Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.98 2002/07/30 16:33:08 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -26,12 +26,6 @@
#include "extern.h"
#include "preproc.h"
-/* some versions of lex define this as a macro */
-#if defined(yywrap)
-#undef yywrap
-#endif /* yywrap */
-
-#define YY_NO_UNPUT
extern YYSTYPE yylval;
@@ -75,7 +69,13 @@ static struct _if_value
%}
+%option 8bit
+%option never-interactive
+%option nounput
+%option noyywrap
+
%option yylineno
+
%s C SQL incl def def_ident
/*
@@ -945,10 +945,3 @@ addlitchar(unsigned char ychar)
literallen += 1;
literalbuf[literallen] = '\0';
}
-
-int
-yywrap(void)
-{
- return(1);
-}
-