1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-29 10:29:30 +00:00

Fixed an error.

git-svn-id: svn://svn.cc65.org/cc65/trunk@3784 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2007-07-03 16:01:51 +00:00
parent 7e44cdbd5f
commit fd7e66f24c

View File

@ -427,6 +427,12 @@ static void ParseOneDecl (const DeclSpec* Spec)
} else if ((SC & SC_AUTO) == SC_AUTO) { } else if ((SC & SC_AUTO) == SC_AUTO) {
/* Auto variable */ /* Auto variable */
SymData = ParseAutoDecl (&Decl, &SC); SymData = ParseAutoDecl (&Decl, &SC);
} else if ((SC & SC_EXTERN) == SC_EXTERN) {
/* External identifier - may not get initialized */
if (CurTok.Tok == TOK_ASSIGN) {
Error ("Cannot initialize externals");
}
SymData = 0;
} else if ((SC & SC_STATIC) == SC_STATIC) { } else if ((SC & SC_STATIC) == SC_STATIC) {
/* Static variable */ /* Static variable */
SymData = ParseStaticDecl (&Decl, &SC); SymData = ParseStaticDecl (&Decl, &SC);