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:
Hartmut Brandt 2005-03-11 11:29:39 +00:00
parent 43eca7506e
commit b13ac84d46

View File

@ -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...
*/