Revert "Fix bogus %name-prefix option syntax in all our Bison files."
authorTom Lane
Wed, 28 May 2014 23:29:05 +0000 (19:29 -0400)
committerTom Lane
Wed, 28 May 2014 23:29:05 +0000 (19:29 -0400)
This reverts commit 867363cbcbc3d0ccac813a74fbc8236d8873c266.

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 20aa81eadb66fdaeb94bd4349a426f71d922cc91..d7205b824cb5c0f21c913b5746552898d8590327 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 2311c1e63c0a428bd2655b9bdfedcff942ddb7d5..3fad9910bd54d382368a352d466ea2c203aa99c8 100644 (file)
@@ -42,7 +42,7 @@ static char strbuf[25] = {
 /* BISON Declarations */
 %parse-param {SEG *result}
 %expect 0
-%name-prefix "seg_yy"
+%name-prefix="seg_yy"
 
 %union {
    struct BND {
index 0bd3aef7b85bbe7a586621aca606a2b3e29c05f8..eeffb0f990d7a47b306688fc48c7afdf2e7da712 100644 (file)
@@ -93,7 +93,7 @@ static int num_columns_read = 0;
 %}
 
 %expect 0
-%name-prefix "boot_yy"
+%name-prefix="boot_yy"
 
 %union
 {
index 0f9b72a3ff5b7d91a8ce2b3de289b2cad15a15a7..8db1e2282064d5c357e6565d9241a07e6b95ba4c 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 72c984379c673a1c1e80315cdc17214c92b1f176..b6cfdac1b66e09875b3368d1f2f9dec15bb3173e 100644 (file)
@@ -51,7 +51,7 @@ Node *replication_parse_result;
 %}
 
 %expect 0
-%name-prefix "replication_yy"
+%name-prefix="replication_yy"
 
 %union {
        char                    *str;
index 4db55eb8d7e24cf3fb8774fd375e283e83413427..75538e3bd9601fdb28124001b925bb4cbef5b025 100644 (file)
@@ -557,7 +557,7 @@ add_typedef(char *name, char *dimension, char *length, enum ECPGttype type_enum,
 %}
 
 %expect 0
-%name-prefix "base_yy"
+%name-prefix="base_yy"
 %locations
 
 %union {
index 52cbfa60af908fee637706e3835ff7b2400394ee..4b2dce8cf0758ca05fc59c7a345c3d1a9c031085 100644 (file)
@@ -110,7 +110,7 @@ static  List            *read_raise_options(void);
 %}
 
 %expect 0
-%name-prefix "plpgsql_yy"
+%name-prefix="plpgsql_yy"
 %locations
 
 %union {
index c10ec039724c18016c221597ee060b59a52992ae..bf3a9f3b5058c4c08b06870b39e4bc9fa458b205 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
 {