Allow BSD yacc and bison to compile pl code.
This commit is contained in:
parent
e6381966c1
commit
e69a997d02
@ -4,7 +4,7 @@
|
|||||||
* procedural language
|
* procedural language
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.6 1999/08/09 00:08:52 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.7 1999/08/16 19:57:21 momjian Exp $
|
||||||
*
|
*
|
||||||
* This software is copyrighted by Jan Wieck - Hamburg.
|
* This software is copyrighted by Jan Wieck - Hamburg.
|
||||||
*
|
*
|
||||||
@ -39,8 +39,9 @@
|
|||||||
#include "stdio.h"
|
#include "stdio.h"
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "plpgsql.h"
|
#include "plpgsql.h"
|
||||||
#include "pl_scan.c" /* BSD Yacc doesn't like it here.
|
#ifdef YYBISON
|
||||||
It wants it after the %% */
|
#include "pl_scan.c" /* GNU bison wants it here */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1082,6 +1083,11 @@ lno :
|
|||||||
|
|
||||||
%%
|
%%
|
||||||
|
|
||||||
|
#ifndef YYBISON
|
||||||
|
#include "pl_scan.c" /* BSD yacc wants it here */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
PLpgSQL_expr *
|
PLpgSQL_expr *
|
||||||
plpgsql_read_expression (int until, char *s)
|
plpgsql_read_expression (int until, char *s)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user