Skip to content

Commit ddf317f

Browse files
committed
Fix bogus %name-prefix option syntax in all our Bison files.
%name-prefix doesn't use an "=" sign according to the Bison docs, but it silently accepted one anyway, until Bison 3.0. This was originally a typo of mine in commit 012abeb, and we seem to have slavishly copied the error into all the other grammar files. Per report from Vik Fearing; analysis by Peter Eisentraut. Back-patch to all active branches, since somebody might try to build a back branch with up-to-date tools.
1 parent 1dd0b3e commit ddf317f

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
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 @@ 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
@@ -140,7 +140,7 @@ static TypeName *TableFuncTypeName(List *columns);
140140
%}
141141

142142
%expect 0
143-
%name-prefix="base_yy"
143+
%name-prefix "base_yy"
144144
%locations
145145

146146
%union

src/interfaces/ecpg/preproc/ecpg.header

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

378378
%expect 0
379-
%name-prefix="base_yy"
379+
%name-prefix "base_yy"
380380
%locations
381381

382382
%union {

src/pl/plpgsql/src/gram.y

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

7676
%expect 0
77-
%name-prefix="plpgsql_yy"
77+
%name-prefix "plpgsql_yy"
7878

7979
%union {
8080
int32 ival;

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