mirror of
https://github.com/cc65/cc65.git
synced 2025-01-26 17:36:57 +00:00
Use SymIsTypeDef and SymIsBitField instead of accessing Sym->Flags directly.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4123 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
cc229ce7ba
commit
94a2223443
@ -1104,7 +1104,7 @@ static void StructRef (ExprDesc* Expr)
|
||||
}
|
||||
|
||||
/* Make the expression a bit field if necessary */
|
||||
if ((Field->Flags & SC_BITFIELD) == SC_BITFIELD) {
|
||||
if (SymIsBitField (Field)) {
|
||||
ED_MakeBitField (Expr, Field->V.B.BitOffs, Field->V.B.BitWidth);
|
||||
}
|
||||
}
|
||||
|
@ -156,7 +156,7 @@ static void CheckSymTable (SymTable* Tab)
|
||||
unsigned Flags = Entry->Flags;
|
||||
|
||||
/* Ignore typedef entries */
|
||||
if ((Flags & SC_TYPEDEF) != SC_TYPEDEF) {
|
||||
if (!SymIsTypeDef (Entry)) {
|
||||
|
||||
/* Check if the symbol is one with storage, and it if it was
|
||||
* defined but not used.
|
||||
|
Loading…
x
Reference in New Issue
Block a user