mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-03 10:29:41 +00:00
Fix handling of #pragma float.
This was not getting recognized properly, because float is a keyword rather than an identifier.
This commit is contained in:
parent
9d5360e844
commit
c2262929e9
@ -3493,7 +3493,9 @@ if ch in ['a','d','e','i','l','p','u','w'] then begin
|
|||||||
expandMacros := false;
|
expandMacros := false;
|
||||||
NextToken;
|
NextToken;
|
||||||
expandMacros := true;
|
expandMacros := true;
|
||||||
if token.class <> identifier then begin
|
if token.kind = floatsy then
|
||||||
|
token.name := @'float'
|
||||||
|
else if token.class <> identifier then begin
|
||||||
if (lint & lintPragmas) <> 0 then
|
if (lint & lintPragmas) <> 0 then
|
||||||
Error(110);
|
Error(110);
|
||||||
goto 2;
|
goto 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user