mirror of
https://github.com/cc65/cc65.git
synced 2025-08-16 12:27:49 +00:00
Fixed wrong "Mixed declarations and code are not supported in cc65" error message when it should be "Expression expected".
This commit is contained in:
@@ -1412,9 +1412,9 @@ static void Primary (ExprDesc* E)
|
|||||||
} else {
|
} else {
|
||||||
/* Let's see if this is a C99-style declaration */
|
/* Let's see if this is a C99-style declaration */
|
||||||
DeclSpec Spec;
|
DeclSpec Spec;
|
||||||
ParseDeclSpec (&Spec, TS_DEFAULT_TYPE_INT, SC_AUTO);
|
ParseDeclSpec (&Spec, TS_DEFAULT_TYPE_NONE, SC_AUTO);
|
||||||
|
|
||||||
if (Spec.Type->C != T_END) {
|
if ((Spec.Flags & DS_DEF_TYPE) == 0) {
|
||||||
/* Recognized but not supported */
|
/* Recognized but not supported */
|
||||||
Error ("Mixed declarations and code are not supported in cc65");
|
Error ("Mixed declarations and code are not supported in cc65");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user