develooper Front page | perl.perl5.porters | Postings from July 2010

Re: [PATCH] Configure probe for static inline

Thread Previous | Thread Next
From:
Andy Dougherty
Date:
July 8, 2010 08:34
Subject:
Re: [PATCH] Configure probe for static inline
Message ID:
alpine.DEB.2.00.1007081128450.3018@fractal.phys.lafayette.edu
On Thu, 8 Jul 2010, Marvin Humphrey wrote:

> I'm very happy to see this patch, and I hope the experiment works out.
> 
> It looks like only the variant "inline" is probed for.  I have found it useful
> to probe for "__inline" and "__inline__" first and prefer those.  GCC disables
> the "inline" keyword under "-ansi":
> 
>     http://gcc.gnu.org/onlinedocs/gcc/Alternate-Keywords.html
> 
> Also, for MSVC, IIRC only "__inline" works.

Thanks for the feedback (and the later verification that MSVC only 
documents __inline as supported).

Perl generally doesn't use gcc -ansi (except for dec_osf and irix) so 
that's not a big issue, but given that we'll need to support __inline for 
MSVC anyway, I will restructure the probe to make that easier to 
incorporate, and might as well test for it anyway.

Thanks for the feedback.

-- 
    Andy Dougherty		doughera@lafayette.edu

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About