From 27c68b41d5bd03a4833f1cfb72ae8404581c55c9 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Tue, 7 Mar 2023 18:34:36 -0600 Subject: [PATCH] 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 int main(void) {} --- Parser.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Parser.pas b/Parser.pas index 3f01793..df1a762 100644 --- a/Parser.pas +++ b/Parser.pas @@ -3702,7 +3702,9 @@ var else segmentKind := 0; defaultSegmentKind := segmentKind; + inhibitHeader := lInhibitHeader; Match(semicolonch,22); + inhibitHeader := true; end {if} else begin Error(83);