mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-08 17:22:05 +03:00
Rename module wchar to wchar-h.
* modules/wchar-h: Renamed from modules/wchar. * modules/wchar-h-tests: Renamed from modules/wchar-tests. * modules/wchar-h-c++-tests: Renamed from modules/wchar-c++-tests. * tests/test-wchar-h.c: Renamed from tests/test-wchar.c. * tests/test-wchar-h-c++.cc: Renamed from tests/test-wchar-c++.cc. * tests/test-wchar-h-c++2.cc: Renamed from tests/test-wchar-c++2.cc. * tests/test-wchar-h-c++3.cc: Renamed from tests/test-wchar-c++3.cc. * doc/posix-headers/wchar.texi: Update. * modules/* (Depends-on): Update. * modules/wchar: New file.
This commit is contained in:
14
ChangeLog
14
ChangeLog
@@ -1,3 +1,17 @@
|
||||
2024-12-27 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
Rename module wchar to wchar-h.
|
||||
* modules/wchar-h: Renamed from modules/wchar.
|
||||
* modules/wchar-h-tests: Renamed from modules/wchar-tests.
|
||||
* modules/wchar-h-c++-tests: Renamed from modules/wchar-c++-tests.
|
||||
* tests/test-wchar-h.c: Renamed from tests/test-wchar.c.
|
||||
* tests/test-wchar-h-c++.cc: Renamed from tests/test-wchar-c++.cc.
|
||||
* tests/test-wchar-h-c++2.cc: Renamed from tests/test-wchar-c++2.cc.
|
||||
* tests/test-wchar-h-c++3.cc: Renamed from tests/test-wchar-c++3.cc.
|
||||
* doc/posix-headers/wchar.texi: Update.
|
||||
* modules/* (Depends-on): Update.
|
||||
* modules/wchar: New file.
|
||||
|
||||
2024-12-27 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
Rename module utmp to utmp-h.
|
||||
|
@@ -3,8 +3,8 @@
|
||||
|
||||
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/wchar.h.html}
|
||||
|
||||
Gnulib module: wchar
|
||||
@mindex wchar
|
||||
Gnulib module: wchar-h
|
||||
@mindex wchar-h
|
||||
|
||||
Portability problems fixed by Gnulib:
|
||||
@itemize
|
||||
|
@@ -10,7 +10,7 @@ m4/locale-fr.m4
|
||||
m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
mbszero [test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1]
|
||||
mbrtowc [test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1]
|
||||
mbtowc [test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1]
|
||||
|
@@ -15,7 +15,7 @@ m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
wctype-h
|
||||
localcharset [test $REPLACE_MBSTATE_T = 1]
|
||||
streq [test $REPLACE_MBSTATE_T = 1]
|
||||
|
@@ -15,7 +15,7 @@ m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
wctype-h
|
||||
localcharset [test $REPLACE_MBSTATE_T = 1]
|
||||
streq [test $REPLACE_MBSTATE_T = 1]
|
||||
|
@@ -15,7 +15,7 @@ m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
wctype-h
|
||||
iswblank
|
||||
localcharset [test $REPLACE_MBSTATE_T = 1]
|
||||
|
@@ -15,7 +15,7 @@ m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
wctype-h
|
||||
localcharset [test $REPLACE_MBSTATE_T = 1]
|
||||
streq [test $REPLACE_MBSTATE_T = 1]
|
||||
|
@@ -15,7 +15,7 @@ m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
wctype-h
|
||||
iswdigit
|
||||
localcharset [test $REPLACE_MBSTATE_T = 1]
|
||||
|
@@ -15,7 +15,7 @@ m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
wctype-h
|
||||
localcharset [test $REPLACE_MBSTATE_T = 1]
|
||||
streq [test $REPLACE_MBSTATE_T = 1]
|
||||
|
@@ -15,7 +15,7 @@ m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
wctype-h
|
||||
localcharset [test $REPLACE_MBSTATE_T = 1]
|
||||
streq [test $REPLACE_MBSTATE_T = 1]
|
||||
|
@@ -15,7 +15,7 @@ m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
wctype-h
|
||||
localcharset [test $REPLACE_MBSTATE_T = 1]
|
||||
streq [test $REPLACE_MBSTATE_T = 1]
|
||||
|
@@ -16,7 +16,7 @@ m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
wctype-h
|
||||
iswpunct
|
||||
localcharset [test $REPLACE_MBSTATE_T = 1]
|
||||
|
@@ -15,7 +15,7 @@ m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
wctype-h
|
||||
localcharset [test $REPLACE_MBSTATE_T = 1]
|
||||
streq [test $REPLACE_MBSTATE_T = 1]
|
||||
|
@@ -15,7 +15,7 @@ m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
wctype-h
|
||||
localcharset [test $REPLACE_MBSTATE_T = 1]
|
||||
streq [test $REPLACE_MBSTATE_T = 1]
|
||||
|
@@ -16,7 +16,7 @@ m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
wctype-h
|
||||
iswxdigit
|
||||
localcharset [test $REPLACE_MBSTATE_T = 1]
|
||||
|
@@ -13,7 +13,7 @@ m4/codeset.m4
|
||||
Depends-on:
|
||||
uchar-h
|
||||
attribute [test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1]
|
||||
wchar [test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1]
|
||||
wchar-h [test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1]
|
||||
wcrtomb [test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1]
|
||||
localcharset [{ test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1; } && test $SMALL_WCHAR_T = 1]
|
||||
streq [{ test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1; } && test $SMALL_WCHAR_T = 1]
|
||||
|
@@ -8,7 +8,7 @@ lib/c32srtombs-state.c
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
assert-h
|
||||
c32rtomb
|
||||
wcsnrtombs [test $SMALL_WCHAR_T = 0]
|
||||
|
@@ -8,7 +8,7 @@ lib/c32srtombs-state.c
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
assert-h
|
||||
c32rtomb
|
||||
wcsrtombs [test $SMALL_WCHAR_T = 0]
|
||||
|
@@ -6,7 +6,7 @@ lib/c32stombs.c
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
mbszero
|
||||
c32srtombs
|
||||
|
||||
|
@@ -11,7 +11,7 @@ m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
wcswidth
|
||||
c32width
|
||||
|
||||
|
@@ -15,7 +15,7 @@ m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
wctype-h
|
||||
localcharset [test $REPLACE_MBSTATE_T = 1]
|
||||
streq [test $REPLACE_MBSTATE_T = 1]
|
||||
|
@@ -15,7 +15,7 @@ m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
wctype-h
|
||||
localcharset [test $REPLACE_MBSTATE_T = 1]
|
||||
streq [test $REPLACE_MBSTATE_T = 1]
|
||||
|
@@ -15,7 +15,7 @@ m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
wcwidth
|
||||
uniwidth/width
|
||||
|
||||
|
@@ -37,7 +37,7 @@ uchar-h
|
||||
# to enable it.
|
||||
#uchar-h-c23
|
||||
verify
|
||||
wchar
|
||||
wchar-h
|
||||
xalloc
|
||||
xalloc-die
|
||||
|
||||
|
@@ -27,7 +27,7 @@ mbsinit [test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1]
|
||||
btowc [{ test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; } && test $SMALL_WCHAR_T = 0]
|
||||
iswctype [{ test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; } && test $SMALL_WCHAR_T = 0]
|
||||
mbsrtowcs [{ test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; } && test $SMALL_WCHAR_T = 0]
|
||||
wchar [{ test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; } && test $SMALL_WCHAR_T = 0]
|
||||
wchar-h [{ test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; } && test $SMALL_WCHAR_T = 0]
|
||||
wctype-h [{ test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; } && test $SMALL_WCHAR_T = 0]
|
||||
wctype [{ test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; } && test $SMALL_WCHAR_T = 0]
|
||||
wmemchr [{ test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; } && test $SMALL_WCHAR_T = 0]
|
||||
|
@@ -8,7 +8,7 @@ m4/free.m4
|
||||
Depends-on:
|
||||
stdlib-h
|
||||
string-h
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_FREE
|
||||
|
@@ -13,7 +13,7 @@ mbchar
|
||||
mbrtowc
|
||||
mbsinit
|
||||
mbszero
|
||||
wchar
|
||||
wchar-h
|
||||
stdbool-h
|
||||
|
||||
configure.ac:
|
||||
|
@@ -8,7 +8,7 @@ lib/mbmemcasecoll.c
|
||||
|
||||
Depends-on:
|
||||
stdbool-h
|
||||
wchar
|
||||
wchar-h
|
||||
uchar-h
|
||||
malloca
|
||||
mbszero
|
||||
|
@@ -11,7 +11,7 @@ m4/locale-zh.m4
|
||||
m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
extensions
|
||||
mbrtowc [test $HAVE_MBRLEN = 0 || test $REPLACE_MBRLEN = 1]
|
||||
|
||||
|
@@ -20,7 +20,7 @@ m4/threadlib.m4
|
||||
m4/visibility.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
extensions
|
||||
attribute [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1]
|
||||
stdint-h [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1]
|
||||
|
@@ -8,7 +8,7 @@ m4/mbstate_t.m4
|
||||
m4/mbrtowc.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
extensions
|
||||
assert-h [test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1]
|
||||
mbrtowc [test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1]
|
||||
|
@@ -8,7 +8,7 @@ lib/mbsrtoc32s-state.c
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
assert-h
|
||||
mbrtoc32
|
||||
minmax
|
||||
|
@@ -13,7 +13,7 @@ m4/locale-fr.m4
|
||||
m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
extensions
|
||||
mbrtowc [test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1]
|
||||
minmax [test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1]
|
||||
|
@@ -8,7 +8,7 @@ lib/mbsrtoc32s-state.c
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
assert-h
|
||||
mbrtoc32
|
||||
strnlen1
|
||||
|
@@ -15,7 +15,7 @@ m4/locale-zh.m4
|
||||
m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
extensions
|
||||
mbrtowc [test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1]
|
||||
strnlen1 [test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1]
|
||||
|
@@ -6,7 +6,7 @@ lib/mbstoc32s.c
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
mbszero
|
||||
mbsrtoc32s
|
||||
|
||||
|
@@ -9,7 +9,7 @@ m4/mbrtowc.m4
|
||||
m4/mbswidth.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
uchar-h
|
||||
mbrtoc32
|
||||
mbsinit
|
||||
|
@@ -11,7 +11,7 @@ m4/codeset.m4
|
||||
m4/musl.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
AC_REQUIRE([AC_TYPE_MBSTATE_T])
|
||||
|
@@ -8,7 +8,7 @@ m4/mbtowc.m4
|
||||
|
||||
Depends-on:
|
||||
stdlib-h
|
||||
wchar [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1]
|
||||
wchar-h [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1]
|
||||
mbszero [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1]
|
||||
mbrtowc [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1]
|
||||
|
||||
|
@@ -50,7 +50,7 @@ uchar-h
|
||||
unistd-h
|
||||
utime-h
|
||||
utmp-h
|
||||
wchar
|
||||
wchar-h
|
||||
wctype-h
|
||||
|
||||
configure.ac:
|
||||
|
@@ -40,7 +40,7 @@ stdbool-h [test $ac_use_included_regex = yes]
|
||||
stdckdint-h [test $ac_use_included_regex = yes]
|
||||
stdint-h [test $ac_use_included_regex = yes]
|
||||
verify [test $ac_use_included_regex = yes]
|
||||
wchar [test $ac_use_included_regex = yes]
|
||||
wchar-h [test $ac_use_included_regex = yes]
|
||||
wcrtomb [test $ac_use_included_regex = yes]
|
||||
wctype-h [test $ac_use_included_regex = yes]
|
||||
wctype [test $ac_use_included_regex = yes]
|
||||
|
@@ -6,7 +6,7 @@ Depends-on:
|
||||
extensions
|
||||
verify
|
||||
intprops
|
||||
wchar
|
||||
wchar-h
|
||||
stdint-h-c++-tests
|
||||
|
||||
configure.ac:
|
||||
|
@@ -15,7 +15,7 @@ snippet/warn-on-use
|
||||
extern-inline
|
||||
assert-h
|
||||
stdint-h
|
||||
wchar
|
||||
wchar-h
|
||||
wctype-h
|
||||
|
||||
configure.ac:
|
||||
|
@@ -7,7 +7,7 @@ lib/lc-charset-unicode.c
|
||||
|
||||
Depends-on:
|
||||
uchar-h
|
||||
wchar
|
||||
wchar-h
|
||||
iconv
|
||||
localcharset
|
||||
streq
|
||||
|
@@ -15,7 +15,7 @@ Depends-on:
|
||||
stdint-h
|
||||
limits-h
|
||||
unitypes-h
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_PREREQ_PRINTF_ARGS
|
||||
|
@@ -31,7 +31,7 @@ xsize
|
||||
errno-h
|
||||
memchr
|
||||
assert-h
|
||||
wchar
|
||||
wchar-h
|
||||
mbszero
|
||||
|
||||
configure.ac:
|
||||
|
@@ -35,7 +35,7 @@ xsize
|
||||
errno-h
|
||||
memchr
|
||||
assert-h
|
||||
wchar
|
||||
wchar-h
|
||||
mbszero
|
||||
mbrtowc
|
||||
wmemcpy
|
||||
|
160
modules/wchar
160
modules/wchar
@@ -2,165 +2,20 @@ Description:
|
||||
A <wchar.h> that works around platform issues.
|
||||
Note also the wchar-single module.
|
||||
|
||||
Status:
|
||||
deprecated
|
||||
|
||||
Notice:
|
||||
This module is deprecated. Use the module 'wchar-h' instead.
|
||||
|
||||
Files:
|
||||
lib/wchar.in.h
|
||||
m4/wchar_h.m4
|
||||
m4/wint_t.m4
|
||||
|
||||
Depends-on:
|
||||
gen-header
|
||||
include_next
|
||||
snippet/arg-nonnull
|
||||
snippet/c++defs
|
||||
snippet/warn-on-use
|
||||
extern-inline
|
||||
inttypes-h-incomplete
|
||||
stddef-h
|
||||
stdlib-h
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_WCHAR_H
|
||||
gl_WCHAR_H_REQUIRE_DEFAULTS
|
||||
AC_PROG_MKDIR_P
|
||||
|
||||
Makefile.am:
|
||||
BUILT_SOURCES += wchar.h
|
||||
|
||||
# We need the following in order to create <wchar.h> when the system
|
||||
# version does not work standalone.
|
||||
wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
|
||||
@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
|
||||
$(gl_V_at)$(SED_HEADER_STDOUT) \
|
||||
-e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
|
||||
-e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
||||
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
|
||||
-e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
|
||||
-e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
|
||||
-e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \
|
||||
-e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \
|
||||
-e 's/@''HAVE_CRTDEFS_H''@/$(HAVE_CRTDEFS_H)/g' \
|
||||
-e 's/@''GNULIBHEADERS_OVERRIDE_WINT_T''@/$(GNULIBHEADERS_OVERRIDE_WINT_T)/g' \
|
||||
-e 's/@''GNULIB_BTOWC''@/$(GNULIB_BTOWC)/g' \
|
||||
-e 's/@''GNULIB_WCTOB''@/$(GNULIB_WCTOB)/g' \
|
||||
-e 's/@''GNULIB_MBSINIT''@/$(GNULIB_MBSINIT)/g' \
|
||||
-e 's/@''GNULIB_MBSZERO''@/$(GNULIB_MBSZERO)/g' \
|
||||
-e 's/@''GNULIB_MBRTOWC''@/$(GNULIB_MBRTOWC)/g' \
|
||||
-e 's/@''GNULIB_MBRLEN''@/$(GNULIB_MBRLEN)/g' \
|
||||
-e 's/@''GNULIB_MBSRTOWCS''@/$(GNULIB_MBSRTOWCS)/g' \
|
||||
-e 's/@''GNULIB_MBSNRTOWCS''@/$(GNULIB_MBSNRTOWCS)/g' \
|
||||
-e 's/@''GNULIB_WCRTOMB''@/$(GNULIB_WCRTOMB)/g' \
|
||||
-e 's/@''GNULIB_WCSRTOMBS''@/$(GNULIB_WCSRTOMBS)/g' \
|
||||
-e 's/@''GNULIB_WCSNRTOMBS''@/$(GNULIB_WCSNRTOMBS)/g' \
|
||||
-e 's/@''GNULIB_WCWIDTH''@/$(GNULIB_WCWIDTH)/g' \
|
||||
-e 's/@''GNULIB_WMEMCHR''@/$(GNULIB_WMEMCHR)/g' \
|
||||
-e 's/@''GNULIB_WMEMCMP''@/$(GNULIB_WMEMCMP)/g' \
|
||||
-e 's/@''GNULIB_WMEMCPY''@/$(GNULIB_WMEMCPY)/g' \
|
||||
-e 's/@''GNULIB_WMEMMOVE''@/$(GNULIB_WMEMMOVE)/g' \
|
||||
-e 's/@''GNULIB_WMEMPCPY''@/$(GNULIB_WMEMPCPY)/g' \
|
||||
-e 's/@''GNULIB_WMEMSET''@/$(GNULIB_WMEMSET)/g' \
|
||||
-e 's/@''GNULIB_WCSLEN''@/$(GNULIB_WCSLEN)/g' \
|
||||
-e 's/@''GNULIB_WCSNLEN''@/$(GNULIB_WCSNLEN)/g' \
|
||||
-e 's/@''GNULIB_WCSCPY''@/$(GNULIB_WCSCPY)/g' \
|
||||
-e 's/@''GNULIB_WCPCPY''@/$(GNULIB_WCPCPY)/g' \
|
||||
-e 's/@''GNULIB_WCSNCPY''@/$(GNULIB_WCSNCPY)/g' \
|
||||
-e 's/@''GNULIB_WCPNCPY''@/$(GNULIB_WCPNCPY)/g' \
|
||||
-e 's/@''GNULIB_WCSCAT''@/$(GNULIB_WCSCAT)/g' \
|
||||
-e 's/@''GNULIB_WCSNCAT''@/$(GNULIB_WCSNCAT)/g' \
|
||||
-e 's/@''GNULIB_WCSCMP''@/$(GNULIB_WCSCMP)/g' \
|
||||
-e 's/@''GNULIB_WCSNCMP''@/$(GNULIB_WCSNCMP)/g' \
|
||||
-e 's/@''GNULIB_WCSCASECMP''@/$(GNULIB_WCSCASECMP)/g' \
|
||||
-e 's/@''GNULIB_WCSNCASECMP''@/$(GNULIB_WCSNCASECMP)/g' \
|
||||
-e 's/@''GNULIB_WCSCOLL''@/$(GNULIB_WCSCOLL)/g' \
|
||||
-e 's/@''GNULIB_WCSXFRM''@/$(GNULIB_WCSXFRM)/g' \
|
||||
-e 's/@''GNULIB_WCSDUP''@/$(GNULIB_WCSDUP)/g' \
|
||||
-e 's/@''GNULIB_WCSCHR''@/$(GNULIB_WCSCHR)/g' \
|
||||
-e 's/@''GNULIB_WCSRCHR''@/$(GNULIB_WCSRCHR)/g' \
|
||||
-e 's/@''GNULIB_WCSCSPN''@/$(GNULIB_WCSCSPN)/g' \
|
||||
-e 's/@''GNULIB_WCSSPN''@/$(GNULIB_WCSSPN)/g' \
|
||||
-e 's/@''GNULIB_WCSPBRK''@/$(GNULIB_WCSPBRK)/g' \
|
||||
-e 's/@''GNULIB_WCSSTR''@/$(GNULIB_WCSSTR)/g' \
|
||||
-e 's/@''GNULIB_WCSTOK''@/$(GNULIB_WCSTOK)/g' \
|
||||
-e 's/@''GNULIB_WCSWIDTH''@/$(GNULIB_WCSWIDTH)/g' \
|
||||
-e 's/@''GNULIB_WCSFTIME''@/$(GNULIB_WCSFTIME)/g' \
|
||||
-e 's/@''GNULIB_WGETCWD''@/$(GNULIB_WGETCWD)/g' \
|
||||
-e 's/@''GNULIB_MDA_WCSDUP''@/$(GNULIB_MDA_WCSDUP)/g' \
|
||||
-e 's/@''GNULIB_FREE_POSIX''@/$(GNULIB_FREE_POSIX)/g' \
|
||||
< $(srcdir)/wchar.in.h > $@-t1
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
|
||||
-e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \
|
||||
-e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \
|
||||
-e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \
|
||||
-e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \
|
||||
-e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \
|
||||
-e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \
|
||||
-e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \
|
||||
-e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \
|
||||
-e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \
|
||||
-e 's|@''HAVE_WMEMCHR''@|$(HAVE_WMEMCHR)|g' \
|
||||
-e 's|@''HAVE_WMEMCMP''@|$(HAVE_WMEMCMP)|g' \
|
||||
-e 's|@''HAVE_WMEMCPY''@|$(HAVE_WMEMCPY)|g' \
|
||||
-e 's|@''HAVE_WMEMMOVE''@|$(HAVE_WMEMMOVE)|g' \
|
||||
-e 's|@''HAVE_WMEMPCPY''@|$(HAVE_WMEMPCPY)|g' \
|
||||
-e 's|@''HAVE_WMEMSET''@|$(HAVE_WMEMSET)|g' \
|
||||
-e 's|@''HAVE_WCSLEN''@|$(HAVE_WCSLEN)|g' \
|
||||
-e 's|@''HAVE_WCSNLEN''@|$(HAVE_WCSNLEN)|g' \
|
||||
-e 's|@''HAVE_WCSCPY''@|$(HAVE_WCSCPY)|g' \
|
||||
-e 's|@''HAVE_WCPCPY''@|$(HAVE_WCPCPY)|g' \
|
||||
-e 's|@''HAVE_WCSNCPY''@|$(HAVE_WCSNCPY)|g' \
|
||||
-e 's|@''HAVE_WCPNCPY''@|$(HAVE_WCPNCPY)|g' \
|
||||
-e 's|@''HAVE_WCSCAT''@|$(HAVE_WCSCAT)|g' \
|
||||
-e 's|@''HAVE_WCSNCAT''@|$(HAVE_WCSNCAT)|g' \
|
||||
-e 's|@''HAVE_WCSCMP''@|$(HAVE_WCSCMP)|g' \
|
||||
-e 's|@''HAVE_WCSNCMP''@|$(HAVE_WCSNCMP)|g' \
|
||||
-e 's|@''HAVE_WCSCASECMP''@|$(HAVE_WCSCASECMP)|g' \
|
||||
-e 's|@''HAVE_WCSNCASECMP''@|$(HAVE_WCSNCASECMP)|g' \
|
||||
-e 's|@''HAVE_WCSCOLL''@|$(HAVE_WCSCOLL)|g' \
|
||||
-e 's|@''HAVE_WCSXFRM''@|$(HAVE_WCSXFRM)|g' \
|
||||
-e 's|@''HAVE_WCSDUP''@|$(HAVE_WCSDUP)|g' \
|
||||
-e 's|@''HAVE_WCSCHR''@|$(HAVE_WCSCHR)|g' \
|
||||
-e 's|@''HAVE_WCSRCHR''@|$(HAVE_WCSRCHR)|g' \
|
||||
-e 's|@''HAVE_WCSCSPN''@|$(HAVE_WCSCSPN)|g' \
|
||||
-e 's|@''HAVE_WCSSPN''@|$(HAVE_WCSSPN)|g' \
|
||||
-e 's|@''HAVE_WCSPBRK''@|$(HAVE_WCSPBRK)|g' \
|
||||
-e 's|@''HAVE_WCSSTR''@|$(HAVE_WCSSTR)|g' \
|
||||
-e 's|@''HAVE_WCSTOK''@|$(HAVE_WCSTOK)|g' \
|
||||
-e 's|@''HAVE_WCSWIDTH''@|$(HAVE_WCSWIDTH)|g' \
|
||||
-e 's|@''HAVE_WCSFTIME''@|$(HAVE_WCSFTIME)|g' \
|
||||
-e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \
|
||||
-e 's|@''HAVE_DECL_WCSDUP''@|$(HAVE_DECL_WCSDUP)|g' \
|
||||
-e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
|
||||
< $@-t1 > $@-t2
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \
|
||||
-e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \
|
||||
-e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \
|
||||
-e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \
|
||||
-e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \
|
||||
-e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \
|
||||
-e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \
|
||||
-e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \
|
||||
-e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \
|
||||
-e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \
|
||||
-e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \
|
||||
-e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \
|
||||
-e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
|
||||
-e 's|@''REPLACE_WCSWIDTH''@|$(REPLACE_WCSWIDTH)|g' \
|
||||
-e 's|@''REPLACE_WCSFTIME''@|$(REPLACE_WCSFTIME)|g' \
|
||||
-e 's|@''REPLACE_WCSCMP''@|$(REPLACE_WCSCMP)|g' \
|
||||
-e 's|@''REPLACE_WCSNCAT''@|$(REPLACE_WCSNCAT)|g' \
|
||||
-e 's|@''REPLACE_WCSNCMP''@|$(REPLACE_WCSNCMP)|g' \
|
||||
-e 's|@''REPLACE_WCSSTR''@|$(REPLACE_WCSSTR)|g' \
|
||||
-e 's|@''REPLACE_WCSTOK''@|$(REPLACE_WCSTOK)|g' \
|
||||
-e 's|@''REPLACE_WMEMCMP''@|$(REPLACE_WMEMCMP)|g' \
|
||||
-e 's|@''REPLACE_WMEMPCPY''@|$(REPLACE_WMEMPCPY)|g' \
|
||||
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
|
||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||
< $@-t2 > $@-t3
|
||||
$(AM_V_at)rm -f $@-t1 $@-t2
|
||||
$(AM_V_at)mv $@-t3 $@
|
||||
MOSTLYCLEANFILES += wchar.h wchar.h-t1 wchar.h-t2 wchar.h-t3
|
||||
|
||||
Include:
|
||||
<wchar.h>
|
||||
@@ -169,4 +24,3 @@ License:
|
||||
LGPLv2+
|
||||
|
||||
Maintainer:
|
||||
all
|
||||
|
@@ -1,21 +0,0 @@
|
||||
Files:
|
||||
tests/test-wchar-c++.cc
|
||||
tests/test-wchar-c++2.cc
|
||||
tests/test-wchar-c++3.cc
|
||||
tests/signature.h
|
||||
|
||||
Status:
|
||||
c++-test
|
||||
|
||||
Depends-on:
|
||||
ansi-c++-opt
|
||||
|
||||
configure.ac:
|
||||
|
||||
Makefile.am:
|
||||
if ANSICXX
|
||||
TESTS += test-wchar-c++
|
||||
check_PROGRAMS += test-wchar-c++
|
||||
test_wchar_c___SOURCES = test-wchar-c++.cc test-wchar-c++2.cc test-wchar-c++3.cc
|
||||
test_wchar_c___LDADD = $(LDADD) $(LIBUNISTRING) $(LIBINTL) $(NANOSLEEP_LIB) $(EUIDACCESS_LIBGEN) $(LIBTHREAD)
|
||||
endif
|
172
modules/wchar-h
Normal file
172
modules/wchar-h
Normal file
@@ -0,0 +1,172 @@
|
||||
Description:
|
||||
A <wchar.h> that works around platform issues.
|
||||
Note also the wchar-single module.
|
||||
|
||||
Files:
|
||||
lib/wchar.in.h
|
||||
m4/wchar_h.m4
|
||||
m4/wint_t.m4
|
||||
|
||||
Depends-on:
|
||||
gen-header
|
||||
include_next
|
||||
snippet/arg-nonnull
|
||||
snippet/c++defs
|
||||
snippet/warn-on-use
|
||||
extern-inline
|
||||
inttypes-h-incomplete
|
||||
stddef-h
|
||||
stdlib-h
|
||||
|
||||
configure.ac:
|
||||
gl_WCHAR_H
|
||||
gl_WCHAR_H_REQUIRE_DEFAULTS
|
||||
AC_PROG_MKDIR_P
|
||||
|
||||
Makefile.am:
|
||||
BUILT_SOURCES += wchar.h
|
||||
|
||||
# We need the following in order to create <wchar.h> when the system
|
||||
# version does not work standalone.
|
||||
wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
|
||||
@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
|
||||
$(gl_V_at)$(SED_HEADER_STDOUT) \
|
||||
-e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
|
||||
-e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
||||
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
|
||||
-e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
|
||||
-e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
|
||||
-e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \
|
||||
-e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \
|
||||
-e 's/@''HAVE_CRTDEFS_H''@/$(HAVE_CRTDEFS_H)/g' \
|
||||
-e 's/@''GNULIBHEADERS_OVERRIDE_WINT_T''@/$(GNULIBHEADERS_OVERRIDE_WINT_T)/g' \
|
||||
-e 's/@''GNULIB_BTOWC''@/$(GNULIB_BTOWC)/g' \
|
||||
-e 's/@''GNULIB_WCTOB''@/$(GNULIB_WCTOB)/g' \
|
||||
-e 's/@''GNULIB_MBSINIT''@/$(GNULIB_MBSINIT)/g' \
|
||||
-e 's/@''GNULIB_MBSZERO''@/$(GNULIB_MBSZERO)/g' \
|
||||
-e 's/@''GNULIB_MBRTOWC''@/$(GNULIB_MBRTOWC)/g' \
|
||||
-e 's/@''GNULIB_MBRLEN''@/$(GNULIB_MBRLEN)/g' \
|
||||
-e 's/@''GNULIB_MBSRTOWCS''@/$(GNULIB_MBSRTOWCS)/g' \
|
||||
-e 's/@''GNULIB_MBSNRTOWCS''@/$(GNULIB_MBSNRTOWCS)/g' \
|
||||
-e 's/@''GNULIB_WCRTOMB''@/$(GNULIB_WCRTOMB)/g' \
|
||||
-e 's/@''GNULIB_WCSRTOMBS''@/$(GNULIB_WCSRTOMBS)/g' \
|
||||
-e 's/@''GNULIB_WCSNRTOMBS''@/$(GNULIB_WCSNRTOMBS)/g' \
|
||||
-e 's/@''GNULIB_WCWIDTH''@/$(GNULIB_WCWIDTH)/g' \
|
||||
-e 's/@''GNULIB_WMEMCHR''@/$(GNULIB_WMEMCHR)/g' \
|
||||
-e 's/@''GNULIB_WMEMCMP''@/$(GNULIB_WMEMCMP)/g' \
|
||||
-e 's/@''GNULIB_WMEMCPY''@/$(GNULIB_WMEMCPY)/g' \
|
||||
-e 's/@''GNULIB_WMEMMOVE''@/$(GNULIB_WMEMMOVE)/g' \
|
||||
-e 's/@''GNULIB_WMEMPCPY''@/$(GNULIB_WMEMPCPY)/g' \
|
||||
-e 's/@''GNULIB_WMEMSET''@/$(GNULIB_WMEMSET)/g' \
|
||||
-e 's/@''GNULIB_WCSLEN''@/$(GNULIB_WCSLEN)/g' \
|
||||
-e 's/@''GNULIB_WCSNLEN''@/$(GNULIB_WCSNLEN)/g' \
|
||||
-e 's/@''GNULIB_WCSCPY''@/$(GNULIB_WCSCPY)/g' \
|
||||
-e 's/@''GNULIB_WCPCPY''@/$(GNULIB_WCPCPY)/g' \
|
||||
-e 's/@''GNULIB_WCSNCPY''@/$(GNULIB_WCSNCPY)/g' \
|
||||
-e 's/@''GNULIB_WCPNCPY''@/$(GNULIB_WCPNCPY)/g' \
|
||||
-e 's/@''GNULIB_WCSCAT''@/$(GNULIB_WCSCAT)/g' \
|
||||
-e 's/@''GNULIB_WCSNCAT''@/$(GNULIB_WCSNCAT)/g' \
|
||||
-e 's/@''GNULIB_WCSCMP''@/$(GNULIB_WCSCMP)/g' \
|
||||
-e 's/@''GNULIB_WCSNCMP''@/$(GNULIB_WCSNCMP)/g' \
|
||||
-e 's/@''GNULIB_WCSCASECMP''@/$(GNULIB_WCSCASECMP)/g' \
|
||||
-e 's/@''GNULIB_WCSNCASECMP''@/$(GNULIB_WCSNCASECMP)/g' \
|
||||
-e 's/@''GNULIB_WCSCOLL''@/$(GNULIB_WCSCOLL)/g' \
|
||||
-e 's/@''GNULIB_WCSXFRM''@/$(GNULIB_WCSXFRM)/g' \
|
||||
-e 's/@''GNULIB_WCSDUP''@/$(GNULIB_WCSDUP)/g' \
|
||||
-e 's/@''GNULIB_WCSCHR''@/$(GNULIB_WCSCHR)/g' \
|
||||
-e 's/@''GNULIB_WCSRCHR''@/$(GNULIB_WCSRCHR)/g' \
|
||||
-e 's/@''GNULIB_WCSCSPN''@/$(GNULIB_WCSCSPN)/g' \
|
||||
-e 's/@''GNULIB_WCSSPN''@/$(GNULIB_WCSSPN)/g' \
|
||||
-e 's/@''GNULIB_WCSPBRK''@/$(GNULIB_WCSPBRK)/g' \
|
||||
-e 's/@''GNULIB_WCSSTR''@/$(GNULIB_WCSSTR)/g' \
|
||||
-e 's/@''GNULIB_WCSTOK''@/$(GNULIB_WCSTOK)/g' \
|
||||
-e 's/@''GNULIB_WCSWIDTH''@/$(GNULIB_WCSWIDTH)/g' \
|
||||
-e 's/@''GNULIB_WCSFTIME''@/$(GNULIB_WCSFTIME)/g' \
|
||||
-e 's/@''GNULIB_WGETCWD''@/$(GNULIB_WGETCWD)/g' \
|
||||
-e 's/@''GNULIB_MDA_WCSDUP''@/$(GNULIB_MDA_WCSDUP)/g' \
|
||||
-e 's/@''GNULIB_FREE_POSIX''@/$(GNULIB_FREE_POSIX)/g' \
|
||||
< $(srcdir)/wchar.in.h > $@-t1
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
|
||||
-e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \
|
||||
-e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \
|
||||
-e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \
|
||||
-e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \
|
||||
-e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \
|
||||
-e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \
|
||||
-e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \
|
||||
-e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \
|
||||
-e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \
|
||||
-e 's|@''HAVE_WMEMCHR''@|$(HAVE_WMEMCHR)|g' \
|
||||
-e 's|@''HAVE_WMEMCMP''@|$(HAVE_WMEMCMP)|g' \
|
||||
-e 's|@''HAVE_WMEMCPY''@|$(HAVE_WMEMCPY)|g' \
|
||||
-e 's|@''HAVE_WMEMMOVE''@|$(HAVE_WMEMMOVE)|g' \
|
||||
-e 's|@''HAVE_WMEMPCPY''@|$(HAVE_WMEMPCPY)|g' \
|
||||
-e 's|@''HAVE_WMEMSET''@|$(HAVE_WMEMSET)|g' \
|
||||
-e 's|@''HAVE_WCSLEN''@|$(HAVE_WCSLEN)|g' \
|
||||
-e 's|@''HAVE_WCSNLEN''@|$(HAVE_WCSNLEN)|g' \
|
||||
-e 's|@''HAVE_WCSCPY''@|$(HAVE_WCSCPY)|g' \
|
||||
-e 's|@''HAVE_WCPCPY''@|$(HAVE_WCPCPY)|g' \
|
||||
-e 's|@''HAVE_WCSNCPY''@|$(HAVE_WCSNCPY)|g' \
|
||||
-e 's|@''HAVE_WCPNCPY''@|$(HAVE_WCPNCPY)|g' \
|
||||
-e 's|@''HAVE_WCSCAT''@|$(HAVE_WCSCAT)|g' \
|
||||
-e 's|@''HAVE_WCSNCAT''@|$(HAVE_WCSNCAT)|g' \
|
||||
-e 's|@''HAVE_WCSCMP''@|$(HAVE_WCSCMP)|g' \
|
||||
-e 's|@''HAVE_WCSNCMP''@|$(HAVE_WCSNCMP)|g' \
|
||||
-e 's|@''HAVE_WCSCASECMP''@|$(HAVE_WCSCASECMP)|g' \
|
||||
-e 's|@''HAVE_WCSNCASECMP''@|$(HAVE_WCSNCASECMP)|g' \
|
||||
-e 's|@''HAVE_WCSCOLL''@|$(HAVE_WCSCOLL)|g' \
|
||||
-e 's|@''HAVE_WCSXFRM''@|$(HAVE_WCSXFRM)|g' \
|
||||
-e 's|@''HAVE_WCSDUP''@|$(HAVE_WCSDUP)|g' \
|
||||
-e 's|@''HAVE_WCSCHR''@|$(HAVE_WCSCHR)|g' \
|
||||
-e 's|@''HAVE_WCSRCHR''@|$(HAVE_WCSRCHR)|g' \
|
||||
-e 's|@''HAVE_WCSCSPN''@|$(HAVE_WCSCSPN)|g' \
|
||||
-e 's|@''HAVE_WCSSPN''@|$(HAVE_WCSSPN)|g' \
|
||||
-e 's|@''HAVE_WCSPBRK''@|$(HAVE_WCSPBRK)|g' \
|
||||
-e 's|@''HAVE_WCSSTR''@|$(HAVE_WCSSTR)|g' \
|
||||
-e 's|@''HAVE_WCSTOK''@|$(HAVE_WCSTOK)|g' \
|
||||
-e 's|@''HAVE_WCSWIDTH''@|$(HAVE_WCSWIDTH)|g' \
|
||||
-e 's|@''HAVE_WCSFTIME''@|$(HAVE_WCSFTIME)|g' \
|
||||
-e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \
|
||||
-e 's|@''HAVE_DECL_WCSDUP''@|$(HAVE_DECL_WCSDUP)|g' \
|
||||
-e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
|
||||
< $@-t1 > $@-t2
|
||||
$(AM_V_at)sed \
|
||||
-e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \
|
||||
-e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \
|
||||
-e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \
|
||||
-e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \
|
||||
-e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \
|
||||
-e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \
|
||||
-e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \
|
||||
-e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \
|
||||
-e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \
|
||||
-e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \
|
||||
-e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \
|
||||
-e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \
|
||||
-e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
|
||||
-e 's|@''REPLACE_WCSWIDTH''@|$(REPLACE_WCSWIDTH)|g' \
|
||||
-e 's|@''REPLACE_WCSFTIME''@|$(REPLACE_WCSFTIME)|g' \
|
||||
-e 's|@''REPLACE_WCSCMP''@|$(REPLACE_WCSCMP)|g' \
|
||||
-e 's|@''REPLACE_WCSNCAT''@|$(REPLACE_WCSNCAT)|g' \
|
||||
-e 's|@''REPLACE_WCSNCMP''@|$(REPLACE_WCSNCMP)|g' \
|
||||
-e 's|@''REPLACE_WCSSTR''@|$(REPLACE_WCSSTR)|g' \
|
||||
-e 's|@''REPLACE_WCSTOK''@|$(REPLACE_WCSTOK)|g' \
|
||||
-e 's|@''REPLACE_WMEMCMP''@|$(REPLACE_WMEMCMP)|g' \
|
||||
-e 's|@''REPLACE_WMEMPCPY''@|$(REPLACE_WMEMPCPY)|g' \
|
||||
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
|
||||
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
|
||||
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
|
||||
< $@-t2 > $@-t3
|
||||
$(AM_V_at)rm -f $@-t1 $@-t2
|
||||
$(AM_V_at)mv $@-t3 $@
|
||||
MOSTLYCLEANFILES += wchar.h wchar.h-t1 wchar.h-t2 wchar.h-t3
|
||||
|
||||
Include:
|
||||
<wchar.h>
|
||||
|
||||
License:
|
||||
LGPLv2+
|
||||
|
||||
Maintainer:
|
||||
all
|
21
modules/wchar-h-c++-tests
Normal file
21
modules/wchar-h-c++-tests
Normal file
@@ -0,0 +1,21 @@
|
||||
Files:
|
||||
tests/test-wchar-h-c++.cc
|
||||
tests/test-wchar-h-c++2.cc
|
||||
tests/test-wchar-h-c++3.cc
|
||||
tests/signature.h
|
||||
|
||||
Status:
|
||||
c++-test
|
||||
|
||||
Depends-on:
|
||||
ansi-c++-opt
|
||||
|
||||
configure.ac:
|
||||
|
||||
Makefile.am:
|
||||
if ANSICXX
|
||||
TESTS += test-wchar-h-c++
|
||||
check_PROGRAMS += test-wchar-h-c++
|
||||
test_wchar_h_c___SOURCES = test-wchar-h-c++.cc test-wchar-h-c++2.cc test-wchar-h-c++3.cc
|
||||
test_wchar_h_c___LDADD = $(LDADD) $(LIBUNISTRING) $(LIBINTL) $(NANOSLEEP_LIB) $(EUIDACCESS_LIBGEN) $(LIBTHREAD)
|
||||
endif
|
12
modules/wchar-h-tests
Normal file
12
modules/wchar-h-tests
Normal file
@@ -0,0 +1,12 @@
|
||||
Files:
|
||||
tests/test-wchar-h.c
|
||||
|
||||
Depends-on:
|
||||
assert-h
|
||||
wchar-h-c++-tests
|
||||
|
||||
configure.ac:
|
||||
|
||||
Makefile.am:
|
||||
TESTS += test-wchar-h
|
||||
check_PROGRAMS += test-wchar-h
|
@@ -5,7 +5,7 @@ the locale charset will not change between calls.
|
||||
Files:
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
AC_DEFINE([GNULIB_WCHAR_SINGLE_LOCALE], [1],
|
||||
|
@@ -1,12 +0,0 @@
|
||||
Files:
|
||||
tests/test-wchar.c
|
||||
|
||||
Depends-on:
|
||||
assert-h
|
||||
wchar-c++-tests
|
||||
|
||||
configure.ac:
|
||||
|
||||
Makefile.am:
|
||||
TESTS += test-wchar
|
||||
check_PROGRAMS += test-wchar
|
@@ -14,7 +14,7 @@ m4/wcpcpy.m4
|
||||
|
||||
Depends-on:
|
||||
extensions
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WCPCPY
|
||||
|
@@ -8,7 +8,7 @@ m4/wcpncpy.m4
|
||||
|
||||
Depends-on:
|
||||
extensions
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WCPNCPY
|
||||
|
@@ -13,7 +13,7 @@ m4/locale-zh.m4
|
||||
m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
extensions
|
||||
mbsinit [test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1]
|
||||
|
||||
|
@@ -7,7 +7,7 @@ lib/wcscasecmp-impl.h
|
||||
m4/wcscasecmp.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
wctype-h [test $HAVE_WCSCASECMP = 0]
|
||||
|
||||
configure.ac:
|
||||
|
@@ -13,7 +13,7 @@ lib/wcscat-impl.h
|
||||
m4/wcscat.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WCSCAT
|
||||
|
@@ -13,7 +13,7 @@ lib/wcschr-impl.h
|
||||
m4/wcschr.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WCSCHR
|
||||
|
@@ -7,7 +7,7 @@ lib/wcscmp-impl.h
|
||||
m4/wcscmp.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WCSCMP
|
||||
|
@@ -14,7 +14,7 @@ m4/wcscoll.m4
|
||||
|
||||
Depends-on:
|
||||
free-posix
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WCSCOLL
|
||||
|
@@ -13,7 +13,7 @@ lib/wcscpy-impl.h
|
||||
m4/wcscpy.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WCSCPY
|
||||
|
@@ -13,7 +13,7 @@ lib/wcscspn-impl.h
|
||||
m4/wcscspn.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
wcslen [test $HAVE_WCSCSPN = 0]
|
||||
wcschr [test $HAVE_WCSCSPN = 0]
|
||||
|
||||
|
@@ -7,7 +7,7 @@ lib/wcsdup-impl.h
|
||||
m4/wcsdup.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
wcslen [test $HAVE_WCSDUP = 0]
|
||||
wmemcpy [test $HAVE_WCSDUP = 0]
|
||||
|
||||
|
@@ -6,7 +6,7 @@ lib/wcsftime.c
|
||||
m4/wcsftime.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WCSFTIME
|
||||
|
@@ -13,7 +13,7 @@ lib/wcslen-impl.h
|
||||
m4/wcslen.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WCSLEN
|
||||
|
@@ -7,7 +7,7 @@ lib/wcsncasecmp-impl.h
|
||||
m4/wcsncasecmp.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
wctype-h [test $HAVE_WCSNCASECMP = 0]
|
||||
|
||||
configure.ac:
|
||||
|
@@ -7,7 +7,7 @@ lib/wcsncat-impl.h
|
||||
m4/wcsncat.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WCSNCAT
|
||||
|
@@ -7,7 +7,7 @@ lib/wcsncmp-impl.h
|
||||
m4/wcsncmp.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WCSNCMP
|
||||
|
@@ -13,7 +13,7 @@ lib/wcsncpy-impl.h
|
||||
m4/wcsncpy.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WCSNCPY
|
||||
|
@@ -7,7 +7,7 @@ lib/wcsnlen-impl.h
|
||||
m4/wcsnlen.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WCSNLEN
|
||||
|
@@ -15,7 +15,7 @@ m4/locale-zh.m4
|
||||
m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
extensions
|
||||
wcrtomb [test $HAVE_WCSNRTOMBS = 0 || test $REPLACE_WCSNRTOMBS = 1]
|
||||
|
||||
|
@@ -13,7 +13,7 @@ lib/wcspbrk-impl.h
|
||||
m4/wcspbrk.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
wcschr [test $HAVE_WCSPBRK = 0]
|
||||
|
||||
configure.ac:
|
||||
|
@@ -13,7 +13,7 @@ lib/wcsrchr-impl.h
|
||||
m4/wcsrchr.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WCSRCHR
|
||||
|
@@ -15,7 +15,7 @@ m4/locale-zh.m4
|
||||
m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
extensions
|
||||
wcrtomb [test $HAVE_WCSRTOMBS = 0 || test $REPLACE_WCSRTOMBS = 1]
|
||||
|
||||
|
@@ -13,7 +13,7 @@ lib/wcsspn-impl.h
|
||||
m4/wcsspn.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
wcschr [test $HAVE_WCSSPN = 0]
|
||||
|
||||
configure.ac:
|
||||
|
@@ -7,7 +7,7 @@ lib/wcsstr-impl.h
|
||||
m4/wcsstr.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
wcschr [test $HAVE_WCSSTR = 0]
|
||||
|
||||
configure.ac:
|
||||
|
@@ -7,7 +7,7 @@ lib/wcstok-impl.h
|
||||
m4/wcstok.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
wcsspn [test $HAVE_WCSTOK = 0 || test $REPLACE_WCSTOK = 1]
|
||||
wcspbrk [test $HAVE_WCSTOK = 0 || test $REPLACE_WCSTOK = 1]
|
||||
|
||||
|
@@ -8,7 +8,7 @@ lib/wcswidth-impl.h
|
||||
m4/wcswidth.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
wcwidth [test $HAVE_WCSWIDTH = 0 || test $REPLACE_WCSWIDTH = 1]
|
||||
|
||||
configure.ac:
|
||||
|
@@ -9,7 +9,7 @@ m4/wcsxfrm.m4
|
||||
|
||||
Depends-on:
|
||||
free-posix
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WCSXFRM
|
||||
|
@@ -9,7 +9,7 @@ m4/locale-fr.m4
|
||||
m4/codeset.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
wctomb [test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1]
|
||||
|
||||
configure.ac:
|
||||
|
@@ -8,7 +8,7 @@ m4/wctomb.m4
|
||||
|
||||
Depends-on:
|
||||
stdlib-h
|
||||
wchar [test $REPLACE_WCTOMB = 1]
|
||||
wchar-h [test $REPLACE_WCTOMB = 1]
|
||||
mbszero [test $REPLACE_WCTOMB = 1]
|
||||
wcrtomb [test $REPLACE_WCTOMB = 1]
|
||||
|
||||
|
@@ -7,7 +7,7 @@ m4/wcwidth.m4
|
||||
m4/wint_t.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
extensions
|
||||
wctype-h [test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1]
|
||||
localcharset [test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1]
|
||||
|
@@ -6,7 +6,7 @@ Files:
|
||||
lib/wgetcwd-lgpl.c
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
free-posix
|
||||
|
||||
configure.ac:
|
||||
|
@@ -7,7 +7,7 @@ lib/wmemchr-impl.h
|
||||
m4/wmemchr.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WMEMCHR
|
||||
|
@@ -7,7 +7,7 @@ lib/wmemcmp-impl.h
|
||||
m4/wmemcmp.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WMEMCMP
|
||||
|
@@ -7,7 +7,7 @@ lib/wmemcpy-impl.h
|
||||
m4/wmemcpy.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WMEMCPY
|
||||
|
@@ -7,7 +7,7 @@ lib/wmemmove-impl.h
|
||||
m4/wmemmove.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WMEMMOVE
|
||||
|
@@ -6,7 +6,7 @@ lib/wmempcpy.c
|
||||
m4/wmempcpy.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WMEMPCPY
|
||||
|
@@ -7,7 +7,7 @@ lib/wmemset-impl.h
|
||||
m4/wmemset.m4
|
||||
|
||||
Depends-on:
|
||||
wchar
|
||||
wchar-h
|
||||
|
||||
configure.ac:
|
||||
gl_FUNC_WMEMSET
|
||||
|
Reference in New Issue
Block a user