From: Akim Demaille Date: Sun, 14 Apr 2013 11:51:19 +0000 (+0200) Subject: muscle: minor refactoring X-Git-Tag: v2.7.90~26 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/7956485cd66dd4ec5eaeecf45911ca4c50885975 muscle: minor refactoring * src/muscle-tab.c (muscle_percent_define_default): Reduce the scopes. --- diff --git a/src/muscle-tab.c b/src/muscle-tab.c index 3f2793c5..e11699f3 100644 --- a/src/muscle-tab.c +++ b/src/muscle-tab.c @@ -637,18 +637,19 @@ void muscle_percent_define_default (char const *variable, char const *value) { uniqstr name = muscle_name (variable, NULL); - uniqstr loc_name = muscle_name (variable, "loc"); - uniqstr syncline_name = muscle_name (variable, "syncline"); if (!muscle_find_const (name)) { - location loc; MUSCLE_INSERT_STRING (name, value); - loc.start.file = loc.end.file = ""; - loc.start.line = loc.end.line = -1; - loc.start.column = loc.end.column = -1; - muscle_insert (loc_name, ""); - muscle_location_grow (loc_name, loc); - muscle_insert (syncline_name, ""); + { + uniqstr loc_name = muscle_name (variable, "loc"); + location loc; + loc.start.file = loc.end.file = ""; + loc.start.line = loc.end.line = -1; + loc.start.column = loc.end.column = -1; + muscle_insert (loc_name, ""); + muscle_location_grow (loc_name, loc); + } + muscle_insert (muscle_name (variable, "syncline"), ""); } }