Call ParseFinishLine() also for the last line in a file. This
patch differs from the previous one in that it calls the function only when a real file hits EOF. The bodies of .for loops are also handled as files, but for these we don't want to end a dependency block on the 'EOF' as in: foo: do-this .for ... do-something .endfor do-more
This commit is contained in:
parent
1429a658ac
commit
364f261bed
@ -2534,6 +2534,9 @@ Parse_File(char *name, FILE *stream)
|
||||
|
||||
free(line);
|
||||
}
|
||||
if (curFile.F != NULL)
|
||||
ParseFinishLine();
|
||||
|
||||
/*
|
||||
* Reached EOF, but it may be just EOF of an include file...
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user