aboutsummaryrefslogtreecommitdiffstats
path: root/include/freetype/fttypes.h
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-04-13 08:47:41 -0400
committerClyne Sullivan <tullivan99@gmail.com>2016-04-13 08:47:41 -0400
commitfa4b6e00fd204998f6011420bdad60477b7a2f12 (patch)
tree4fd37e92f375ddb49e156b07811b8a2fe1ad6c0d /include/freetype/fttypes.h
parent03130c5bcec3c885a1be005c24e192dfb57f3fe5 (diff)
parentheses
Diffstat (limited to 'include/freetype/fttypes.h')
-rw-r--r--include/freetype/fttypes.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/include/freetype/fttypes.h b/include/freetype/fttypes.h
index bd944a4..9f10b27 100644
--- a/include/freetype/fttypes.h
+++ b/include/freetype/fttypes.h
@@ -473,12 +473,12 @@ FT_BEGIN_HEADER
/* The produced values *must* be 32-bit integers. Don't redefine */
/* this macro. */
/* */
-#define FT_MAKE_TAG( _x1, _x2, _x3, _x4 ) \
+#define FT_MAKE_TAG(_x1, _x2, _x3, _x4) \
(FT_Tag) \
- ( ( (FT_ULong)_x1 << 24 ) | \
- ( (FT_ULong)_x2 << 16 ) | \
- ( (FT_ULong)_x3 << 8 ) | \
- (FT_ULong)_x4 )
+ (((FT_ULong)_x1 << 24) | \
+ ((FT_ULong)_x2 << 16) | \
+ ((FT_ULong)_x3 << 8) | \
+ (FT_ULong)_x4 )
/*************************************************************************/
@@ -570,24 +570,24 @@ FT_BEGIN_HEADER
/* */
-#define FT_IS_EMPTY( list ) ( (list).head == 0 )
-#define FT_BOOL( x ) ( (FT_Bool)( x ) )
+#define FT_IS_EMPTY(list) ((list).head == 0)
+#define FT_BOOL(x) ((FT_Bool)(x))
/* concatenate C tokens */
-#define FT_ERR_XCAT( x, y ) x ## y
-#define FT_ERR_CAT( x, y ) FT_ERR_XCAT( x, y )
+#define FT_ERR_XCAT(x, y) x ## y
+#define FT_ERR_CAT(x, y) FT_ERR_XCAT(x, y)
/* see `ftmoderr.h' for descriptions of the following macros */
-#define FT_ERR( e ) FT_ERR_CAT( FT_ERR_PREFIX, e )
+#define FT_ERR(e) FT_ERR_CAT(FT_ERR_PREFIX, e)
-#define FT_ERROR_BASE( x ) ( (x) & 0xFF )
-#define FT_ERROR_MODULE( x ) ( (x) & 0xFF00U )
+#define FT_ERROR_BASE(x) ((x) & 0xFF)
+#define FT_ERROR_MODULE(x) ((x) & 0xFF00U)
-#define FT_ERR_EQ( x, e ) \
- ( FT_ERROR_BASE( x ) == FT_ERROR_BASE( FT_ERR( e ) ) )
-#define FT_ERR_NEQ( x, e ) \
- ( FT_ERROR_BASE( x ) != FT_ERROR_BASE( FT_ERR( e ) ) )
+#define FT_ERR_EQ(x, e) \
+ (FT_ERROR_BASE(x) == FT_ERROR_BASE(FT_ERR(e)))
+#define FT_ERR_NEQ(x, e) \
+ (FT_ERROR_BASE(x) != FT_ERROR_BASE(FT_ERR(e)))
FT_END_HEADER