mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-06-17 20:29:31 +00:00
Require a declarator after comma in declarations.
This gives an error for code like "int x,;".
This commit is contained in:
parent
de57170ef8
commit
202ed3b514
|
@ -3738,8 +3738,11 @@ variable := nil;
|
|||
Declarator(declSpecifiers, variable, variableSpace, doingPrototypes);
|
||||
if variable = nil then begin
|
||||
inhibitHeader := false;
|
||||
if token.kind = semicolonch then
|
||||
NextToken
|
||||
if token.kind = semicolonch then begin
|
||||
if not first then
|
||||
Error(176);
|
||||
NextToken;
|
||||
end {if}
|
||||
else begin
|
||||
Error(22);
|
||||
SkipStatement;
|
||||
|
|
Loading…
Reference in New Issue
Block a user