From: uz Date: Sun, 31 Aug 2008 18:31:18 +0000 (+0000) Subject: Fixed the macro versions of several inline functions. X-Git-Tag: V2.13.0rc1~355 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=17ac0cb4fab28b3a77abcf79ebf01b402b1192aa;p=cc65 Fixed the macro versions of several inline functions. git-svn-id: svn://svn.cc65.org/cc65/trunk@3900 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/datatype.h b/src/cc65/datatype.h index 16835d96f..4a6a95cb0 100644 --- a/src/cc65/datatype.h +++ b/src/cc65/datatype.h @@ -467,7 +467,7 @@ INLINE int IsClassStruct (const Type* T) { return (GetClass (T) == T_CLASS_STRUCT); } -#else +#else # define IsClassStruct(T) (GetClass (T) == T_CLASS_STRUCT) #endif @@ -528,7 +528,7 @@ INLINE int IsQualConst (const Type* T) return (T->C & T_QUAL_CONST) != 0; } #else -# define IsQualConst(T) ((T->C & T_QUAL_CONST) != 0) +# define IsQualConst(T) (((T)->C & T_QUAL_CONST) != 0) #endif #if defined(HAVE_INLINE) @@ -538,7 +538,7 @@ INLINE int IsQualVolatile (const Type* T) return (T->C & T_QUAL_VOLATILE) != 0; } #else -# define IsQualVolatile(T) (T->C & T_QUAL_VOLATILE) != 0) +# define IsQualVolatile(T) (((T)->C & T_QUAL_VOLATILE) != 0) #endif #if defined(HAVE_INLINE) @@ -548,7 +548,7 @@ INLINE int IsQualRestrict (const Type* T) return (T->C & T_QUAL_RESTRICT) != 0; } #else -# define IsQualRestrict(T) (T->C & T_QUAL_RESTRICT) != 0) +# define IsQualRestrict(T) (((T)->C & T_QUAL_RESTRICT) != 0) #endif #if defined(HAVE_INLINE) @@ -558,7 +558,7 @@ INLINE int IsQualNear (const Type* T) return (T->C & T_QUAL_NEAR) != 0; } #else -# define IsQualNear(T) (T->C & T_QUAL_NEAR) != 0) +# define IsQualNear(T) (((T)->C & T_QUAL_NEAR) != 0) #endif #if defined(HAVE_INLINE) @@ -568,7 +568,7 @@ INLINE int IsQualFar (const Type* T) return (T->C & T_QUAL_FAR) != 0; } #else -# define IsQualFar(T) (T->C & T_QUAL_FAR) != 0) +# define IsQualFar(T) (((T)->C & T_QUAL_FAR) != 0) #endif #if defined(HAVE_INLINE) @@ -578,7 +578,7 @@ INLINE int IsQualFastcall (const Type* T) return (T->C & T_QUAL_FASTCALL) != 0; } #else -# define IsQualFastcall(T) (T->C & T_QUAL_FASTCALL) != 0) +# define IsQualFastcall(T) (((T)->C & T_QUAL_FASTCALL) != 0) #endif int IsVariadicFunc (const Type* T) attribute ((const));