Commit 51e8a1d3 authored by Jan Wieck's avatar Jan Wieck

New prebuilt versions of gram.c and scan.c for the mixed case

identifier support.

Jan
parent c42b959f
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
* procedural language * procedural language
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/gram.c,v 1.2 1998/12/18 19:45:38 momjian Exp $ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/gram.c,v 1.3 1999/01/28 11:50:41 wieck Exp $
* *
* This software is copyrighted by Jan Wieck - Hamburg. * This software is copyrighted by Jan Wieck - Hamburg.
* *
...@@ -414,7 +414,7 @@ static const short yycheck[] = { 21, ...@@ -414,7 +414,7 @@ static const short yycheck[] = { 21,
152, 62 152, 62
}; };
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */ /* -*-C-*- Note some compilers choke on comments on `#line' lines. */
#line 3 "/usr/local/bison/bison.simple" #line 3 "/usr/share/bison.simple"
/* Skeleton output parser for bison, /* Skeleton output parser for bison,
Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc. Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
...@@ -467,6 +467,16 @@ void *alloca (); ...@@ -467,6 +467,16 @@ void *alloca ();
#endif /* not GNU C. */ #endif /* not GNU C. */
#endif /* alloca not defined. */ #endif /* alloca not defined. */
#ifdef __cplusplus
extern "C" {
void yyerror(char *);
int yylex();
};
#else
extern void yyerror(char *);
extern int yylex();
#endif
/* This is the parser code that is written into each bison parser /* This is the parser code that is written into each bison parser
when the %semantic_parser declaration is not specified in the grammar. when the %semantic_parser declaration is not specified in the grammar.
It was written by Richard Stallman by simplifying the hairy parser It was written by Richard Stallman by simplifying the hairy parser
...@@ -563,9 +573,13 @@ int yydebug; /* nonzero means print parse trace */ ...@@ -563,9 +573,13 @@ int yydebug; /* nonzero means print parse trace */
#define YYMAXDEPTH 10000 #define YYMAXDEPTH 10000
#endif #endif
#ifndef YYPARSE_RETURN_TYPE
#define YYPARSE_RETURN_TYPE int
#endif
/* Prevent warning if -Wstrict-prototypes. */ /* Prevent warning if -Wstrict-prototypes. */
#ifdef __GNUC__ #ifdef __GNUC__
int yyparse (void); YYPARSE_RETURN_TYPE yyparse (void);
#endif #endif
#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */ #if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
...@@ -607,7 +621,7 @@ __yy_memcpy (char *to, char *from, int count) ...@@ -607,7 +621,7 @@ __yy_memcpy (char *to, char *from, int count)
#endif #endif
#endif #endif
#line 196 "/usr/local/bison/bison.simple" #line 196 "/usr/share/bison.simple"
/* The user can define YYPARSE_PARAM as the name of an argument to be passed /* The user can define YYPARSE_PARAM as the name of an argument to be passed
into yyparse. The argument should have type void *. into yyparse. The argument should have type void *.
...@@ -628,7 +642,7 @@ __yy_memcpy (char *to, char *from, int count) ...@@ -628,7 +642,7 @@ __yy_memcpy (char *to, char *from, int count)
#define YYPARSE_PARAM_DECL #define YYPARSE_PARAM_DECL
#endif /* not YYPARSE_PARAM */ #endif /* not YYPARSE_PARAM */
int YYPARSE_RETURN_TYPE
yyparse(YYPARSE_PARAM_ARG) yyparse(YYPARSE_PARAM_ARG)
YYPARSE_PARAM_DECL YYPARSE_PARAM_DECL
{ {
...@@ -1086,7 +1100,7 @@ case 23: ...@@ -1086,7 +1100,7 @@ case 23:
char *name; char *name;
plpgsql_ns_setlocal(false); plpgsql_ns_setlocal(false);
name = plpgsql_tolower(pstrdup(yytext)); name = plpgsql_tolower(yytext);
if (name[0] != '$') { if (name[0] != '$') {
elog(ERROR, "can only alias positional parameters"); elog(ERROR, "can only alias positional parameters");
} }
...@@ -1116,7 +1130,7 @@ case 25: ...@@ -1116,7 +1130,7 @@ case 25:
case 26: case 26:
#line 376 "gram.y" #line 376 "gram.y"
{ {
yyval.str = plpgsql_tolower(pstrdup(yytext)); yyval.str = plpgsql_tolower(yytext);
; ;
break;} break;}
case 27: case 27:
...@@ -1891,7 +1905,7 @@ case 105: ...@@ -1891,7 +1905,7 @@ case 105:
break;} break;}
} }
/* the action file gets copied in in place of this dollarsign */ /* the action file gets copied in in place of this dollarsign */
#line 498 "/usr/local/bison/bison.simple" #line 498 "/usr/share/bison.simple"
yyvsp -= yylen; yyvsp -= yylen;
yyssp -= yylen; yyssp -= yylen;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment