Fix bogus %name-prefix option syntax in all our Bison files.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 May 2014 19:41:55 +0000 (15:41 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 May 2014 19:41:55 +0000 (15:41 -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/pl_gram.y
src/test/isolation/specparse.y

index d7205b824cb5c0f21c913b5746552898d8590327..20aa81eadb66fdaeb94bd4349a426f71d922cc91 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 3fad9910bd54d382368a352d466ea2c203aa99c8..2311c1e63c0a428bd2655b9bdfedcff942ddb7d5 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 deb2abfd9ce09e6a61886096cbfc30d6b013bc2d..9b5ac65609bac26058a181a89f204b640fc1b879 100644 (file)
@@ -93,7 +93,7 @@ static int num_columns_read = 0;
 %}
 
 %expect 0
-%name-prefix="boot_yy"
+%name-prefix "boot_yy"
 
 %union
 {
index 3fcb3cbd7c073359d15e66d61e21dce687af072d..61262b5a181e43e1f5b21af3497ca01c25d941af 100644 (file)
@@ -166,7 +166,7 @@ static Node *makeRecursiveViewSelect(char *relname, List *aliases, Node *query);
 
 %pure-parser
 %expect 0
-%name-prefix="base_yy"
+%name-prefix "base_yy"
 %locations
 
 %parse-param {core_yyscan_t yyscanner}
index 8c8378045e6ff2eb23af3e3f770186c184270a07..4a07deaab55fefa17b4f2cfe5be197e888fbe588 100644 (file)
@@ -51,7 +51,7 @@ Node *replication_parse_result;
 %}
 
 %expect 0
-%name-prefix="replication_yy"
+%name-prefix "replication_yy"
 
 %union {
        char                    *str;
index 75538e3bd9601fdb28124001b925bb4cbef5b025..4db55eb8d7e24cf3fb8774fd375e283e83413427 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 086987a58a41e802b4322bcb02efd5b312d6d9a6..1fd20b046a0a6f8cf192d4a7a6c486d39b522728 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 a2dd873e21cce0029f15c69423063a5f8121a1fe..f31d47e756da0446f6d3e606e84a0badfaa5d696 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
 {