mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-22 07:30:54 +00:00
Fix bug where line number was off by one when using defaults.h.
This fixes the compco11.c test case.
This commit is contained in:
parent
b019c59803
commit
4247eb2c91
@ -1198,6 +1198,9 @@ fp^.next := fileList;
|
||||
fileList := fp;
|
||||
fp^.name := includeFileGS;
|
||||
fp^.sname := sourceFileGS;
|
||||
if default then
|
||||
fp^.lineNumber := lineNumber
|
||||
else
|
||||
fp^.lineNumber := lineNumber+1;
|
||||
if OpenFile(true, default) then begin {open a new file and proceed from there}
|
||||
lineNumber := 1;
|
||||
|
Loading…
Reference in New Issue
Block a user