Skip to content

Commit

Permalink
Configure: strxfrm_l
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed May 9, 2021
1 parent 6f282a6 commit 1614000
Show file tree
Hide file tree
Showing 17 changed files with 203 additions and 173 deletions.
284 changes: 141 additions & 143 deletions Configure

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Cross/config.sh-arm-linux
Expand Up @@ -418,6 +418,7 @@ d_nextafter='undef'
d_nexttoward='undef'
d_nice='define'
d_nl_langinfo='define'
d_nl_langinfo_l='undef'
d_nv_preserves_uv='define'
d_nv_zero_is_allbits_zero='undef'
d_off64_t='undef'
Expand Down Expand Up @@ -582,6 +583,7 @@ d_strtoul='define'
d_strtoull='define'
d_strtouq='define'
d_strxfrm='define'
d_strxfrm_l='undef'
d_suidsafe='undef'
d_symlink='define'
d_syscall='define'
Expand Down
2 changes: 2 additions & 0 deletions Cross/config.sh-arm-linux-n770
Expand Up @@ -417,6 +417,7 @@ d_nextafter='undef'
d_nexttoward='undef'
d_nice='define'
d_nl_langinfo='define'
d_nl_langinfo_l='undef'
d_nv_preserves_uv='define'
d_nv_zero_is_allbits_zero='undef'
d_off64_t='undef'
Expand Down Expand Up @@ -581,6 +582,7 @@ d_strtoul='define'
d_strtoull='define'
d_strtouq='define'
d_strxfrm='define'
d_strxfrm_l='undef'
d_suidsafe='undef'
d_symlink='define'
d_syscall='define'
Expand Down
2 changes: 2 additions & 0 deletions NetWare/config.wc
Expand Up @@ -407,6 +407,7 @@ d_nextafter='undef'
d_nexttoward='undef'
d_nice='undef'
d_nl_langinfo='undef'
d_nl_langinfo_l='undef'
d_nv_preserves_uv='define'
d_nv_zero_is_allbits_zero='undef'
d_off64_t='undef'
Expand Down Expand Up @@ -572,6 +573,7 @@ d_strtoul='define'
d_strtoull='undef'
d_strtouq='undef'
d_strxfrm='define'
d_strxfrm_l='undef'
d_suidsafe='undef'
d_symlink='undef'
d_syscall='undef'
Expand Down
2 changes: 2 additions & 0 deletions Porting/config.sh
Expand Up @@ -436,6 +436,7 @@ d_nextafter='define'
d_nexttoward='define'
d_nice='define'
d_nl_langinfo='define'
d_nl_langinfo_l='undef'
d_nv_preserves_uv='define'
d_nv_zero_is_allbits_zero='undef'
d_off64_t='define'
Expand Down Expand Up @@ -603,6 +604,7 @@ d_strtoul='define'
d_strtoull='define'
d_strtouq='define'
d_strxfrm='define'
d_strxfrm_l='undef'
d_suidsafe='undef'
d_symlink='define'
d_syscall='define'
Expand Down
26 changes: 18 additions & 8 deletions config_h.SH
Expand Up @@ -255,7 +255,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
/* HAS_MBLEN:
* This symbol, if defined, indicates that the mblen routine is available
* to find the number of bytes in a multibyte character.
* to find the number of bytes in a multibye character.
*/
#$d_mblen HAS_MBLEN /**/
Expand Down Expand Up @@ -525,12 +525,6 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$d_strtol HAS_STRTOL /**/
/* HAS_STRXFRM:
* This symbol, if defined, indicates that the strxfrm() routine is
* available to transform strings.
*/
#$d_strxfrm HAS_STRXFRM /**/
/* HAS_SYMLINK:
* This symbol, if defined, indicates that the symlink routine is available
* to create symbolic links.
Expand Down Expand Up @@ -3021,7 +3015,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
/* HAS_MEMMEM:
* This symbol, if defined, indicates that the memmem routine is
* available to return a pointer to the start of the first occurrence
* available to return a pointer to the start of the first occurance
* of a substring in a memory area (or NULL if not found).
* In glibc, memmem is a GNU extension. The function is visible in
* libc, but the prototype is only visible if _GNU_SOURCE is #defined.
Expand Down Expand Up @@ -3454,6 +3448,17 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$d_strtouq HAS_STRTOUQ /**/
/* HAS_STRXFRM:
* This symbol, if defined, indicates that the strxfrm() routine is
* available to transform strings.
*/
/* HAS_STRXFRM_L:
* This symbol, if defined, indicates that the strxfrm_l() routine is
* available to transform strings.
*/
#$d_strxfrm HAS_STRXFRM /**/
#$d_strxfrm_l HAS_STRXFRM_L /**/
/* HAS_SYSCALL_PROTO:
* This symbol, if defined, indicates that the system provides
* a prototype for the syscall() function. Otherwise, it is up
Expand Down Expand Up @@ -4908,10 +4913,15 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$d_mbrtowc HAS_MBRTOWC /**/
/* HAS_NL_LANGINFO_L:
* This symbol, when defined, indicates presence of the nl_langinfo_l()
* function
*/
/* HAS_THREAD_SAFE_NL_LANGINFO_L:
* This symbol, when defined, indicates presence of the nl_langinfo_l()
* function, and that it is thread-safe.
*/
#$d_nl_langinfo_l HAS_NL_LANGINFO_L /**/
#$d_thread_safe_nl_langinfo_l HAS_THREAD_SAFE_NL_LANGINFO_L /**/
/* OLD_PTHREAD_CREATE_JOINABLE:
Expand Down
3 changes: 3 additions & 0 deletions configure.com
Expand Up @@ -5618,6 +5618,7 @@ $ d_stdio_ptr_lval="define"
$ d_stdstdio="define"
$ d_strcoll="define"
$ d_strxfrm="define"
$ d_strxfrm_l="undef"
$ i_langinfo="define"
$ i_locale="define"
$ d_stdio_ptr_lval_sets_cnt="undef"
Expand Down Expand Up @@ -6399,6 +6400,7 @@ $ WC "d_nextafter='" + d_nextafter + "'"
$ WC "d_nexttoward='" + d_nexttoward + "'"
$ WC "d_nice='define'"
$ WC "d_nl_langinfo='" + d_nl_langinfo + "'"
$ WC "d_nl_langinfo_l='undef'"
$ WC "d_getenv_preserves_other_thread='" + d_getenv_preserves_other_thread + "'"
$ WC "d_nv_preserves_uv='" + d_nv_preserves_uv + "'"
$ WC "nv_overflows_integers_at='" + nv_overflows_integers_at + "'"
Expand Down Expand Up @@ -6571,6 +6573,7 @@ $ WC "d_strtoul='define'"
$ WC "d_strtoull='" + d_strtoull + "'"
$ WC "d_strtouq='" + d_strtouq + "'"
$ WC "d_strxfrm='" + d_strxfrm + "'"
$ WC "d_strxfrm_l='" + d_strxfrm_l + "'"
$ WC "d_suidsafe='undef'"
$ WC "d_symlink='" + d_symlink + "'"
$ WC "d_syscall='undef'"
Expand Down
4 changes: 1 addition & 3 deletions locale.c
Expand Up @@ -3996,7 +3996,6 @@ S_my_langinfo_i(pTHX_
}

# endif
# ifdef HAS_STRFTIME

/* These formats are only available in later strfmtime's */
case ERA_D_FMT: case ERA_T_FMT: case ERA_D_T_FMT: case T_FMT_AMPM:
Expand Down Expand Up @@ -4155,7 +4154,6 @@ S_my_langinfo_i(pTHX_
return format;
}

# endif

case CODESET:
if (isNAME_C_OR_POSIX(locale)) {
Expand Down Expand Up @@ -4231,7 +4229,7 @@ S_my_langinfo_i(pTHX_
&scratch_buf, &scratch_buf_size, &locale_is_utf8);

# endif
# if defined(USE_LOCALE_TIME) && defined(HAS_STRFTIME)
# ifdef USE_LOCALE_TIME

/* If that didn't rule out being UTF-8, we look at LC_TIME entries,
* like the names of the months or weekdays. We quit at the first
Expand Down
4 changes: 2 additions & 2 deletions metaconfig.h
Expand Up @@ -13,7 +13,7 @@
* Symbols should only be here temporarily. Once they are actually used,
* they should be removed from here.
*
* HAS_WCRTOMB
* GETENV_PRESERVES_OTHER_THREAD
* HAS_STRXFRM_L
* HAS_NL_LANGINFO_L
*
*/
2 changes: 2 additions & 0 deletions plan9/config_sh.sample
Expand Up @@ -418,6 +418,7 @@ d_nextafter='undef'
d_nexttoward='undef'
d_nice='undef'
d_nl_langinfo='undef'
d_nl_langinfo_l='undef'
d_nv_preserves_uv='undef'
d_nv_zero_is_allbits_zero='undef'
d_off64_t='undef'
Expand Down Expand Up @@ -582,6 +583,7 @@ d_strtoul='define'
d_strtoull='undef'
d_strtouq='undef'
d_strxfrm='define'
d_strxfrm_l='undef'
d_suidsafe='undef'
d_symlink='define'
d_syscall='undef'
Expand Down
2 changes: 0 additions & 2 deletions proto.h
Expand Up @@ -5195,8 +5195,6 @@ STATIC const char * S_save_to_buffer(const char * string, const char **buf, Size
__attribute__warn_unused_result__;
#define PERL_ARGS_ASSERT_SAVE_TO_BUFFER

STATIC void S_set_numeric_radix(pTHX_ const bool use_locale);
#define PERL_ARGS_ASSERT_SET_NUMERIC_RADIX
PERL_STATIC_NO_RET void S_setlocale_failure_panic_i(pTHX_ const unsigned int cat_index, const char * current, const char * failed, const line_t caller_0_line, const line_t caller_1_line)
__attribute__noreturn__;
#define PERL_ARGS_ASSERT_SETLOCALE_FAILURE_PANIC_I \
Expand Down
30 changes: 20 additions & 10 deletions uconfig.h
Expand Up @@ -220,7 +220,7 @@

/* HAS_MBLEN:
* This symbol, if defined, indicates that the mblen routine is available
* to find the number of bytes in a multibyte character.
* to find the number of bytes in a multibye character.
*/
/*#define HAS_MBLEN / **/

Expand Down Expand Up @@ -490,12 +490,6 @@
*/
#define HAS_STRTOL /**/

/* HAS_STRXFRM:
* This symbol, if defined, indicates that the strxfrm() routine is
* available to transform strings.
*/
/*#define HAS_STRXFRM / **/

/* HAS_SYMLINK:
* This symbol, if defined, indicates that the symlink routine is available
* to create symbolic links.
Expand Down Expand Up @@ -2986,7 +2980,7 @@

/* HAS_MEMMEM:
* This symbol, if defined, indicates that the memmem routine is
* available to return a pointer to the start of the first occurrence
* available to return a pointer to the start of the first occurance
* of a substring in a memory area (or NULL if not found).
* In glibc, memmem is a GNU extension. The function is visible in
* libc, but the prototype is only visible if _GNU_SOURCE is #defined.
Expand Down Expand Up @@ -3419,6 +3413,17 @@
*/
/*#define HAS_STRTOUQ / **/

/* HAS_STRXFRM:
* This symbol, if defined, indicates that the strxfrm() routine is
* available to transform strings.
*/
/* HAS_STRXFRM_L:
* This symbol, if defined, indicates that the strxfrm_l() routine is
* available to transform strings.
*/
/*#define HAS_STRXFRM / **/
/*#define HAS_STRXFRM_L / **/

/* HAS_SYSCALL_PROTO:
* This symbol, if defined, indicates that the system provides
* a prototype for the syscall() function. Otherwise, it is up
Expand Down Expand Up @@ -4873,10 +4878,15 @@
*/
/*#define HAS_MBRTOWC / **/

/* HAS_NL_LANGINFO_L:
* This symbol, when defined, indicates presence of the nl_langinfo_l()
* function
*/
/* HAS_THREAD_SAFE_NL_LANGINFO_L:
* This symbol, when defined, indicates presence of the nl_langinfo_l()
* function, and that it is thread-safe.
*/
/*#define HAS_NL_LANGINFO_L / **/
/*#define HAS_THREAD_SAFE_NL_LANGINFO_L / **/

/* OLD_PTHREAD_CREATE_JOINABLE:
Expand Down Expand Up @@ -5282,6 +5292,6 @@
#endif

/* Generated from:
* 6edd641b187b02d0daa8cb53f5d22f2dcca115a0d3e744f51b0292d2db484ca5 config_h.SH
* a9ec40c778a205e0256475b5ef025389f7ea06d75d09ac92414f6b99839577e8 uconfig.sh
* 6aa268878364ba168c22fdf8868de68edf980678874739c0281f1f957fe5e118 config_h.SH
* 7a6edb5d2cbd016d9c3d27859cd3dba5d22f24263887ada1e3f3d28539efa0c1 uconfig.sh
* ex: set ro: */
2 changes: 2 additions & 0 deletions uconfig.sh
Expand Up @@ -358,6 +358,7 @@ d_nextafter='undef'
d_nexttoward='undef'
d_nice='undef'
d_nl_langinfo='undef'
d_nl_langinfo_l='undef'
d_nv_preserves_uv='undef'
d_nv_zero_is_allbits_zero='undef'
d_off64_t='undef'
Expand Down Expand Up @@ -522,6 +523,7 @@ d_strtoul='define'
d_strtoull='undef'
d_strtouq='undef'
d_strxfrm='undef'
d_strxfrm_l='undef'
d_suidsafe='undef'
d_symlink='undef'
d_syscall='undef'
Expand Down
2 changes: 2 additions & 0 deletions uconfig64.sh
Expand Up @@ -358,6 +358,7 @@ d_nextafter='undef'
d_nexttoward='undef'
d_nice='undef'
d_nl_langinfo='undef'
d_nl_langinfo_l='undef'
d_nv_preserves_uv='undef'
d_nv_zero_is_allbits_zero='undef'
d_off64_t='undef'
Expand Down Expand Up @@ -522,6 +523,7 @@ d_strtoul='define'
d_strtoull='undef'
d_strtouq='undef'
d_strxfrm='undef'
d_strxfrm_l='undef'
d_suidsafe='undef'
d_symlink='undef'
d_syscall='undef'
Expand Down
5 changes: 0 additions & 5 deletions util.c
Expand Up @@ -4160,7 +4160,6 @@ Perl_mini_mktime(struct tm *ptm)
char *
Perl_my_strftime(pTHX_ const char *fmt, int sec, int min, int hour, int mday, int mon, int year, int wday, int yday, int isdst)
{
#ifdef HAS_STRFTIME

/*
=for apidoc_section $time
Expand Down Expand Up @@ -4272,10 +4271,6 @@ giving localized results.
}
return buf;
}
#else
Perl_croak(aTHX_ "panic: no strftime");
return NULL;
#endif
}


Expand Down
2 changes: 2 additions & 0 deletions win32/config.gc
Expand Up @@ -407,6 +407,7 @@ d_nextafter='define'
d_nexttoward='define'
d_nice='undef'
d_nl_langinfo='undef'
d_nl_langinfo_l='undef'
d_nv_preserves_uv='define'
d_nv_zero_is_allbits_zero='define'
d_off64_t='undef'
Expand Down Expand Up @@ -571,6 +572,7 @@ d_strtoul='define'
d_strtoull='undef'
d_strtouq='undef'
d_strxfrm='define'
d_strxfrm_l='undef'
d_suidsafe='undef'
d_symlink='define'
d_syscall='undef'
Expand Down
2 changes: 2 additions & 0 deletions win32/config.vc
Expand Up @@ -407,6 +407,7 @@ d_nextafter='undef'
d_nexttoward='undef'
d_nice='undef'
d_nl_langinfo='undef'
d_nl_langinfo_l='undef'
d_nv_preserves_uv='define'
d_nv_zero_is_allbits_zero='define'
d_off64_t='undef'
Expand Down Expand Up @@ -571,6 +572,7 @@ d_strtoul='define'
d_strtoull='undef'
d_strtouq='undef'
d_strxfrm='define'
d_strxfrm_l='undef'
d_suidsafe='undef'
d_symlink='define'
d_syscall='undef'
Expand Down

0 comments on commit 1614000

Please sign in to comment.