diff options
author | Roland McGrath <roland@gnu.org> | 2002-08-06 08:40:20 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-08-06 08:40:20 +0000 |
commit | 1ab62b326e22ee3c9ab8b8b4144953698bc82cff (patch) | |
tree | ac0625c757638e382f54ca53cb9cf5c9deb171be /wctype/wcfuncs_l.c | |
parent | 9b0b40d35e239d33fbb66ebe88b7249f9a8f006e (diff) | |
download | glibc-1ab62b326e22ee3c9ab8b8b4144953698bc82cff.zip glibc-1ab62b326e22ee3c9ab8b8b4144953698bc82cff.tar.gz glibc-1ab62b326e22ee3c9ab8b8b4144953698bc82cff.tar.bz2 |
* locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
with no __ prefix.
* locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
* ctype/ctype.h [__USE_GNU]: Add declarations and macros for
all *_l functions with no __ prefix.
* wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
* ctype/ctype_l.c: Likewise.
* locale/nl_langinfo.c: Likewise.
* string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
* stdlib/stdlib.h [__USE_GNU]: Likewise.
* wcsmbs/wchar.h [__USE_GNU]: Likewise.
* wctype/wctype.h [__USE_GNU]: Likewise.
* string/strcoll_l.c (strcoll_l): Define as weak alias.
* string/strxfrm_l.c (strxfrm_l): Define as weak alias.
* sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
* sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
* stdlib/strtod_l.c (strtod_l): Define as weak alias.
* stdlib/strtof_l.c (strtof_l): Define as weak alias.
* stdlib/strtold_l.c (strtold_l): Define as weak alias.
* wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
(__wcscasecmp_l): Add libc_hidden_def.
* wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
(__wcsncasecmp_l): Add libc_hidden_def.
* wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
* wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
* wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
* wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
* wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
* sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
* sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
* sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
* sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
* sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
* sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
* wctype/wctrans_l.c (wctrans_l) Define as weak alias.
* wctype/towctrans_l.c (towctrans_l) Define as weak alias.
* wctype/wctype_l.c (wctype_l) Define as weak alias.
Diffstat (limited to 'wctype/wcfuncs_l.c')
-rw-r--r-- | wctype/wcfuncs_l.c | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/wctype/wcfuncs_l.c b/wctype/wcfuncs_l.c index df6b9df..5556dc4 100644 --- a/wctype/wcfuncs_l.c +++ b/wctype/wcfuncs_l.c @@ -27,26 +27,27 @@ /* Provide real-function versions of all the wctype macros. */ #define func(name, type) \ - int name (wint_t wc, __locale_t locale) \ + int __##name (wint_t wc, __locale_t locale) \ { \ size_t i = locale->__locales[LC_CTYPE]->values[_NL_ITEM_INDEX (_NL_CTYPE_CLASS_OFFSET)].word + type; \ const char *desc = locale->__locales[LC_CTYPE]->values[i].string; \ return wctype_table_lookup (desc, wc); \ } \ - libc_hidden_def (name) + libc_hidden_def (__##name) \ + weak_alias (__##name, name) -func (__iswalnum_l, __ISwalnum) -func (__iswalpha_l, __ISwalpha) -func (__iswblank_l, __ISwblank) -func (__iswcntrl_l, __ISwcntrl) -func (__iswdigit_l, __ISwdigit) -func (__iswlower_l, __ISwlower) -func (__iswgraph_l, __ISwgraph) -func (__iswprint_l, __ISwprint) -func (__iswpunct_l, __ISwpunct) -func (__iswspace_l, __ISwspace) -func (__iswupper_l, __ISwupper) -func (__iswxdigit_l, __ISwxdigit) +func (iswalnum_l, __ISwalnum) +func (iswalpha_l, __ISwalpha) +func (iswblank_l, __ISwblank) +func (iswcntrl_l, __ISwcntrl) +func (iswdigit_l, __ISwdigit) +func (iswlower_l, __ISwlower) +func (iswgraph_l, __ISwgraph) +func (iswprint_l, __ISwprint) +func (iswpunct_l, __ISwpunct) +func (iswspace_l, __ISwspace) +func (iswupper_l, __ISwupper) +func (iswxdigit_l, __ISwxdigit) wint_t (__towlower_l) (wint_t wc, __locale_t locale) @@ -56,6 +57,7 @@ wint_t return wctrans_table_lookup (desc, wc); } libc_hidden_def (__towlower_l) +weak_alias (__towlower_l, towlower_l) wint_t (__towupper_l) (wint_t wc, __locale_t locale) @@ -65,3 +67,4 @@ wint_t return wctrans_table_lookup (desc, wc); } libc_hidden_def (__towupper_l) +weak_alias (__towupper_l, towupper_l) |