Allow empty and comment lines in structs
git-svn-id: svn://svn.cc65.org/cc65/trunk@3519 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
a641ca9802
commit
71126c8200
1 changed files with 8 additions and 1 deletions
|
@ -120,9 +120,16 @@ static long DoStructInternal (long Offs, unsigned Type)
|
|||
|
||||
long MemberSize;
|
||||
SymTable* Struct;
|
||||
SymEntry* Sym;
|
||||
|
||||
/* Allow empty and comment lines */
|
||||
if (Tok == TOK_SEP) {
|
||||
NextTok ();
|
||||
continue;
|
||||
}
|
||||
|
||||
/* The format is "[identifier] storage-allocator [, multiplicator]" */
|
||||
SymEntry* Sym = 0;
|
||||
Sym = 0;
|
||||
if (Tok == TOK_IDENT) {
|
||||
/* We have an identifier, generate a symbol */
|
||||
Sym = SymFind (CurrentScope, SVal, SYM_ALLOC_NEW);
|
||||
|
|
Loading…
Add table
Reference in a new issue