mirror of
https://github.com/cc65/cc65.git
synced 2025-02-09 17:33:00 +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:
parent
7e44cdbd5f
commit
fd7e66f24c
@ -427,6 +427,12 @@ static void ParseOneDecl (const DeclSpec* Spec)
|
||||
} else if ((SC & SC_AUTO) == SC_AUTO) {
|
||||
/* Auto variable */
|
||||
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) {
|
||||
/* Static variable */
|
||||
SymData = ParseStaticDecl (&Decl, &SC);
|
||||
|
Loading…
x
Reference in New Issue
Block a user