mirror of
https://github.com/cc65/cc65.git
synced 2025-04-08 19:38:55 +00:00
New utility ED_DisBitField() to make an expression no longer a bit-field.
This commit is contained in:
parent
fd0a6955da
commit
3c52ad1d9e
@ -278,6 +278,16 @@ INLINE int ED_IsBitField (const ExprDesc* Expr)
|
||||
# define ED_IsBitField(Expr) (((Expr)->Flags & E_BITFIELD) != 0)
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_INLINE)
|
||||
INLINE void ED_DisBitField (ExprDesc* Expr)
|
||||
/* Make the expression no longer a bit field */
|
||||
{
|
||||
Expr->Flags &= ~E_BITFIELD;
|
||||
}
|
||||
#else
|
||||
# define ED_DisBitField(Expr) ((Expr)->Flags &= ~E_BITFIELD)
|
||||
#endif
|
||||
|
||||
void ED_MakeBitField (ExprDesc* Expr, unsigned BitOffs, unsigned BitWidth);
|
||||
/* Make this expression a bit field expression */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user