From 9b0a3d91ea594ff1afe7b8ec83ff41ba828d243b Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 5 Feb 2000 07:37:40 +0000 Subject: * Fix PR/1407. * Keep filename/lineno information for variables, for debugging. --- expand.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'expand.c') diff --git a/expand.c b/expand.c index a7cfcdb..f15da02 100644 --- a/expand.c +++ b/expand.c @@ -445,7 +445,7 @@ variable_expand_for_file (line, file) register struct file *file; { char *result; - struct variable_set_list *save, *fnext; + struct variable_set_list *save; if (file == 0) return variable_expand (line); @@ -456,22 +456,9 @@ variable_expand_for_file (line, file) reading_file = &file->cmds->fileinfo; else reading_file = 0; - fnext = file->variables->next; - /* See if there's a pattern-specific variable struct for this target. */ - if (!file->pat_searched) - { - file->patvar = lookup_pattern_var(file->name); - file->pat_searched = 1; - } - if (file->patvar != 0) - { - file->patvar->vars->next = fnext; - file->variables->next = file->patvar->vars; - } result = variable_expand (line); current_variable_set_list = save; reading_file = 0; - file->variables->next = fnext; return result; } -- cgit v1.2.3