Skip to content

Commit 43c658f

Browse files
committed
Revert "Fix bogus %name-prefix option syntax in all our Bison files."
This reverts commit 4c5fde4. It turns out that the %name-prefix syntax without "=" does not work at all in pre-2.4 Bison. We are not prepared to make such a large jump in minimum required Bison version just to suppress a warning message in a version hardly any developers are using yet. When 3.0 gets more popular, we'll figure out a way to deal with this. In the meantime, BISONFLAGS=-Wno-deprecated is recommendable for anyone using 3.0 who doesn't want to see the warning.
1 parent 4c5fde4 commit 43c658f

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

contrib/cube/cubeparse.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static NDBOX * write_point_as_box(char *s, int dim);
3939
/* BISON Declarations */
4040
%parse-param {NDBOX **result}
4141
%expect 0
42-
%name-prefix "cube_yy"
42+
%name-prefix="cube_yy"
4343

4444
%token CUBEFLOAT O_PAREN C_PAREN O_BRACKET C_BRACKET COMMA
4545
%start box

contrib/seg/segparse.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
/* BISON Declarations */
4343
%parse-param {SEG *result}
4444
%expect 0
45-
%name-prefix "seg_yy"
45+
%name-prefix="seg_yy"
4646

4747
%union {
4848
struct BND {

src/backend/bootstrap/bootparse.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static int num_columns_read = 0;
9393
%}
9494

9595
%expect 0
96-
%name-prefix "boot_yy"
96+
%name-prefix="boot_yy"
9797

9898
%union
9999
{

src/backend/parser/gram.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ static void processCASbits(int cas_bits, int location, const char *constrType,
148148

149149
%pure-parser
150150
%expect 0
151-
%name-prefix "base_yy"
151+
%name-prefix="base_yy"
152152
%locations
153153

154154
%parse-param {core_yyscan_t yyscanner}

src/backend/replication/repl_gram.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Node *replication_parse_result;
4949
%}
5050

5151
%expect 0
52-
%name-prefix "replication_yy"
52+
%name-prefix="replication_yy"
5353

5454
%union {
5555
char *str;

src/interfaces/ecpg/preproc/ecpg.header

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ add_typedef(char *name, char * dimension, char * length, enum ECPGttype type_enu
456456
%}
457457

458458
%expect 0
459-
%name-prefix "base_yy"
459+
%name-prefix="base_yy"
460460
%locations
461461

462462
%union {

src/pl/plpgsql/src/gram.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static List *read_raise_options(void);
109109
%}
110110

111111
%expect 0
112-
%name-prefix "plpgsql_yy"
112+
%name-prefix="plpgsql_yy"
113113
%locations
114114

115115
%union {

src/test/isolation/specparse.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ TestSpec parseresult; /* result of parsing is left here */
2020
%}
2121

2222
%expect 0
23-
%name-prefix "spec_yy"
23+
%name-prefix="spec_yy"
2424

2525
%union
2626
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy