From 8dcc37520d5e8c8b52cee81faa67fd5205548377 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 9 May 2007 18:57:05 -0400 Subject: [PATCH] Use _X_INLINE instead of ad-hoc #defines. --- mi/miarc.c | 25 ++----------------------- mi/miregion.c | 11 +++-------- 2 files changed, 5 insertions(+), 31 deletions(-) diff --git a/mi/miarc.c b/mi/miarc.c index 17b7891bf..69c5acdbc 100644 --- a/mi/miarc.c +++ b/mi/miarc.c @@ -100,37 +100,16 @@ double cbrt(double); #undef max #undef min -#if defined (__GNUC__) && !defined (__STRICT_ANSI__) -#define USE_INLINE -#endif - -#ifdef USE_INLINE -inline static int max (const int x, const int y) +_X_INLINE static int max (const int x, const int y) { return x>y? x:y; } -inline static int min (const int x, const int y) +_X_INLINE static int min (const int x, const int y) { return xy? x:y; -} - -static int -min (int x, int y) -{ - return x +#include #include "gc.h" #include "mi.h" #include "mispans.h" -#if defined (__GNUC__) && !defined (NO_INLINES) -#define INLINE __inline -#else -#define INLINE -#endif - #undef assert #ifdef DEBUG #define assert(expr) {if (!(expr)) \ @@ -506,7 +501,7 @@ miRegionCopy(dst, src) * *----------------------------------------------------------------------- */ -INLINE static int +_X_INLINE static int miCoalesce ( RegionPtr pReg, /* Region to coalesce */ int prevStart, /* Index of start of previous band */ @@ -590,7 +585,7 @@ miCoalesce ( *----------------------------------------------------------------------- */ -INLINE static Bool +_X_INLINE static Bool miAppendNonO ( RegionPtr pReg, BoxPtr r,