1
0
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:
Bruno Haible
2024-12-27 23:43:27 +01:00
parent cb2fa25e81
commit fae9498888
95 changed files with 311 additions and 271 deletions

View File

@@ -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> 2024-12-27 Bruno Haible <bruno@clisp.org>
Rename module utmp to utmp-h. Rename module utmp to utmp-h.

View File

@@ -3,8 +3,8 @@
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/wchar.h.html} POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/wchar.h.html}
Gnulib module: wchar Gnulib module: wchar-h
@mindex wchar @mindex wchar-h
Portability problems fixed by Gnulib: Portability problems fixed by Gnulib:
@itemize @itemize

View File

@@ -10,7 +10,7 @@ m4/locale-fr.m4
m4/codeset.m4 m4/codeset.m4
Depends-on: Depends-on:
wchar wchar-h
mbszero [test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1] mbszero [test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1]
mbrtowc [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] mbtowc [test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1]

View File

@@ -15,7 +15,7 @@ m4/codeset.m4
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
wctype-h wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1] localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1] streq [test $REPLACE_MBSTATE_T = 1]

View File

@@ -15,7 +15,7 @@ m4/codeset.m4
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
wctype-h wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1] localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1] streq [test $REPLACE_MBSTATE_T = 1]

View File

@@ -15,7 +15,7 @@ m4/codeset.m4
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
wctype-h wctype-h
iswblank iswblank
localcharset [test $REPLACE_MBSTATE_T = 1] localcharset [test $REPLACE_MBSTATE_T = 1]

View File

@@ -15,7 +15,7 @@ m4/codeset.m4
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
wctype-h wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1] localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1] streq [test $REPLACE_MBSTATE_T = 1]

View File

@@ -15,7 +15,7 @@ m4/codeset.m4
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
wctype-h wctype-h
iswdigit iswdigit
localcharset [test $REPLACE_MBSTATE_T = 1] localcharset [test $REPLACE_MBSTATE_T = 1]

View File

@@ -15,7 +15,7 @@ m4/codeset.m4
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
wctype-h wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1] localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1] streq [test $REPLACE_MBSTATE_T = 1]

View File

@@ -15,7 +15,7 @@ m4/codeset.m4
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
wctype-h wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1] localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1] streq [test $REPLACE_MBSTATE_T = 1]

View File

@@ -15,7 +15,7 @@ m4/codeset.m4
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
wctype-h wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1] localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1] streq [test $REPLACE_MBSTATE_T = 1]

View File

@@ -16,7 +16,7 @@ m4/codeset.m4
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
wctype-h wctype-h
iswpunct iswpunct
localcharset [test $REPLACE_MBSTATE_T = 1] localcharset [test $REPLACE_MBSTATE_T = 1]

View File

@@ -15,7 +15,7 @@ m4/codeset.m4
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
wctype-h wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1] localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1] streq [test $REPLACE_MBSTATE_T = 1]

View File

@@ -15,7 +15,7 @@ m4/codeset.m4
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
wctype-h wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1] localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1] streq [test $REPLACE_MBSTATE_T = 1]

View File

@@ -16,7 +16,7 @@ m4/codeset.m4
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
wctype-h wctype-h
iswxdigit iswxdigit
localcharset [test $REPLACE_MBSTATE_T = 1] localcharset [test $REPLACE_MBSTATE_T = 1]

View File

@@ -13,7 +13,7 @@ m4/codeset.m4
Depends-on: Depends-on:
uchar-h uchar-h
attribute [test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1] 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] wcrtomb [test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1]
localcharset [{ test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1; } && test $SMALL_WCHAR_T = 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] streq [{ test $HAVE_C32RTOMB = 0 || test $REPLACE_C32RTOMB = 1; } && test $SMALL_WCHAR_T = 1]

View File

@@ -8,7 +8,7 @@ lib/c32srtombs-state.c
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
assert-h assert-h
c32rtomb c32rtomb
wcsnrtombs [test $SMALL_WCHAR_T = 0] wcsnrtombs [test $SMALL_WCHAR_T = 0]

View File

@@ -8,7 +8,7 @@ lib/c32srtombs-state.c
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
assert-h assert-h
c32rtomb c32rtomb
wcsrtombs [test $SMALL_WCHAR_T = 0] wcsrtombs [test $SMALL_WCHAR_T = 0]

View File

@@ -6,7 +6,7 @@ lib/c32stombs.c
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
mbszero mbszero
c32srtombs c32srtombs

View File

@@ -11,7 +11,7 @@ m4/codeset.m4
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
wcswidth wcswidth
c32width c32width

View File

@@ -15,7 +15,7 @@ m4/codeset.m4
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
wctype-h wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1] localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1] streq [test $REPLACE_MBSTATE_T = 1]

View File

@@ -15,7 +15,7 @@ m4/codeset.m4
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
wctype-h wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1] localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1] streq [test $REPLACE_MBSTATE_T = 1]

View File

@@ -15,7 +15,7 @@ m4/codeset.m4
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
wcwidth wcwidth
uniwidth/width uniwidth/width

View File

@@ -37,7 +37,7 @@ uchar-h
# to enable it. # to enable it.
#uchar-h-c23 #uchar-h-c23
verify verify
wchar wchar-h
xalloc xalloc
xalloc-die xalloc-die

View File

@@ -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] 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] 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] 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-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] 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] wmemchr [{ test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; } && test $SMALL_WCHAR_T = 0]

View File

@@ -8,7 +8,7 @@ m4/free.m4
Depends-on: Depends-on:
stdlib-h stdlib-h
string-h string-h
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_FREE gl_FUNC_FREE

View File

@@ -13,7 +13,7 @@ mbchar
mbrtowc mbrtowc
mbsinit mbsinit
mbszero mbszero
wchar wchar-h
stdbool-h stdbool-h
configure.ac: configure.ac:

View File

@@ -8,7 +8,7 @@ lib/mbmemcasecoll.c
Depends-on: Depends-on:
stdbool-h stdbool-h
wchar wchar-h
uchar-h uchar-h
malloca malloca
mbszero mbszero

View File

@@ -11,7 +11,7 @@ m4/locale-zh.m4
m4/codeset.m4 m4/codeset.m4
Depends-on: Depends-on:
wchar wchar-h
extensions extensions
mbrtowc [test $HAVE_MBRLEN = 0 || test $REPLACE_MBRLEN = 1] mbrtowc [test $HAVE_MBRLEN = 0 || test $REPLACE_MBRLEN = 1]

View File

@@ -20,7 +20,7 @@ m4/threadlib.m4
m4/visibility.m4 m4/visibility.m4
Depends-on: Depends-on:
wchar wchar-h
extensions extensions
attribute [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1] attribute [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1]
stdint-h [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1] stdint-h [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1]

View File

@@ -8,7 +8,7 @@ m4/mbstate_t.m4
m4/mbrtowc.m4 m4/mbrtowc.m4
Depends-on: Depends-on:
wchar wchar-h
extensions extensions
assert-h [test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1] assert-h [test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1]
mbrtowc [test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1] mbrtowc [test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1]

View File

@@ -8,7 +8,7 @@ lib/mbsrtoc32s-state.c
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
assert-h assert-h
mbrtoc32 mbrtoc32
minmax minmax

View File

@@ -13,7 +13,7 @@ m4/locale-fr.m4
m4/codeset.m4 m4/codeset.m4
Depends-on: Depends-on:
wchar wchar-h
extensions extensions
mbrtowc [test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1] mbrtowc [test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1]
minmax [test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1] minmax [test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1]

View File

@@ -8,7 +8,7 @@ lib/mbsrtoc32s-state.c
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
assert-h assert-h
mbrtoc32 mbrtoc32
strnlen1 strnlen1

View File

@@ -15,7 +15,7 @@ m4/locale-zh.m4
m4/codeset.m4 m4/codeset.m4
Depends-on: Depends-on:
wchar wchar-h
extensions extensions
mbrtowc [test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1] mbrtowc [test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1]
strnlen1 [test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1] strnlen1 [test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1]

View File

@@ -6,7 +6,7 @@ lib/mbstoc32s.c
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
mbszero mbszero
mbsrtoc32s mbsrtoc32s

View File

@@ -9,7 +9,7 @@ m4/mbrtowc.m4
m4/mbswidth.m4 m4/mbswidth.m4
Depends-on: Depends-on:
wchar wchar-h
uchar-h uchar-h
mbrtoc32 mbrtoc32
mbsinit mbsinit

View File

@@ -11,7 +11,7 @@ m4/codeset.m4
m4/musl.m4 m4/musl.m4
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
AC_REQUIRE([AC_TYPE_MBSTATE_T]) AC_REQUIRE([AC_TYPE_MBSTATE_T])

View File

@@ -8,7 +8,7 @@ m4/mbtowc.m4
Depends-on: Depends-on:
stdlib-h 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] mbszero [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1]
mbrtowc [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1] mbrtowc [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1]

View File

@@ -50,7 +50,7 @@ uchar-h
unistd-h unistd-h
utime-h utime-h
utmp-h utmp-h
wchar wchar-h
wctype-h wctype-h
configure.ac: configure.ac:

View File

@@ -40,7 +40,7 @@ stdbool-h [test $ac_use_included_regex = yes]
stdckdint-h [test $ac_use_included_regex = yes] stdckdint-h [test $ac_use_included_regex = yes]
stdint-h [test $ac_use_included_regex = yes] stdint-h [test $ac_use_included_regex = yes]
verify [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] wcrtomb [test $ac_use_included_regex = yes]
wctype-h [test $ac_use_included_regex = yes] wctype-h [test $ac_use_included_regex = yes]
wctype [test $ac_use_included_regex = yes] wctype [test $ac_use_included_regex = yes]

View File

@@ -6,7 +6,7 @@ Depends-on:
extensions extensions
verify verify
intprops intprops
wchar wchar-h
stdint-h-c++-tests stdint-h-c++-tests
configure.ac: configure.ac:

View File

@@ -15,7 +15,7 @@ snippet/warn-on-use
extern-inline extern-inline
assert-h assert-h
stdint-h stdint-h
wchar wchar-h
wctype-h wctype-h
configure.ac: configure.ac:

View File

@@ -7,7 +7,7 @@ lib/lc-charset-unicode.c
Depends-on: Depends-on:
uchar-h uchar-h
wchar wchar-h
iconv iconv
localcharset localcharset
streq streq

View File

@@ -15,7 +15,7 @@ Depends-on:
stdint-h stdint-h
limits-h limits-h
unitypes-h unitypes-h
wchar wchar-h
configure.ac: configure.ac:
gl_PREREQ_PRINTF_ARGS gl_PREREQ_PRINTF_ARGS

View File

@@ -31,7 +31,7 @@ xsize
errno-h errno-h
memchr memchr
assert-h assert-h
wchar wchar-h
mbszero mbszero
configure.ac: configure.ac:

View File

@@ -35,7 +35,7 @@ xsize
errno-h errno-h
memchr memchr
assert-h assert-h
wchar wchar-h
mbszero mbszero
mbrtowc mbrtowc
wmemcpy wmemcpy

View File

@@ -2,165 +2,20 @@ Description:
A <wchar.h> that works around platform issues. A <wchar.h> that works around platform issues.
Note also the wchar-single module. Note also the wchar-single module.
Status:
deprecated
Notice:
This module is deprecated. Use the module 'wchar-h' instead.
Files: Files:
lib/wchar.in.h
m4/wchar_h.m4
m4/wint_t.m4
Depends-on: Depends-on:
gen-header wchar-h
include_next
snippet/arg-nonnull
snippet/c++defs
snippet/warn-on-use
extern-inline
inttypes-h-incomplete
stddef-h
stdlib-h
configure.ac: configure.ac:
gl_WCHAR_H
gl_WCHAR_H_REQUIRE_DEFAULTS
AC_PROG_MKDIR_P
Makefile.am: 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: Include:
<wchar.h> <wchar.h>
@@ -169,4 +24,3 @@ License:
LGPLv2+ LGPLv2+
Maintainer: Maintainer:
all

View File

@@ -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
View 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
View 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
View 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

View File

@@ -5,7 +5,7 @@ the locale charset will not change between calls.
Files: Files:
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
AC_DEFINE([GNULIB_WCHAR_SINGLE_LOCALE], [1], AC_DEFINE([GNULIB_WCHAR_SINGLE_LOCALE], [1],

View File

@@ -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

View File

@@ -14,7 +14,7 @@ m4/wcpcpy.m4
Depends-on: Depends-on:
extensions extensions
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WCPCPY gl_FUNC_WCPCPY

View File

@@ -8,7 +8,7 @@ m4/wcpncpy.m4
Depends-on: Depends-on:
extensions extensions
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WCPNCPY gl_FUNC_WCPNCPY

View File

@@ -13,7 +13,7 @@ m4/locale-zh.m4
m4/codeset.m4 m4/codeset.m4
Depends-on: Depends-on:
wchar wchar-h
extensions extensions
mbsinit [test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1] mbsinit [test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1]

View File

@@ -7,7 +7,7 @@ lib/wcscasecmp-impl.h
m4/wcscasecmp.m4 m4/wcscasecmp.m4
Depends-on: Depends-on:
wchar wchar-h
wctype-h [test $HAVE_WCSCASECMP = 0] wctype-h [test $HAVE_WCSCASECMP = 0]
configure.ac: configure.ac:

View File

@@ -13,7 +13,7 @@ lib/wcscat-impl.h
m4/wcscat.m4 m4/wcscat.m4
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WCSCAT gl_FUNC_WCSCAT

View File

@@ -13,7 +13,7 @@ lib/wcschr-impl.h
m4/wcschr.m4 m4/wcschr.m4
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WCSCHR gl_FUNC_WCSCHR

View File

@@ -7,7 +7,7 @@ lib/wcscmp-impl.h
m4/wcscmp.m4 m4/wcscmp.m4
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WCSCMP gl_FUNC_WCSCMP

View File

@@ -14,7 +14,7 @@ m4/wcscoll.m4
Depends-on: Depends-on:
free-posix free-posix
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WCSCOLL gl_FUNC_WCSCOLL

View File

@@ -13,7 +13,7 @@ lib/wcscpy-impl.h
m4/wcscpy.m4 m4/wcscpy.m4
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WCSCPY gl_FUNC_WCSCPY

View File

@@ -13,7 +13,7 @@ lib/wcscspn-impl.h
m4/wcscspn.m4 m4/wcscspn.m4
Depends-on: Depends-on:
wchar wchar-h
wcslen [test $HAVE_WCSCSPN = 0] wcslen [test $HAVE_WCSCSPN = 0]
wcschr [test $HAVE_WCSCSPN = 0] wcschr [test $HAVE_WCSCSPN = 0]

View File

@@ -7,7 +7,7 @@ lib/wcsdup-impl.h
m4/wcsdup.m4 m4/wcsdup.m4
Depends-on: Depends-on:
wchar wchar-h
wcslen [test $HAVE_WCSDUP = 0] wcslen [test $HAVE_WCSDUP = 0]
wmemcpy [test $HAVE_WCSDUP = 0] wmemcpy [test $HAVE_WCSDUP = 0]

View File

@@ -6,7 +6,7 @@ lib/wcsftime.c
m4/wcsftime.m4 m4/wcsftime.m4
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WCSFTIME gl_FUNC_WCSFTIME

View File

@@ -13,7 +13,7 @@ lib/wcslen-impl.h
m4/wcslen.m4 m4/wcslen.m4
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WCSLEN gl_FUNC_WCSLEN

View File

@@ -7,7 +7,7 @@ lib/wcsncasecmp-impl.h
m4/wcsncasecmp.m4 m4/wcsncasecmp.m4
Depends-on: Depends-on:
wchar wchar-h
wctype-h [test $HAVE_WCSNCASECMP = 0] wctype-h [test $HAVE_WCSNCASECMP = 0]
configure.ac: configure.ac:

View File

@@ -7,7 +7,7 @@ lib/wcsncat-impl.h
m4/wcsncat.m4 m4/wcsncat.m4
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WCSNCAT gl_FUNC_WCSNCAT

View File

@@ -7,7 +7,7 @@ lib/wcsncmp-impl.h
m4/wcsncmp.m4 m4/wcsncmp.m4
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WCSNCMP gl_FUNC_WCSNCMP

View File

@@ -13,7 +13,7 @@ lib/wcsncpy-impl.h
m4/wcsncpy.m4 m4/wcsncpy.m4
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WCSNCPY gl_FUNC_WCSNCPY

View File

@@ -7,7 +7,7 @@ lib/wcsnlen-impl.h
m4/wcsnlen.m4 m4/wcsnlen.m4
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WCSNLEN gl_FUNC_WCSNLEN

View File

@@ -15,7 +15,7 @@ m4/locale-zh.m4
m4/codeset.m4 m4/codeset.m4
Depends-on: Depends-on:
wchar wchar-h
extensions extensions
wcrtomb [test $HAVE_WCSNRTOMBS = 0 || test $REPLACE_WCSNRTOMBS = 1] wcrtomb [test $HAVE_WCSNRTOMBS = 0 || test $REPLACE_WCSNRTOMBS = 1]

View File

@@ -13,7 +13,7 @@ lib/wcspbrk-impl.h
m4/wcspbrk.m4 m4/wcspbrk.m4
Depends-on: Depends-on:
wchar wchar-h
wcschr [test $HAVE_WCSPBRK = 0] wcschr [test $HAVE_WCSPBRK = 0]
configure.ac: configure.ac:

View File

@@ -13,7 +13,7 @@ lib/wcsrchr-impl.h
m4/wcsrchr.m4 m4/wcsrchr.m4
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WCSRCHR gl_FUNC_WCSRCHR

View File

@@ -15,7 +15,7 @@ m4/locale-zh.m4
m4/codeset.m4 m4/codeset.m4
Depends-on: Depends-on:
wchar wchar-h
extensions extensions
wcrtomb [test $HAVE_WCSRTOMBS = 0 || test $REPLACE_WCSRTOMBS = 1] wcrtomb [test $HAVE_WCSRTOMBS = 0 || test $REPLACE_WCSRTOMBS = 1]

View File

@@ -13,7 +13,7 @@ lib/wcsspn-impl.h
m4/wcsspn.m4 m4/wcsspn.m4
Depends-on: Depends-on:
wchar wchar-h
wcschr [test $HAVE_WCSSPN = 0] wcschr [test $HAVE_WCSSPN = 0]
configure.ac: configure.ac:

View File

@@ -7,7 +7,7 @@ lib/wcsstr-impl.h
m4/wcsstr.m4 m4/wcsstr.m4
Depends-on: Depends-on:
wchar wchar-h
wcschr [test $HAVE_WCSSTR = 0] wcschr [test $HAVE_WCSSTR = 0]
configure.ac: configure.ac:

View File

@@ -7,7 +7,7 @@ lib/wcstok-impl.h
m4/wcstok.m4 m4/wcstok.m4
Depends-on: Depends-on:
wchar wchar-h
wcsspn [test $HAVE_WCSTOK = 0 || test $REPLACE_WCSTOK = 1] wcsspn [test $HAVE_WCSTOK = 0 || test $REPLACE_WCSTOK = 1]
wcspbrk [test $HAVE_WCSTOK = 0 || test $REPLACE_WCSTOK = 1] wcspbrk [test $HAVE_WCSTOK = 0 || test $REPLACE_WCSTOK = 1]

View File

@@ -8,7 +8,7 @@ lib/wcswidth-impl.h
m4/wcswidth.m4 m4/wcswidth.m4
Depends-on: Depends-on:
wchar wchar-h
wcwidth [test $HAVE_WCSWIDTH = 0 || test $REPLACE_WCSWIDTH = 1] wcwidth [test $HAVE_WCSWIDTH = 0 || test $REPLACE_WCSWIDTH = 1]
configure.ac: configure.ac:

View File

@@ -9,7 +9,7 @@ m4/wcsxfrm.m4
Depends-on: Depends-on:
free-posix free-posix
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WCSXFRM gl_FUNC_WCSXFRM

View File

@@ -9,7 +9,7 @@ m4/locale-fr.m4
m4/codeset.m4 m4/codeset.m4
Depends-on: Depends-on:
wchar wchar-h
wctomb [test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1] wctomb [test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1]
configure.ac: configure.ac:

View File

@@ -8,7 +8,7 @@ m4/wctomb.m4
Depends-on: Depends-on:
stdlib-h stdlib-h
wchar [test $REPLACE_WCTOMB = 1] wchar-h [test $REPLACE_WCTOMB = 1]
mbszero [test $REPLACE_WCTOMB = 1] mbszero [test $REPLACE_WCTOMB = 1]
wcrtomb [test $REPLACE_WCTOMB = 1] wcrtomb [test $REPLACE_WCTOMB = 1]

View File

@@ -7,7 +7,7 @@ m4/wcwidth.m4
m4/wint_t.m4 m4/wint_t.m4
Depends-on: Depends-on:
wchar wchar-h
extensions extensions
wctype-h [test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1] wctype-h [test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1]
localcharset [test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1] localcharset [test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1]

View File

@@ -6,7 +6,7 @@ Files:
lib/wgetcwd-lgpl.c lib/wgetcwd-lgpl.c
Depends-on: Depends-on:
wchar wchar-h
free-posix free-posix
configure.ac: configure.ac:

View File

@@ -7,7 +7,7 @@ lib/wmemchr-impl.h
m4/wmemchr.m4 m4/wmemchr.m4
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WMEMCHR gl_FUNC_WMEMCHR

View File

@@ -7,7 +7,7 @@ lib/wmemcmp-impl.h
m4/wmemcmp.m4 m4/wmemcmp.m4
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WMEMCMP gl_FUNC_WMEMCMP

View File

@@ -7,7 +7,7 @@ lib/wmemcpy-impl.h
m4/wmemcpy.m4 m4/wmemcpy.m4
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WMEMCPY gl_FUNC_WMEMCPY

View File

@@ -7,7 +7,7 @@ lib/wmemmove-impl.h
m4/wmemmove.m4 m4/wmemmove.m4
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WMEMMOVE gl_FUNC_WMEMMOVE

View File

@@ -6,7 +6,7 @@ lib/wmempcpy.c
m4/wmempcpy.m4 m4/wmempcpy.m4
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WMEMPCPY gl_FUNC_WMEMPCPY

View File

@@ -7,7 +7,7 @@ lib/wmemset-impl.h
m4/wmemset.m4 m4/wmemset.m4
Depends-on: Depends-on:
wchar wchar-h
configure.ac: configure.ac:
gl_FUNC_WMEMSET gl_FUNC_WMEMSET