mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
Fixed line numbering inside the .for loops.
Submitted by: Cyrille Lefevre
This commit is contained in:
parent
dba55fa26d
commit
d56ed147ae
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue