diff options
author | Paul Smith <psmith@gnu.org> | 2000-02-05 07:37:40 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2000-02-05 07:37:40 +0000 |
commit | 9b0a3d91ea594ff1afe7b8ec83ff41ba828d243b (patch) | |
tree | b35695ad78c82d25f7e60d4c93880394a2a970b3 /read.c | |
parent | 95a09e94f7b4155913cb4b1a0e6c1576780f09d1 (diff) | |
download | gunmake-9b0a3d91ea594ff1afe7b8ec83ff41ba828d243b.tar.gz |
* Fix PR/1407.
* Keep filename/lineno information for variables, for debugging.
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -609,7 +609,7 @@ read_makefile (filename, flags) { v = lookup_variable (p, len); if (v == 0) - v = define_variable (p, len, "", o_file, 0); + v = define_variable_loc (p, len, "", o_file, 0, &fileinfo); v->export = v_export; } } @@ -626,7 +626,7 @@ read_makefile (filename, flags) { v = lookup_variable (p, len); if (v == 0) - v = define_variable (p, len, "", o_file, 0); + v = define_variable_loc (p, len, "", o_file, 0, &fileinfo); v->export = v_noexport; } } @@ -1116,7 +1116,8 @@ do_define (name, namelen, origin, infile, flocp) definition[0] = '\0'; else definition[idx - 1] = '\0'; - (void) define_variable (var, strlen (var), definition, origin, 1); + (void) define_variable_loc (var, strlen (var), definition, origin, + 1, flocp); free (definition); freebuffer (&lb); return; @@ -1454,7 +1455,7 @@ record_target_var (filenames, defn, two_colon, origin, flocp) /* Get a file reference for this file, and initialize it. */ f = enter_file (name); - initialize_file_variables (f); + initialize_file_variables (f, 1); vlist = f->variables; fname = f->name; } @@ -1477,7 +1478,7 @@ record_target_var (filenames, defn, two_colon, origin, flocp) gv = lookup_variable (v->name, len); if (gv && (gv->origin == o_env_override || gv->origin == o_command)) define_variable_in_set (v->name, len, gv->value, gv->origin, - gv->recursive, vlist->set); + gv->recursive, vlist->set, flocp); } /* Free name if not needed further. */ |