mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-06-09 01:29:33 +00:00
Prohibit "typedef" in function definitions.
This commit is contained in:
parent
cbf32e5b71
commit
3b6f73c277
|
@ -3942,7 +3942,7 @@ if isFunction then begin
|
||||||
|
|
||||||
{local declaration}
|
{local declaration}
|
||||||
else begin
|
else begin
|
||||||
if not first then
|
if (not first) or (declSpecifiers.storageClass = typedefsy) then
|
||||||
Error(22);
|
Error(22);
|
||||||
if variable^.state = defined then
|
if variable^.state = defined then
|
||||||
Error(42);
|
Error(42);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user