mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-18 03:29:49 +00:00
Always report a non-zero error level when there is an error.
This is necessary to make the "compile" command halt and not process additional source files, as well as to make occ stop and not run the linker. Previously, this was not happening when the #error directive was used, or when an undefined label was used in a goto. This addressed the issue with the compco07.c test case.
This commit is contained in:
parent
280f67e846
commit
90c291808a
5
CC.pas
5
CC.pas
@ -165,8 +165,11 @@ if numErrors = 0 then begin {set up the return parameters}
|
|||||||
liDCBGS.sFile := @outFileGS;
|
liDCBGS.sFile := @outFileGS;
|
||||||
end; {if}
|
end; {if}
|
||||||
end {if}
|
end {if}
|
||||||
else
|
else begin
|
||||||
liDCBGS.lops := 0;
|
liDCBGS.lops := 0;
|
||||||
|
if liDCBGS.merrf = 0 then
|
||||||
|
liDCBGS.merrf := 16;
|
||||||
|
end; {else}
|
||||||
MMQuit; {dispose of our memory pools}
|
MMQuit; {dispose of our memory pools}
|
||||||
with liDCBGS do begin {return to the shell}
|
with liDCBGS do begin {return to the shell}
|
||||||
sFile := pointer(ord4(sFile)+2);
|
sFile := pointer(ord4(sFile)+2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user