65
65
* procedural language
66
66
*
67
67
* IDENTIFICATION
68
- * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/gram.c,v 1.2 1998/12/18 19:45:38 momjian Exp $
68
+ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/gram.c,v 1.3 1999/01/28 11:50:41 wieck Exp $
69
69
*
70
70
* This software is copyrighted by Jan Wieck - Hamburg.
71
71
*
@@ -414,7 +414,7 @@ static const short yycheck[] = { 21,
414
414
152 , 62
415
415
};
416
416
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
417
- #line 3 "/usr/local/bison /bison.simple"
417
+ #line 3 "/usr/share /bison.simple"
418
418
419
419
/* Skeleton output parser for bison,
420
420
Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
@@ -467,6 +467,16 @@ void *alloca ();
467
467
#endif /* not GNU C. */
468
468
#endif /* alloca not defined. */
469
469
470
+ #ifdef __cplusplus
471
+ extern "C" {
472
+ void yyerror (char * );
473
+ int yylex ();
474
+ };
475
+ #else
476
+ extern void yyerror (char * );
477
+ extern int yylex ();
478
+ #endif
479
+
470
480
/* This is the parser code that is written into each bison parser
471
481
when the %semantic_parser declaration is not specified in the grammar.
472
482
It was written by Richard Stallman by simplifying the hairy parser
@@ -563,9 +573,13 @@ int yydebug; /* nonzero means print parse trace */
563
573
#define YYMAXDEPTH 10000
564
574
#endif
565
575
576
+ #ifndef YYPARSE_RETURN_TYPE
577
+ #define YYPARSE_RETURN_TYPE int
578
+ #endif
579
+
566
580
/* Prevent warning if -Wstrict-prototypes. */
567
581
#ifdef __GNUC__
568
- int yyparse (void );
582
+ YYPARSE_RETURN_TYPE yyparse (void );
569
583
#endif
570
584
571
585
#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
@@ -607,7 +621,7 @@ __yy_memcpy (char *to, char *from, int count)
607
621
#endif
608
622
#endif
609
623
610
- #line 196 "/usr/local/bison /bison.simple"
624
+ #line 196 "/usr/share /bison.simple"
611
625
612
626
/* The user can define YYPARSE_PARAM as the name of an argument to be passed
613
627
into yyparse. The argument should have type void *.
@@ -628,7 +642,7 @@ __yy_memcpy (char *to, char *from, int count)
628
642
#define YYPARSE_PARAM_DECL
629
643
#endif /* not YYPARSE_PARAM */
630
644
631
- int
645
+ YYPARSE_RETURN_TYPE
632
646
yyparse (YYPARSE_PARAM_ARG )
633
647
YYPARSE_PARAM_DECL
634
648
{
@@ -1086,7 +1100,7 @@ case 23:
1086
1100
char * name ;
1087
1101
1088
1102
plpgsql_ns_setlocal (false);
1089
- name = plpgsql_tolower (pstrdup ( yytext ) );
1103
+ name = plpgsql_tolower (yytext );
1090
1104
if (name [0 ] != '$' ) {
1091
1105
elog (ERROR , "can only alias positional parameters" );
1092
1106
}
@@ -1116,7 +1130,7 @@ case 25:
1116
1130
case 26 :
1117
1131
#line 376 "gram.y"
1118
1132
{
1119
- yyval .str = plpgsql_tolower (pstrdup ( yytext ) );
1133
+ yyval .str = plpgsql_tolower (yytext );
1120
1134
;
1121
1135
break ;}
1122
1136
case 27 :
@@ -1891,7 +1905,7 @@ case 105:
1891
1905
break ;}
1892
1906
}
1893
1907
/* the action file gets copied in in place of this dollarsign */
1894
- #line 498 "/usr/local/bison /bison.simple"
1908
+ #line 498 "/usr/share /bison.simple"
1895
1909
1896
1910
yyvsp -= yylen ;
1897
1911
yyssp -= yylen ;
0 commit comments