]> git.saurik.com Git - bison.git/commitdiff
Use copy_character not obstack_1grow in parse_action.
authorFlorian Krohm <florian@edamail.fishkill.ibm.com>
Tue, 14 May 2002 00:25:23 +0000 (00:25 +0000)
committerFlorian Krohm <florian@edamail.fishkill.ibm.com>
Tue, 14 May 2002 00:25:23 +0000 (00:25 +0000)
ChangeLog
src/reader.c

index 598a2e478b213b4469cedf4d06c411d2ad509b2a..6e348ce0b609343812cf7f1f22dfb436b25a8f02 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-05-13  Florian Krohm  <florian@edamail.fishkill.ibm.com>
+
+       * src/reader.c (parse_action): Use copy_character instead of
+       obstack_1grow.
+
 2002-05-13  Akim Demaille  <akim@epita.fr>
 
        * tests/regression.at (Token definitions): Prototype yylex and
index 1aa767fa022414a099b4cd50f2994e051e76d208..93df69a6c4f8bc0911791a0f8a4a61447c60b41b 100644 (file)
@@ -1286,12 +1286,12 @@ parse_action (symbol_list *rule, int rule_length)
        switch (c)
          {
          case '\n':
-           obstack_1grow (&action_obstack, c);
+           copy_character (&action_obstack, c);
            ++lineno;
            break;
 
          case '{':
-           obstack_1grow (&action_obstack, c);
+           copy_character (&action_obstack, c);
            ++count;
            break;
 
@@ -1316,12 +1316,12 @@ parse_action (symbol_list *rule, int rule_length)
            fatal (_("unmatched %s"), "`{'");
 
          default:
-           obstack_1grow (&action_obstack, c);
+           copy_character (&action_obstack, c);
          }
 
       /* Above loop exits when C is '}'.  */
       if (--count)
-       obstack_1grow (&action_obstack, c);
+       copy_character (&action_obstack, c);
     }
 
   obstack_1grow (&action_obstack, '\0');