mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 10:13:03 +00:00
muscle: minor refactoring
* src/muscle-tab.h (MUSCLE_INSERT_C_STRING): Use MUSCLE_INSERT_STRING.
This commit is contained in:
@@ -63,12 +63,10 @@ extern struct obstack muscle_obstack;
|
|||||||
muscle_insert (Key, obstack_finish0 (&muscle_obstack)); \
|
muscle_insert (Key, obstack_finish0 (&muscle_obstack)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
/* Key -> Value, applying C escaping to Value (and then M4). */
|
||||||
# define MUSCLE_INSERT_C_STRING(Key, Value) \
|
# define MUSCLE_INSERT_C_STRING(Key, Value) \
|
||||||
do { \
|
MUSCLE_INSERT_STRING(Key, quotearg_style (c_quoting_style, Value))
|
||||||
obstack_escape (&muscle_obstack, \
|
|
||||||
quotearg_style (c_quoting_style, Value)); \
|
|
||||||
muscle_insert (Key, obstack_finish0 (&muscle_obstack)); \
|
|
||||||
} while (0)
|
|
||||||
|
|
||||||
/* Append VALUE to the current value of KEY. If KEY did not already
|
/* Append VALUE to the current value of KEY. If KEY did not already
|
||||||
exist, create it. Use MUSCLE_OBSTACK. De-allocate the previously
|
exist, create it. Use MUSCLE_OBSTACK. De-allocate the previously
|
||||||
|
|||||||
Reference in New Issue
Block a user