diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2004-03-09 08:09:33 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2004-03-09 08:09:33 +0000 |
| commit | d56ed147ae89e1b92b34f13736b79164d102403e (patch) | |
| tree | 8fb086a116524fe4d339a056864755c7eb67d7e6 /usr.bin/make/parse.c | |
| parent | dba55fa26d826040b3061d8a5cf1141cd848ee4a (diff) | |
Notes
Diffstat (limited to 'usr.bin/make/parse.c')
| -rw-r--r-- | usr.bin/make/parse.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index 0873f6d9f25a..6be0cb1eeb80 100644 --- a/usr.bin/make/parse.c +++ b/usr.bin/make/parse.c @@ -112,6 +112,7 @@ typedef struct { static char *fname; /* name of current file (for errors) */ static int lineno; /* line number in current file */ +static int savedlineno; /* saved line number */ static FILE *curFILE = NULL; /* current makefile */ static PTR *curPTR = NULL; /* current makefile */ @@ -1792,7 +1793,7 @@ Parse_FromString(char *str) curFILE = NULL; curPTR = (PTR *) emalloc (sizeof (PTR)); curPTR->str = curPTR->ptr = str; - lineno = 0; + lineno = savedlineno; fname = estrdup(fname); } @@ -2277,6 +2278,7 @@ test_char: if (For_Eval(line)) { int ok; free(line); + savedlineno = lineno; do { /* * Skip after the matching end |
