mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-22 07:30:54 +00:00
Avoid storing stale values of __DATE__ or __TIME__ in sym files.
This could happen in some very obscure cases like using these macros for the names of segments or include files. The fix is to just terminate precompiled header generation if they are encountered.
This commit is contained in:
parent
095807517b
commit
ae6de310c7
@ -1391,6 +1391,7 @@ if macro^.readOnly then begin {handle special macros}
|
||||
token.sval := dateStr;
|
||||
tokenStart := @dateStr^.str;
|
||||
tokenEnd := pointer(ord4(tokenStart)+dateStr^.length);
|
||||
TermHeader; {Don't save stale value in sym file}
|
||||
end;
|
||||
|
||||
4: begin {__TIME__}
|
||||
@ -1400,6 +1401,7 @@ if macro^.readOnly then begin {handle special macros}
|
||||
token.sval := timeStr;
|
||||
tokenStart := @timeStr^.str;
|
||||
tokenEnd := pointer(ord4(tokenStart)+timeStr^.length);
|
||||
TermHeader; {Don't save stale value in sym file}
|
||||
end;
|
||||
|
||||
5: begin {__STDC__}
|
||||
|
Loading…
Reference in New Issue
Block a user