]> git.saurik.com Git - bison.git/commitdiff
fix for printers and destructors.
authorAkim Demaille <akim@lrde.epita.fr>
Mon, 25 Jun 2012 07:49:04 +0000 (09:49 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Mon, 25 Jun 2012 07:49:04 +0000 (09:49 +0200)
The previous "code_props: factor more" patch sends has_%printer
etc. to m4, instead of has_printer.

* src/output.c (prepare_symbol_definitions): Fix value of pname.

src/output.c

index 6ff6a9b835ccb3ab4dfec925df81f62037719704..4fe11ccb79cc7bcbf3365aeda8758f69323ae5d2 100644 (file)
@@ -447,7 +447,8 @@ prepare_symbol_definitions (void)
         int j;
         for (j = 0; j < CODE_PROPS_SIZE; ++j)
           {
-            char const *pname = code_props_type_string (j);
+            /* "printer", not "%printer".  */
+            char const *pname = code_props_type_string (j) + 1;
             code_props const *p = symbol_code_props_get (sym, j);
             SET_KEY2("has", pname);
             MUSCLE_INSERT_INT (key, !!p->code);