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

RE: [PATCH] Configure probe for static inline

Thread Previous | Thread Next
From:
Jan Dubois
Date:
July 8, 2010 09:48
Subject:
RE: [PATCH] Configure probe for static inline
Message ID:
01f101cb1ebd$695f8130$3c1e8390$@activestate.com
On Thu, 08 Jul 2010, Andy Dougherty wrote:
> 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).

Note though that on older compiler versions it has only a single leading
underscore: '_inline', so we need to be able to #define it to different
values.

But given that Perl doesn't use Configure on Windows I thought it wouldn't
matter either way.

Cheers,
-Jan


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