From 94a22234434b6bc7a23f7a1b4e9d6aff2fbe7399 Mon Sep 17 00:00:00 2001 From: uz Date: Sun, 6 Sep 2009 16:51:08 +0000 Subject: [PATCH] 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 --- src/cc65/expr.c | 2 +- src/cc65/symtab.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc65/expr.c b/src/cc65/expr.c index ae185f7b5..9dd6afe8d 100644 --- a/src/cc65/expr.c +++ b/src/cc65/expr.c @@ -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); } } diff --git a/src/cc65/symtab.c b/src/cc65/symtab.c index 6ab25d374..4e4ebbc82 100644 --- a/src/cc65/symtab.c +++ b/src/cc65/symtab.c @@ -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. -- 2.39.5