mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-28 01:29:32 +00:00
Add a C23 standard option to the compiler.
The default is still c17compat.
This commit is contained in:
parent
3a0dbd2e15
commit
f59c2cf93d
@ -4895,6 +4895,14 @@ repeat
|
||||
cStd := c17;
|
||||
strictMode := true;
|
||||
end {else if}
|
||||
else if (stdName^ = 'c23compat') or (stdName^ = 'c24compat') then begin
|
||||
cStd := c23;
|
||||
strictMode := false;
|
||||
end {else if}
|
||||
else if (stdName^ = 'c23') or (stdName^ = 'c24') then begin
|
||||
cStd := c23;
|
||||
strictMode := true;
|
||||
end {else if}
|
||||
else
|
||||
FlagErrorAndSkip;
|
||||
end {else if}
|
||||
|
@ -953,6 +953,7 @@ stdcVersion start __STDC_VERSION__ values
|
||||
dc i4'199901' c99
|
||||
dc i4'201112' c11
|
||||
dc i4'201710' c17
|
||||
dc i4'202311' c23
|
||||
end
|
||||
|
||||
macRomanToUCS start
|
||||
|
@ -22,7 +22,7 @@ var
|
||||
charSym: array[minChar..maxChar] of tokenEnum; {symbols for single char symbols}
|
||||
reservedWords: array[_Alignassy..whilesy] of string[14]; {reserved word strings}
|
||||
wordHash: array[0..25] of tokenEnum; {for hashing reserved words}
|
||||
stdcVersion: array[c95..c17] of longint; {__STDC_VERSION__ values}
|
||||
stdcVersion: array[c95..c23] of longint; {__STDC_VERSION__ values}
|
||||
|
||||
{from ASM.PAS}
|
||||
{------------}
|
||||
|
Loading…
Reference in New Issue
Block a user