mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-29 07:30:08 +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;
|
||||
NextToken;
|
||||
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
|
||||
Error(110);
|
||||
goto 2;
|
||||
|
Loading…
Reference in New Issue
Block a user