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:
@@ -1104,7 +1104,7 @@ static void StructRef (ExprDesc* Expr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Make the expression a bit field if necessary */
|
/* 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);
|
ED_MakeBitField (Expr, Field->V.B.BitOffs, Field->V.B.BitWidth);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ static void CheckSymTable (SymTable* Tab)
|
|||||||
unsigned Flags = Entry->Flags;
|
unsigned Flags = Entry->Flags;
|
||||||
|
|
||||||
/* Ignore typedef entries */
|
/* 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
|
/* Check if the symbol is one with storage, and it if it was
|
||||||
* defined but not used.
|
* defined but not used.
|
||||||
|
|||||||
Reference in New Issue
Block a user