Remove no-longer-needed inclusions to improve backward compatibility

with older bison versions.
This commit is contained in:
Tom Lane 2002-11-07 06:06:17 +00:00
parent 2103b7baa2
commit df7201c3c5
4 changed files with 6 additions and 11 deletions

View File

@ -3,18 +3,16 @@
** A scanner for EMP-style numeric ranges ** A scanner for EMP-style numeric ranges
*/ */
#define YYSTYPE char *
#define yylval cube_yylval
#include "postgres.h" #include "postgres.h"
#include "cubeparse.h"
#include "buffer.h" #include "buffer.h"
/* flex screws a couple symbols when used with the -P otion; fix those */ /* flex screws a couple symbols when used with the -P option; fix those */
#define YY_DECL int cube_yylex YY_PROTO(( void )); \ #define YY_DECL int cube_yylex YY_PROTO(( void )); \
int cube_yylex YY_PROTO(( void )) int cube_yylex YY_PROTO(( void ))
#define yylval cube_yylval
/* redefined YY_INPUT reads byte-wise from the memory area defined in buffer.c */ /* redefined YY_INPUT reads byte-wise from the memory area defined in buffer.c */
#undef YY_INPUT #undef YY_INPUT

View File

@ -5,11 +5,10 @@
#include "postgres.h" #include "postgres.h"
#include "segparse.h"
#include "buffer.h" #include "buffer.h"
/* flex screws a couple symbols when used with the -P otion; fix those */ /* flex screws a couple symbols when used with the -P option; fix those */
#define YY_DECL int seg_yylex YY_PROTO(( void )); \ #define YY_DECL int seg_yylex YY_PROTO(( void )); \
int seg_yylex YY_PROTO(( void )) int seg_yylex YY_PROTO(( void ))
#define yylval seg_yylval #define yylval seg_yylval

View File

@ -12,7 +12,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.100 2002/10/21 13:09:31 meskes Exp $ * $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.101 2002/11/07 06:06:17 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -24,7 +24,6 @@
#include <errno.h> #include <errno.h>
#include "extern.h" #include "extern.h"
#include "preproc.h"
extern YYSTYPE yylval; extern YYSTYPE yylval;

View File

@ -4,7 +4,7 @@
* procedural language * procedural language
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/scan.l,v 1.23 2002/09/12 00:24:09 momjian Exp $ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/scan.l,v 1.24 2002/11/07 06:06:17 tgl Exp $
* *
* This software is copyrighted by Jan Wieck - Hamburg. * This software is copyrighted by Jan Wieck - Hamburg.
* *
@ -37,7 +37,6 @@
**********************************************************************/ **********************************************************************/
#include "plpgsql.h" #include "plpgsql.h"
#include "pl.tab.h"
static char *plpgsql_source; static char *plpgsql_source;