X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/14bfd2e9d9e5a17dfc7cbba44872abccad0c1d65..d439985436e5a4a29930a24b9ceebe9dd9e71257:/src/muscle-tab.h diff --git a/src/muscle-tab.h b/src/muscle-tab.h index af6b615c..0993f74e 100644 --- a/src/muscle-tab.h +++ b/src/muscle-tab.h @@ -78,14 +78,14 @@ extern struct obstack muscle_obstack; } while (0) # define MUSCLE_INSERT_INT(Key, Value) \ - MUSCLE_INSERTF(Key, "%d", Value) + MUSCLE_INSERTF (Key, "%d", Value) # define MUSCLE_INSERT_LONG_INT(Key, Value) \ - MUSCLE_INSERTF(Key, "%ld", Value) + MUSCLE_INSERTF (Key, "%ld", Value) /* Key -> Value, but don't apply escaping to Value. */ # define MUSCLE_INSERT_STRING_RAW(Key, Value) \ - MUSCLE_INSERTF(Key, "%s", Value) + MUSCLE_INSERTF (Key, "%s", Value) /* Key -> Value, applying M4 escaping to Value. */ # define MUSCLE_INSERT_STRING(Key, Value) \ @@ -96,17 +96,12 @@ extern struct obstack muscle_obstack; /* Key -> Value, applying C escaping to Value (and then M4). */ # define MUSCLE_INSERT_C_STRING(Key, Value) \ - 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 - associated value. Copy VALUE and SEPARATOR. */ -void muscle_grow (const char *key, const char *value, const char *separator); + MUSCLE_INSERT_STRING (Key, quotearg_style (c_quoting_style, Value)) /* Append VALUE to the current value of KEY, using muscle_grow. But - in addition, issue a synchronization line for the location LOC. */ + in addition, issue a synchronization line for the location LOC. + Be sure to append on a new line. */ void muscle_code_grow (const char *key, const char *value, location loc);