]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix bogus %name-prefix option syntax in all our Bison files.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 May 2014 19:42:01 +0000 (15:42 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 May 2014 19:42:01 +0000 (15:42 -0400)
%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 012abebab1bc72043f3f670bf32e91ae4ee04bd2, 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.

contrib/cube/cubeparse.y
contrib/seg/segparse.y
src/backend/bootstrap/bootparse.y
src/backend/parser/gram.y
src/backend/replication/repl_gram.y
src/interfaces/ecpg/preproc/ecpg.header
src/pl/plpgsql/src/gram.y
src/test/isolation/specparse.y

index eda5ba9604d01504cc240ea96572456d717ead1a..1cbb1cb49e415525c7ff52d4b365a7156f24c79c 100644 (file)
@@ -39,7 +39,7 @@ static NDBOX * write_point_as_box(char *s, int dim);
 /* BISON Declarations */
 %parse-param {NDBOX **result}
 %expect 0
-%name-prefix="cube_yy"
+%name-prefix "cube_yy"
 
 %token CUBEFLOAT O_PAREN C_PAREN O_BRACKET C_BRACKET COMMA
 %start box
index 538d06e5339b7b57c038c283c2c83cd292627749..177bf06fb2d3c4607d8ff74fede214cb69ab249c 100644 (file)
@@ -42,7 +42,7 @@
 /* BISON Declarations */
 %parse-param {SEG *result}
 %expect 0
-%name-prefix="seg_yy"
+%name-prefix "seg_yy"
 
 %union {
   struct BND {
index c6b755628b2d84200885fb1a22fbb5ebab8bc94b..0f4a471a6da7d47d3c50a635da95d4457e68a886 100644 (file)
@@ -93,7 +93,7 @@ static int num_columns_read = 0;
 %}
 
 %expect 0
-%name-prefix="boot_yy"
+%name-prefix "boot_yy"
 
 %union
 {
index 2108c8289c6f0dc119868d3cdfd6d3f07ec0ca23..f5f24380d0e067ad50dac86c0cafb5f64b3656a2 100644 (file)
@@ -148,7 +148,7 @@ static void processCASbits(int cas_bits, int location, const char *constrType,
 
 %pure-parser
 %expect 0
-%name-prefix="base_yy"
+%name-prefix "base_yy"
 %locations
 
 %parse-param {core_yyscan_t yyscanner}
index d99708ca8ebb3c29564e0031282b61ea9e47770e..a9f920e35ab03b74b8b67e4e1453a1b47353cf09 100644 (file)
@@ -49,7 +49,7 @@ Node *replication_parse_result;
 %}
 
 %expect 0
-%name-prefix="replication_yy"
+%name-prefix "replication_yy"
 
 %union {
                char                                    *str;
index 80c90feb6a682f0fd8b78c53062158e6f0ef0fc4..aebc1f7d3e34b59c84133af01b021f9d49d75e68 100644 (file)
@@ -456,7 +456,7 @@ add_typedef(char *name, char * dimension, char * length, enum ECPGttype type_enu
 %}
 
 %expect 0
-%name-prefix="base_yy"
+%name-prefix "base_yy"
 %locations
 
 %union {
index 4e2b7058f0c471182b8276a101e33fa96ed01bdb..426aced5a37dc1c4b8913a601c58fe51a01cd357 100644 (file)
@@ -109,7 +109,7 @@ static      List                    *read_raise_options(void);
 %}
 
 %expect 0
-%name-prefix="plpgsql_yy"
+%name-prefix "plpgsql_yy"
 %locations
 
 %union {
index 47bfbc4f399eafd66687d871f3fdbbc1b4f62d7c..4a5af7386287877db353ddd187ebbc7eedd6138b 100644 (file)
@@ -20,7 +20,7 @@ TestSpec              parseresult;                    /* result of parsing is left here */
 %}
 
 %expect 0
-%name-prefix="spec_yy"
+%name-prefix "spec_yy"
 
 %union
 {