From 7956485cd66dd4ec5eaeecf45911ca4c50885975 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 14 Apr 2013 13:51:19 +0200 Subject: [PATCH] muscle: minor refactoring * src/muscle-tab.c (muscle_percent_define_default): Reduce the scopes. --- src/muscle-tab.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/muscle-tab.c b/src/muscle-tab.c index 3f2793c..e11699f 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"), ""); } } -- 2.7.4