* src/muscle-tab.c (MUSCLE_COMMON_DECODE, muscle_string_decode)
(muscle_location_decode): Not related to muscles, rename as...
(COMMON_DECODE, string_decode, location_decode): these.
muscle_grow (key, "]]", "");
}
muscle_grow (key, "]]", "");
}
-#define MUSCLE_COMMON_DECODE(Value) \
+#define COMMON_DECODE(Value) \
case '$': \
aver (*++(Value) == ']'); \
aver (*++(Value) == '['); \
case '$': \
aver (*++(Value) == ']'); \
aver (*++(Value) == '['); \
obstack_1grow (&muscle_obstack, *(Value)); \
break;
obstack_1grow (&muscle_obstack, *(Value)); \
break;
-/* Reverse of MUSCLE_OBSTACK_SGROW. */
+/* Reverse of obstack_escape. */
-muscle_string_decode (char const *key)
+string_decode (char const *key)
{
char const *value;
char *value_decoded;
{
char const *value;
char *value_decoded;
- MUSCLE_COMMON_DECODE (value)
case '[':
case ']':
aver (false);
case '[':
case ']':
aver (false);
/* Reverse of muscle_location_grow. */
static location
/* Reverse of muscle_location_grow. */
static location
-muscle_location_decode (char const *key)
+location_decode (char const *key)
{
location loc;
char const *value = muscle_find_const (key);
{
location loc;
char const *value = muscle_find_const (key);
while (*++value)
switch (*value)
{
while (*++value)
switch (*value)
{
- MUSCLE_COMMON_DECODE (value)
case '[':
aver (false);
break;
case '[':
aver (false);
break;
variable, ")");
muscle_insert (usage_name, "");
variable, ")");
muscle_insert (usage_name, "");
- value = muscle_string_decode (name);
+ value = string_decode (name);
if (!value)
value = xstrdup ("");
return value;
if (!value)
value = xstrdup ("");
return value;
if (!muscle_find_const (loc_name))
fatal(_("%s: undefined %%define variable %s"),
"muscle_percent_define_get_loc", quote (variable));
if (!muscle_find_const (loc_name))
fatal(_("%s: undefined %%define variable %s"),
"muscle_percent_define_get_loc", quote (variable));
- return muscle_location_decode (loc_name);
+ return location_decode (loc_name);
name = UNIQSTR_CONCAT ("percent_define(", *variablep, ")");
name = UNIQSTR_CONCAT ("percent_define(", *variablep, ")");
- value = muscle_string_decode (name);
+ value = string_decode (name);
if (value)
{
for (++values; *values; ++values)
if (value)
{
for (++values; *values; ++values)