mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-02 19:29:21 +00:00
Allow negated long long constants in cc= defines.
These are still treated as one token, like other negated numbers specified in cc=(-d...).
This commit is contained in:
parent
efb363a04d
commit
5f03dee66a
@ -4303,7 +4303,14 @@ repeat
|
|||||||
intConstant : token.ival := -token.ival;
|
intConstant : token.ival := -token.ival;
|
||||||
longConstant : token.lval := -token.lval;
|
longConstant : token.lval := -token.lval;
|
||||||
realConstant : token.rval := -token.rval;
|
realConstant : token.rval := -token.rval;
|
||||||
longlongConstant,otherwise: Error(108);
|
longlongConstant: begin
|
||||||
|
token.qval.lo := ~token.qval.lo;
|
||||||
|
token.qval.hi := ~token.qval.hi;
|
||||||
|
token.qval.lo := token.qval.lo + 1;
|
||||||
|
if token.qval.lo = 0 then
|
||||||
|
token.qval.hi := token.qval.hi + 1;
|
||||||
|
end;
|
||||||
|
otherwise: Error(108);
|
||||||
end; {case}
|
end; {case}
|
||||||
end {if}
|
end {if}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user