#include "cubeparse.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 cube_yylex YY_PROTO(( void )); \
void cube_flush_scanner_buffer(void);
%}
+%option 8bit
+%option never-interactive
+%option nounput
+%option noyywrap
+
+
n [0-9]+
integer [+-]?{n}
real [+-]?({n}\.{n}?)|(\.{n})
#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 )); \
void seg_flush_scanner_buffer(void);
%}
+%option 8bit
+%option never-interactive
+%option nounput
+%option noyywrap
+
+
range (\.\.)(\.)?
plumin (\'\+\-\')|(\(\+\-)\)
integer [+-]?[0-9]+
} \
}
-#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*/
%%
-int tsearch_yywrap(void) {
- return 1;
-}
-
/* clearing after parsing from string */
void end_parse() {
if (s) { free(s); s=NULL; }
*
*
* 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 $
*
*-------------------------------------------------------------------------
*/
#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}+
%%
-int
-yywrap(void)
-{
- return 1;
-}
-
void
yyerror(const char *str)
{
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc-file.l,v 1.12 2002/05/17 01:19:18 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc-file.l,v 1.13 2002/07/30 16:33:08 tgl Exp $
*/
%{
GUC_ERROR = 100
};
-#if defined(yywrap)
-#undef yywrap
-#endif /* yywrap */
-
#define YY_USER_INIT (ConfigFileLineno = 1)
-#define YY_NO_UNPUT
/* prototype, so compiler is happy with our high warnings setting */
int GUC_yylex(void);
char *GUC_scanstr(char *);
%}
+%option 8bit
+%option never-interactive
+%option nounput
+%option noyywrap
+
+
SIGN ("-"|"+")
DIGIT [0-9]
HEXDIGIT [0-9a-fA-F]
-int
-yywrap(void)
-{
- return 1;
-}
-
/* ----------------
* scanstr
*
*
*
* 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 $
*
*-------------------------------------------------------------------------
*/
#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;
%}
+%option 8bit
+%option never-interactive
+%option nounput
+%option noyywrap
+
%option yylineno
+
%s C SQL incl def def_ident
/*
literallen += 1;
literalbuf[literallen] = '\0';
}
-
-int
-yywrap(void)
-{
- return(1);
-}
-
* procedural language
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/scan.l,v 1.17 2002/03/06 18:50:29 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/scan.l,v 1.18 2002/07/30 16:33:08 tgl Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
static void plpgsql_input(char *buf, int *result, int max);
#define YY_INPUT(buf,res,max) plpgsql_input(buf, &res, max)
-#define YY_NO_UNPUT
%}
+%option 8bit
+%option never-interactive
+%option nounput
+%option noyywrap
+
%option yylineno
%%
-int
-yywrap()
-{
- return 1;
-}
-
static void
plpgsql_input(char *buf, int *result, int max)