From 4c0720709b13313ffa64ded9d25fbdeb5eb43549 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 30 Mar 2006 19:49:03 +0000 Subject: [PATCH] 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 --- src/cc65/datatype.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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));