Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit45b7abe

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 itsilently accepted one anyway, until Bison 3.0. This was originally atypo of mine in commit012abeb, and weseem 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 builda back branch with up-to-date tools.
1 parentc0f2762 commit45b7abe

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
%expect0
42-
%name-prefix="cube_yy"
42+
%name-prefix"cube_yy"
4343

4444
%tokenCUBEFLOATO_PARENC_PARENO_BRACKETC_BRACKETCOMMA
4545
%startbox

‎contrib/seg/segparse.y

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

4747
%union {
4848
structBND {

‎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
%expect0
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
@@ -169,7 +169,7 @@ static Node *makeRecursiveViewSelect(char *relname, List *aliases, Node *query);
169169

170170
%pure-parser
171171
%expect0
172-
%name-prefix="base_yy"
172+
%name-prefix"base_yy"
173173
%locations
174174

175175
%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
@@ -40,7 +40,7 @@ Node *replication_parse_result;
4040
%}
4141

4242
%expect0
43-
%name-prefix="replication_yy"
43+
%name-prefix"replication_yy"
4444

4545
%union {
4646
char*str;

‎src/interfaces/ecpg/preproc/ecpg.header

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ add_typedef(char *name, char *dimension, char *length, enum ECPGttype type_enum,
572572
%}
573573

574574
%expect 0
575-
%name-prefix="base_yy"
575+
%name-prefix"base_yy"
576576
%locations
577577

578578
%union {

‎src/pl/plpgsql/src/pl_gram.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ staticList*read_raise_options(void);
110110
%}
111111

112112
%expect0
113-
%name-prefix="plpgsql_yy"
113+
%name-prefix"plpgsql_yy"
114114
%locations
115115

116116
%union {

‎src/test/isolation/specparse.y

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

2222
%expect0
23-
%name-prefix="spec_yy"
23+
%name-prefix"spec_yy"
2424

2525
%union
2626
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp