mirror of
https://github.com/cc65/cc65.git
synced 2025-02-05 04:37:23 +00:00
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
@ -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…
x
Reference in New Issue
Block a user