summaryrefslogtreecommitdiff
path: root/expand.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2000-02-05 07:37:40 +0000
committerPaul Smith <psmith@gnu.org>2000-02-05 07:37:40 +0000
commit9b0a3d91ea594ff1afe7b8ec83ff41ba828d243b (patch)
treeb35695ad78c82d25f7e60d4c93880394a2a970b3 /expand.c
parent95a09e94f7b4155913cb4b1a0e6c1576780f09d1 (diff)
downloadgunmake-9b0a3d91ea594ff1afe7b8ec83ff41ba828d243b.tar.gz
* Fix PR/1407.
* Keep filename/lineno information for variables, for debugging.
Diffstat (limited to 'expand.c')
-rw-r--r--expand.c15
1 files changed, 1 insertions, 14 deletions
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;
}