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

Re: [PATCH] Configure probe for static inline

Thread Previous | Thread Next
From:
Craig A. Berry
Date:
July 8, 2010 08:31
Subject:
Re: [PATCH] Configure probe for static inline
Message ID:
AANLkTikPbk0AtTWZYjaRGZmGzk4no_7WDLZYD0DaNIfz@mail.gmail.com
On Thu, Jul 8, 2010 at 9:42 AM, Marvin Humphrey <marvin@rectangular.com> wrote:
> On Thu, Jul 08, 2010 at 10:38:07AM -0400, Andy Dougherty wrote:
>> Then, we'll still have to figure out what to put in for the Windows and
>> VMS folks, since they don't use Configure.
>
> MSVC:
>
>    http://msdn.microsoft.com/en-us/library/z8y1yy88.aspx

HP C for OpenVMS:

<http://h71000.www7.hp.com/commercial/c/docs/6180profile_004.html#storage_class_mod_sec>

As usual, there are various options depending on which knobs you turn,
such as gcc-like behavior or c99-like behavior for the interaction of
inline and extern.  But for the intended uses in Perl I'm pretty sure
this is all we'll need:

--- configure.com;-0    2010-04-23 18:35:11 -0500
+++ configure.com       2010-07-08 10:27:49 -0500
@@ -6203,4 +6203,5 @@ $ WC "d_statfs_f_flags='undef'"
 $ WC "d_statfs_s='undef'"
 $ WC "d_statfsflags='undef'"
+$ WC "d_static_inline='define'"
 $ WC "d_stdio_cnt_lval='" + d_stdio_cnt_lval + "'"
 $ WC "d_stdio_ptr_lval='" + d_stdio_ptr_lval + "'"
[end]

but I should probably dig a little deeper and see if there are older
compilers we could otherwise support that wouldn't have this feature.

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