mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-22 07:30:54 +00:00
Make ## token merging on character constants give an error.
This ultimately should be supported, but that will be more work. For now, we just set the string representation to '?', which will usually give an error when merged. (Previously, whatever was at memory location 0 would be treated as the string representation of the token. Frequently this would just be an empty string, leading to no error but incorrect results.)
This commit is contained in:
parent
da978932bf
commit
2b062a8392
@ -4710,6 +4710,9 @@ var
|
||||
token.lval := result;
|
||||
end; {else if}
|
||||
|
||||
if saveNumber then {TODO: support token merging}
|
||||
token.numString := @'?';
|
||||
|
||||
charStrPrefix := prefix_none; {no prefix for next char/str (so far)}
|
||||
end; {CharConstant}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user