]> git.saurik.com Git - bison.git/commitdiff
muscle: minor refactoring
authorAkim Demaille <akim@lrde.epita.fr>
Wed, 3 Apr 2013 15:07:22 +0000 (17:07 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Wed, 3 Apr 2013 15:07:22 +0000 (17:07 +0200)
* src/muscle-tab.h (MUSCLE_INSERT_C_STRING): Use MUSCLE_INSERT_STRING.

src/muscle-tab.h

index deeb076fe0ae82200a5e311b76f0627f8c62b001..59c87510f73d8ff0a56261624a7a76fcd19e04a9 100644 (file)
@@ -63,12 +63,10 @@ extern struct obstack muscle_obstack;
     muscle_insert (Key, obstack_finish0 (&muscle_obstack));     \
   } while (0)
 
+/* Key -> Value, applying C escaping to Value (and then M4). */
 # define MUSCLE_INSERT_C_STRING(Key, Value)                     \
-  do {                                                          \
-    obstack_escape (&muscle_obstack,                            \
-                    quotearg_style (c_quoting_style, Value));   \
-    muscle_insert (Key, obstack_finish0 (&muscle_obstack));     \
-  } while (0)
+  MUSCLE_INSERT_STRING(Key, quotearg_style (c_quoting_style, Value))
+
 
 /* Append VALUE to the current value of KEY.  If KEY did not already
    exist, create it.  Use MUSCLE_OBSTACK.  De-allocate the previously