Do not inhibit sym file generation if there is a segment directive before an #include.

This affected code like the following, causing stdio.h not to be represented in the sym file:

segment "S";
#include <stdio.h>
int main(void) {}
This commit is contained in:
Stephen Heumann 2023-03-07 18:34:36 -06:00
parent c6ba1e1c1c
commit 27c68b41d5
1 changed files with 2 additions and 0 deletions

View File

@ -3702,7 +3702,9 @@ var
else
segmentKind := 0;
defaultSegmentKind := segmentKind;
inhibitHeader := lInhibitHeader;
Match(semicolonch,22);
inhibitHeader := true;
end {if}
else begin
Error(83);