From 3f6e5dd6ace7e16bfb1a307d8c3f8061546470a4 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 3 Apr 2013 17:07:22 +0200 Subject: [PATCH] muscle: minor refactoring * src/muscle-tab.h (MUSCLE_INSERT_C_STRING): Use MUSCLE_INSERT_STRING. --- src/muscle-tab.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/muscle-tab.h b/src/muscle-tab.h index deeb076f..59c87510 100644 --- a/src/muscle-tab.h +++ b/src/muscle-tab.h @@ -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 -- 2.47.2