CC: | "Troy.Tausend" <Troy.Tausend [...] target.com>, <autarch [...] urth.org> |
Subject: | Validate.xs and "inline" of C functions |
Date: | Mon, 7 Aug 2006 19:40:13 -0500 |
To: | <bug-Params-Validate [...] rt.cpan.org> |
From: | "Troy.Tausend" <Troy.Tausend [...] target.com> |
Dave,
I'd like to see the logic for using inline changed to assume that the
user's compiler doesn't understand inline unless it is known to be OK
with inline. To my knowledge that means GCC and possibly a C99
compliant compiler.
The AIX compiler also is drainbamaged WRT to inline, at least in the
incarnation we are attempting to use it. When it does support C99 (and
thus inline), the AIX XLC compiler appears to define _ISOC99_SOURCE, but
that just seems insane to use to detect support of C99, so take it for
what you will...
So, instead of:
#ifdef _MSC_VER
# define INLINE
#elif __hpux
# define INLINE
#else
# define INLINE inline
#endif
Maybe:
#ifdef __GNUC__
# define INLINE inline
#else
# define INLINE
#endif
Thanks.
--
Troy E. Hove Tausend
TTS Dist. Dev. 3D Infraware
CC-20-670
Troy.Tausend@target.com
wk. 612-304-2963
pg. 612-579-2158