]> granicus.if.org Git - postgresql/commitdiff
Revert "Fix bogus %name-prefix option syntax in all our Bison files."
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 May 2014 23:29:29 +0000 (19:29 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 May 2014 23:29:29 +0000 (19:29 -0400)
This reverts commit 4c5fde4e288983f30dae09a7eea8e6a9e6145477.

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.

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 1cbb1cb49e415525c7ff52d4b365a7156f24c79c..eda5ba9604d01504cc240ea96572456d717ead1a 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 177bf06fb2d3c4607d8ff74fede214cb69ab249c..538d06e5339b7b57c038c283c2c83cd292627749 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 0f4a471a6da7d47d3c50a635da95d4457e68a886..c6b755628b2d84200885fb1a22fbb5ebab8bc94b 100644 (file)
@@ -93,7 +93,7 @@ static int num_columns_read = 0;
 %}
 
 %expect 0
-%name-prefix "boot_yy"
+%name-prefix="boot_yy"
 
 %union
 {
index f5f24380d0e067ad50dac86c0cafb5f64b3656a2..2108c8289c6f0dc119868d3cdfd6d3f07ec0ca23 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 a9f920e35ab03b74b8b67e4e1453a1b47353cf09..d99708ca8ebb3c29564e0031282b61ea9e47770e 100644 (file)
@@ -49,7 +49,7 @@ Node *replication_parse_result;
 %}
 
 %expect 0
-%name-prefix "replication_yy"
+%name-prefix="replication_yy"
 
 %union {
                char                                    *str;
index aebc1f7d3e34b59c84133af01b021f9d49d75e68..80c90feb6a682f0fd8b78c53062158e6f0ef0fc4 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 426aced5a37dc1c4b8913a601c58fe51a01cd357..4e2b7058f0c471182b8276a101e33fa96ed01bdb 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 4a5af7386287877db353ddd187ebbc7eedd6138b..47bfbc4f399eafd66687d871f3fdbbc1b4f62d7c 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
 {