8000 Allow BSD yacc and bison to compile pl code. · postgrespro/postgres_cluster@e69a997 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e69a997

Browse files
committed
Allow BSD yacc and bison to compile pl code.
1 parent e638196 commit e69a997

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/pl/plpgsql/src/gram.y

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* procedural language
55
*
66
* IDENTIFICATION
7-
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.6 1999/08/09 00:08:52 momjian Exp $
7+
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.7 1999/08/16 19:57:21 momjian Exp $
88
*
99
* This software is copyrighted by Jan Wieck - Hamburg.
1010
*
@@ -39,8 +39,9 @@
3939
#include "stdio.h"
4040
#include "string.h"
4141
#include "plpgsql.h"
42-
#include "pl_scan.c" /* BSD Yacc doesn't like it here.
43-
It wants it after the %% */
42+
#ifdef YYBISON
43+
#include "pl_scan.c" /* GNU bison wants it here */
44+
#endif
4445

4546

4647

@@ -1082,6 +1083,11 @@ lno :
10821083

10831084
%%
10841085

1086+
#ifndef YYBISON
1087+
#include "pl_scan.c" /* BSD yacc wants it here */
1088+
#endif
1089+
1090+
10851091
PLpgSQL_expr *
10861092
plpgsql_read_expression (int until, char *s)
10871093
{

0 commit comments

Comments
 (0)
0