Skip Menu |

This queue is for tickets about the Params-Validate CPAN distribution.

Report information
The Basics
Id: 20881
Status: resolved
Priority: 0/
Queue: Params-Validate

People
Owner: Nobody in particular
Requestors: troy.tausend [...] target.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.86



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