From: cuz Date: Thu, 30 Mar 2006 19:49:03 +0000 (+0000) Subject: Fixed a few errors in the macros used by the Watcom compiler. X-Git-Tag: V2.12.0~142 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4c0720709b13313ffa64ded9d25fbdeb5eb43549;p=cc65 Fixed a few errors in the macros used by the Watcom compiler. git-svn-id: svn://svn.cc65.org/cc65/trunk@3712 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/datatype.h b/src/cc65/datatype.h index f4b5b0c96..ac69f0d16 100644 --- a/src/cc65/datatype.h +++ b/src/cc65/datatype.h @@ -381,7 +381,7 @@ INLINE int IsTypeArray (const Type* T) /* Return true if this is an array type */ { return (GetType (T) == T_TYPE_ARRAY); -} +} #else # define IsTypeArray(T) (GetType (T) == T_TYPE_ARRAY) #endif @@ -506,7 +506,7 @@ INLINE int IsQualConst (const Type* T) return (GetQualifier (T) & T_QUAL_CONST) != 0; } #else -# define IsQualConst(T) (GetQualifier (T) & T_QUAL_CONST) != 0) +# define IsQualConst(T) ((GetQualifier (T) & T_QUAL_CONST) != 0) #endif #if defined(HAVE_INLINE) @@ -516,7 +516,7 @@ INLINE int IsQualVolatile (const Type* T) return (GetQualifier (T) & T_QUAL_VOLATILE) != 0; } #else -# define IsQualVolatile(T) (GetQualifier (T) & T_QUAL_VOLATILE) != 0) +# define IsQualVolatile(T) ((GetQualifier (T) & T_QUAL_VOLATILE) != 0) #endif #if defined(HAVE_INLINE) @@ -526,7 +526,7 @@ INLINE int IsQualRestrict (const Type* T) return (GetQualifier (T) & T_QUAL_RESTRICT) != 0; } #else -# define IsQualRestrict(T) (GetQualifier (T) & T_QUAL_RESTRICT) != 0) +# define IsQualRestrict(T) ((GetQualifier (T) & T_QUAL_RESTRICT) != 0) #endif int IsFastCallFunc (const Type* T) attribute ((const));