In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/3db6ecf2ab3559908674348221dcc60f4fcb6af9?hp=ffe53d219633a1faeef771fc786f43a9e192a2d3>
- Log ----------------------------------------------------------------- commit 3db6ecf2ab3559908674348221dcc60f4fcb6af9 Author: Andy Dougherty <[email protected]> Date: Thu Sep 23 12:06:10 2010 -0400 Add default safe guesses for static_inline to plan9 files. M plan9/config.plan9 M plan9/genconfig.pl commit 55ce5d5f72ff3e217c8808026353432ca1a7deb0 Author: Andy Dougherty <[email protected]> Date: Thu Sep 23 11:59:47 2010 -0400 Add static inline values to canned Netware/config_H.wc file. M NetWare/config_H.wc commit 81e44c99a10c05afb5c836d6cb175621e30a5b95 Author: Andy Dougherty <[email protected]> Date: Thu Sep 23 11:55:28 2010 -0400 Update canned win32/config_H.* files with static inline values to match the canned win32/config.* settings. For .bc and .ce, we still have a plain 'static'. Better settings from knowledgeable users about those platforms would be welcome. M win32/config_H.bc M win32/config_H.ce M win32/config_H.gc M win32/config_H.gc64 M win32/config_H.gc64nox M win32/config_H.vc M win32/config_H.vc64 commit e8936beceb8bb3ad22fdb9ba3cb1882675d04eed Author: Andy Dougherty <[email protected]> Date: Thu Sep 23 11:53:16 2010 -0400 Update static_inline guesses in win32/config.[gv]c* For gcc, assume all variants used on Win32 will support static __inline__. VC already had static __inline. Update VC64 to match. M win32/config.gc M win32/config.gc64 M win32/config.gc64nox M win32/config.vc64 ----------------------------------------------------------------------- Summary of changes: NetWare/config_H.wc | 21 +++++++++++++++++++++ plan9/config.plan9 | 21 +++++++++++++++++++++ plan9/genconfig.pl | 2 ++ win32/config.gc | 4 ++-- win32/config.gc64 | 4 ++-- win32/config.gc64nox | 4 ++-- win32/config.vc64 | 4 ++-- win32/config_H.bc | 21 +++++++++++++++++++++ win32/config_H.ce | 21 +++++++++++++++++++++ win32/config_H.gc | 26 ++++++++++++++++++++++++++ win32/config_H.gc64 | 26 ++++++++++++++++++++++++++ win32/config_H.gc64nox | 26 ++++++++++++++++++++++++++ win32/config_H.vc | 26 ++++++++++++++++++++++++++ win32/config_H.vc64 | 26 ++++++++++++++++++++++++++ 14 files changed, 224 insertions(+), 8 deletions(-) diff --git a/NetWare/config_H.wc b/NetWare/config_H.wc index d8712bd..c1a3b13 100644 --- a/NetWare/config_H.wc +++ b/NetWare/config_H.wc @@ -2008,6 +2008,27 @@ #define Siglongjmp(buf,retval) longjmp((buf),(retval)) #endif +/* HAS_STATIC_INLINE: + * This symbol, if defined, indicates that the C compiler supports + * C99-style static inline. That is, the function can't be called + * from another translation unit. + */ +/* PERL_STATIC_INLINE: + * This symbol gives the best-guess incantation to use for static + * inline functions. If HAS_STATIC_INLINE is defined, this will + * give C99-style inline. If HAS_STATIC_INLINE is not defined, + * this will give a plain 'static'. It will always be defined + * to something that gives static linkage. + * Possibilities include + * static inline (c99) + * static __inline__ (gcc -ansi) + * static __inline (MSVC) + * static _inline (older MSVC) + * static (c89 compilers) + */ +/*#define HAS_STATIC_INLINE / **/ +#define PERL_STATIC_INLINE static /**/ + /* HAS_SOCKET: * This symbol, if defined, indicates that the BSD socket interface is * supported. diff --git a/plan9/config.plan9 b/plan9/config.plan9 index d322ce5..bc25e1b 100644 --- a/plan9/config.plan9 +++ b/plan9/config.plan9 @@ -2367,6 +2367,27 @@ #define Siglongjmp(buf,retval) longjmp((buf),(retval)) #endif +/* HAS_STATIC_INLINE: + * This symbol, if defined, indicates that the C compiler supports + * C99-style static inline. That is, the function can't be called + * from another translation unit. + */ +/* PERL_STATIC_INLINE: + * This symbol gives the best-guess incantation to use for static + * inline functions. If HAS_STATIC_INLINE is defined, this will + * give C99-style inline. If HAS_STATIC_INLINE is not defined, + * this will give a plain 'static'. It will always be defined + * to something that gives static linkage. + * Possibilities include + * static inline (c99) + * static __inline__ (gcc -ansi) + * static __inline (MSVC) + * static _inline (older MSVC) + * static (c89 compilers) + */ +/*#define HAS_STATIC_INLINE / **/ +#define PERL_STATIC_INLINE static /**/ + /* HAS_SOCKET: * This symbol, if defined, indicates that the BSD socket interface is * supported. diff --git a/plan9/genconfig.pl b/plan9/genconfig.pl index 30f4af7..334c6b7 100644 --- a/plan9/genconfig.pl +++ b/plan9/genconfig.pl @@ -127,6 +127,8 @@ print OUT "d_attribute_unused='undef'\n"; print OUT "d_attribute_warn_unused_result='undef'\n"; print OUT "d_socket='define'\n"; print OUT "d_sockpair='define'\n"; +print OUT "d_static_inline='undef'\n"; +print OUT "perl_static_inline='static'\n"; print OUT "d_sigsetjmp='define'\n"; print OUT "sigjmp_buf='sigjmp_buf'\n"; print OUT "sigsetjmp='sigsetjmp(buf,save_mask)'\n"; diff --git a/win32/config.gc b/win32/config.gc index 0a280ad..5c90397 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -447,7 +447,7 @@ d_srandom_r='undef' d_sresgproto='undef' d_sresuproto='undef' d_statblks='undef' -d_static_inline='undef' +d_static_inline='define' d_statfs_f_flags='undef' d_statfs_s='undef' d_statvfs='undef' @@ -851,7 +851,7 @@ perl_patchlevel='~PERL_PATCHLEVEL~' perladmin='' perllibs='~libs~' perlpath='~INST_TOP~~INST_VER~\bin~INST_ARCH~\perl.exe' -perl_static_inline='static' +perl_static_inline='static __inline__' pg='' phostname='hostname' pidtype='int' diff --git a/win32/config.gc64 b/win32/config.gc64 index b931e24..36f21ce 100644 --- a/win32/config.gc64 +++ b/win32/config.gc64 @@ -447,7 +447,7 @@ d_srandom_r='undef' d_sresgproto='undef' d_sresuproto='undef' d_statblks='undef' -d_static_inline='undef' +d_static_inline='define' d_statfs_f_flags='undef' d_statfs_s='undef' d_statvfs='undef' @@ -852,7 +852,7 @@ perl_patchlevel='~PERL_PATCHLEVEL~' perladmin='' perllibs='~libs~' perlpath='~INST_TOP~~INST_VER~\bin~INST_ARCH~\perl.exe' -perl_static_inline='static' +perl_static_inline='static __inline__' pg='' phostname='hostname' pidtype='int' diff --git a/win32/config.gc64nox b/win32/config.gc64nox index 53f83aa..b9cd1cc 100644 --- a/win32/config.gc64nox +++ b/win32/config.gc64nox @@ -447,7 +447,7 @@ d_srandom_r='undef' d_sresgproto='undef' d_sresuproto='undef' d_statblks='undef' -d_static_inline='undef' +d_static_inline='define' d_statfs_f_flags='undef' d_statfs_s='undef' d_statvfs='undef' @@ -852,7 +852,7 @@ perl_patchlevel='~PERL_PATCHLEVEL~' perladmin='' perllibs='~libs~' perlpath='~INST_TOP~~INST_VER~\bin~INST_ARCH~\perl.exe' -perl_static_inline='static' +perl_static_inline='static __inline__' pg='' phostname='hostname' pidtype='int' diff --git a/win32/config.vc64 b/win32/config.vc64 index bbf601e..68a8ea7 100644 --- a/win32/config.vc64 +++ b/win32/config.vc64 @@ -447,7 +447,7 @@ d_srandom_r='undef' d_sresgproto='undef' d_sresuproto='undef' d_statblks='undef' -d_static_inline='undef' +d_static_inline='define' d_statfs_f_flags='undef' d_statfs_s='undef' d_statvfs='undef' @@ -851,7 +851,7 @@ perl_patchlevel='~PERL_PATCHLEVEL~' perladmin='' perllibs='~libs~' perlpath='~INST_TOP~~INST_VER~\bin~INST_ARCH~\perl.exe' -perl_static_inline='static' +perl_static_inline='static __inline' pg='' phostname='hostname' pidtype='int' diff --git a/win32/config_H.bc b/win32/config_H.bc index 6fa463c..75213d7 100644 --- a/win32/config_H.bc +++ b/win32/config_H.bc @@ -3086,6 +3086,27 @@ #define Siglongjmp(buf,retval) longjmp((buf),(retval)) #endif +/* HAS_STATIC_INLINE: + * This symbol, if defined, indicates that the C compiler supports + * C99-style static inline. That is, the function can't be called + * from another translation unit. + */ +/* PERL_STATIC_INLINE: + * This symbol gives the best-guess incantation to use for static + * inline functions. If HAS_STATIC_INLINE is defined, this will + * give C99-style inline. If HAS_STATIC_INLINE is not defined, + * this will give a plain 'static'. It will always be defined + * to something that gives static linkage. + * Possibilities include + * static inline (c99) + * static __inline__ (gcc -ansi) + * static __inline (MSVC) + * static _inline (older MSVC) + * static (c89 compilers) + */ +/*#define HAS_STATIC_INLINE / **/ +#define PERL_STATIC_INLINE static /**/ + /* USE_STDIO_PTR: * This symbol is defined if the _ptr and _cnt fields (or similar) * of the stdio FILE structure can be used to access the stdio buffer diff --git a/win32/config_H.ce b/win32/config_H.ce index 90d4f40..b417ea6 100644 --- a/win32/config_H.ce +++ b/win32/config_H.ce @@ -2304,6 +2304,27 @@ #define Siglongjmp(buf,retval) longjmp((buf),(retval)) #endif +/* HAS_STATIC_INLINE: + * This symbol, if defined, indicates that the C compiler supports + * C99-style static inline. That is, the function can't be called + * from another translation unit. + */ +/* PERL_STATIC_INLINE: + * This symbol gives the best-guess incantation to use for static + * inline functions. If HAS_STATIC_INLINE is defined, this will + * give C99-style inline. If HAS_STATIC_INLINE is not defined, + * this will give a plain 'static'. It will always be defined + * to something that gives static linkage. + * Possibilities include + * static inline (c99) + * static __inline__ (gcc -ansi) + * static __inline (MSVC) + * static _inline (older MSVC) + * static (c89 compilers) + */ +/*#define HAS_STATIC_INLINE / **/ +#define PERL_STATIC_INLINE static /**/ + /* USE_SITECUSTOMIZE: * This symbol, if defined, indicates that sitecustomize should * be used. diff --git a/win32/config_H.gc b/win32/config_H.gc index a050b89..fbf5808 100644 --- a/win32/config_H.gc +++ b/win32/config_H.gc @@ -3110,6 +3110,32 @@ #define Siglongjmp(buf,retval) longjmp((buf),(retval)) #endif +/* HAS_STATIC_INLINE: + * This symbol, if defined, indicates that the C compiler supports + * C99-style static inline. That is, the function can't be called + * from another translation unit. + */ +/* PERL_STATIC_INLINE: + * This symbol gives the best-guess incantation to use for static + * inline functions. If HAS_STATIC_INLINE is defined, this will + * give C99-style inline. If HAS_STATIC_INLINE is not defined, + * this will give a plain 'static'. It will always be defined + * to something that gives static linkage. + * Possibilities include + * static inline (c99) + * static __inline__ (gcc -ansi) + * static __inline (MSVC) + * static _inline (older MSVC) + * static (c89 compilers) + */ +#ifdef _MSC_VER +# define HAS_STATIC_INLINE /**/ +# define PERL_STATIC_INLINE static __inline /**/ +#else /* gcc presumably */ +# define HAS_STATIC_INLINE /**/ +# define PERL_STATIC_INLINE static __inline__ /**/ +#endif + /* USE_STDIO_PTR: * This symbol is defined if the _ptr and _cnt fields (or similar) * of the stdio FILE structure can be used to access the stdio buffer diff --git a/win32/config_H.gc64 b/win32/config_H.gc64 index 24e5d8f..9cce9fb 100644 --- a/win32/config_H.gc64 +++ b/win32/config_H.gc64 @@ -3116,6 +3116,32 @@ #define Siglongjmp(buf,retval) longjmp((buf),(retval)) #endif +/* HAS_STATIC_INLINE: + * This symbol, if defined, indicates that the C compiler supports + * C99-style static inline. That is, the function can't be called + * from another translation unit. + */ +/* PERL_STATIC_INLINE: + * This symbol gives the best-guess incantation to use for static + * inline functions. If HAS_STATIC_INLINE is defined, this will + * give C99-style inline. If HAS_STATIC_INLINE is not defined, + * this will give a plain 'static'. It will always be defined + * to something that gives static linkage. + * Possibilities include + * static inline (c99) + * static __inline__ (gcc -ansi) + * static __inline (MSVC) + * static _inline (older MSVC) + * static (c89 compilers) + */ +#ifdef _MSC_VER +# define HAS_STATIC_INLINE /**/ +# define PERL_STATIC_INLINE static __inline /**/ +#else /* gcc presumably */ +# define HAS_STATIC_INLINE /**/ +# define PERL_STATIC_INLINE static __inline__ /**/ +#endif + /* USE_STDIO_PTR: * This symbol is defined if the _ptr and _cnt fields (or similar) * of the stdio FILE structure can be used to access the stdio buffer diff --git a/win32/config_H.gc64nox b/win32/config_H.gc64nox index 6f528b5..89962a5 100644 --- a/win32/config_H.gc64nox +++ b/win32/config_H.gc64nox @@ -3116,6 +3116,32 @@ #define Siglongjmp(buf,retval) longjmp((buf),(retval)) #endif +/* HAS_STATIC_INLINE: + * This symbol, if defined, indicates that the C compiler supports + * C99-style static inline. That is, the function can't be called + * from another translation unit. + */ +/* PERL_STATIC_INLINE: + * This symbol gives the best-guess incantation to use for static + * inline functions. If HAS_STATIC_INLINE is defined, this will + * give C99-style inline. If HAS_STATIC_INLINE is not defined, + * this will give a plain 'static'. It will always be defined + * to something that gives static linkage. + * Possibilities include + * static inline (c99) + * static __inline__ (gcc -ansi) + * static __inline (MSVC) + * static _inline (older MSVC) + * static (c89 compilers) + */ +#ifdef _MSC_VER +# define HAS_STATIC_INLINE /**/ +# define PERL_STATIC_INLINE static __inline /**/ +#else /* gcc presumably */ +# define HAS_STATIC_INLINE /**/ +# define PERL_STATIC_INLINE static __inline__ /**/ +#endif + /* USE_STDIO_PTR: * This symbol is defined if the _ptr and _cnt fields (or similar) * of the stdio FILE structure can be used to access the stdio buffer diff --git a/win32/config_H.vc b/win32/config_H.vc index a6e4c0e..c19a201 100644 --- a/win32/config_H.vc +++ b/win32/config_H.vc @@ -3104,6 +3104,32 @@ #define Siglongjmp(buf,retval) longjmp((buf),(retval)) #endif +/* HAS_STATIC_INLINE: + * This symbol, if defined, indicates that the C compiler supports + * C99-style static inline. That is, the function can't be called + * from another translation unit. + */ +/* PERL_STATIC_INLINE: + * This symbol gives the best-guess incantation to use for static + * inline functions. If HAS_STATIC_INLINE is defined, this will + * give C99-style inline. If HAS_STATIC_INLINE is not defined, + * this will give a plain 'static'. It will always be defined + * to something that gives static linkage. + * Possibilities include + * static inline (c99) + * static __inline__ (gcc -ansi) + * static __inline (MSVC) + * static _inline (older MSVC) + * static (c89 compilers) + */ +#ifdef _MSC_VER +# define HAS_STATIC_INLINE /**/ +# define PERL_STATIC_INLINE static __inline /**/ +#else /* gcc presumably */ +# define HAS_STATIC_INLINE /**/ +# define PERL_STATIC_INLINE static __inline__ /**/ +#endif + /* USE_STDIO_PTR: * This symbol is defined if the _ptr and _cnt fields (or similar) * of the stdio FILE structure can be used to access the stdio buffer diff --git a/win32/config_H.vc64 b/win32/config_H.vc64 index 5f2dbd1..5ac2c21 100644 --- a/win32/config_H.vc64 +++ b/win32/config_H.vc64 @@ -3086,6 +3086,32 @@ #define Siglongjmp(buf,retval) longjmp((buf),(retval)) #endif +/* HAS_STATIC_INLINE: + * This symbol, if defined, indicates that the C compiler supports + * C99-style static inline. That is, the function can't be called + * from another translation unit. + */ +/* PERL_STATIC_INLINE: + * This symbol gives the best-guess incantation to use for static + * inline functions. If HAS_STATIC_INLINE is defined, this will + * give C99-style inline. If HAS_STATIC_INLINE is not defined, + * this will give a plain 'static'. It will always be defined + * to something that gives static linkage. + * Possibilities include + * static inline (c99) + * static __inline__ (gcc -ansi) + * static __inline (MSVC) + * static _inline (older MSVC) + * static (c89 compilers) + */ +#ifdef _MSC_VER +# define HAS_STATIC_INLINE /**/ +# define PERL_STATIC_INLINE static __inline /**/ +#else /* gcc presumably */ +# define HAS_STATIC_INLINE /**/ +# define PERL_STATIC_INLINE static __inline__ /**/ +#endif + /* USE_STDIO_PTR: * This symbol is defined if the _ptr and _cnt fields (or similar) * of the stdio FILE structure can be used to access the stdio buffer -- Perl5 Master Repository
