* 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 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.
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
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]
Depends-on:
uchar-h
-wchar
+wchar-h
wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1]
Depends-on:
uchar-h
-wchar
+wchar-h
wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1]
Depends-on:
uchar-h
-wchar
+wchar-h
wctype-h
iswblank
localcharset [test $REPLACE_MBSTATE_T = 1]
Depends-on:
uchar-h
-wchar
+wchar-h
wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1]
Depends-on:
uchar-h
-wchar
+wchar-h
wctype-h
iswdigit
localcharset [test $REPLACE_MBSTATE_T = 1]
Depends-on:
uchar-h
-wchar
+wchar-h
wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1]
Depends-on:
uchar-h
-wchar
+wchar-h
wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1]
Depends-on:
uchar-h
-wchar
+wchar-h
wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1]
Depends-on:
uchar-h
-wchar
+wchar-h
wctype-h
iswpunct
localcharset [test $REPLACE_MBSTATE_T = 1]
Depends-on:
uchar-h
-wchar
+wchar-h
wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1]
Depends-on:
uchar-h
-wchar
+wchar-h
wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1]
Depends-on:
uchar-h
-wchar
+wchar-h
wctype-h
iswxdigit
localcharset [test $REPLACE_MBSTATE_T = 1]
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]
Depends-on:
uchar-h
-wchar
+wchar-h
assert-h
c32rtomb
wcsnrtombs [test $SMALL_WCHAR_T = 0]
Depends-on:
uchar-h
-wchar
+wchar-h
assert-h
c32rtomb
wcsrtombs [test $SMALL_WCHAR_T = 0]
Depends-on:
uchar-h
-wchar
+wchar-h
mbszero
c32srtombs
Depends-on:
uchar-h
-wchar
+wchar-h
wcswidth
c32width
Depends-on:
uchar-h
-wchar
+wchar-h
wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1]
Depends-on:
uchar-h
-wchar
+wchar-h
wctype-h
localcharset [test $REPLACE_MBSTATE_T = 1]
streq [test $REPLACE_MBSTATE_T = 1]
Depends-on:
uchar-h
-wchar
+wchar-h
wcwidth
uniwidth/width
# to enable it.
#uchar-h-c23
verify
-wchar
+wchar-h
xalloc
xalloc-die
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]
Depends-on:
stdlib-h
string-h
-wchar
+wchar-h
configure.ac:
gl_FUNC_FREE
mbrtowc
mbsinit
mbszero
-wchar
+wchar-h
stdbool-h
configure.ac:
Depends-on:
stdbool-h
-wchar
+wchar-h
uchar-h
malloca
mbszero
m4/codeset.m4
Depends-on:
-wchar
+wchar-h
extensions
mbrtowc [test $HAVE_MBRLEN = 0 || test $REPLACE_MBRLEN = 1]
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]
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]
Depends-on:
uchar-h
-wchar
+wchar-h
assert-h
mbrtoc32
minmax
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]
Depends-on:
uchar-h
-wchar
+wchar-h
assert-h
mbrtoc32
strnlen1
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]
Depends-on:
uchar-h
-wchar
+wchar-h
mbszero
mbsrtoc32s
m4/mbswidth.m4
Depends-on:
-wchar
+wchar-h
uchar-h
mbrtoc32
mbsinit
m4/musl.m4
Depends-on:
-wchar
+wchar-h
configure.ac:
AC_REQUIRE([AC_TYPE_MBSTATE_T])
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]
unistd-h
utime-h
utmp-h
-wchar
+wchar-h
wctype-h
configure.ac:
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]
extensions
verify
intprops
-wchar
+wchar-h
stdint-h-c++-tests
configure.ac:
extern-inline
assert-h
stdint-h
-wchar
+wchar-h
wctype-h
configure.ac:
Depends-on:
uchar-h
-wchar
+wchar-h
iconv
localcharset
streq
stdint-h
limits-h
unitypes-h
-wchar
+wchar-h
configure.ac:
gl_PREREQ_PRINTF_ARGS
errno-h
memchr
assert-h
-wchar
+wchar-h
mbszero
configure.ac:
errno-h
memchr
assert-h
-wchar
+wchar-h
mbszero
mbrtowc
wmemcpy
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>
LGPLv2+
Maintainer:
-all
+++ /dev/null
-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
--- /dev/null
+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
--- /dev/null
+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
--- /dev/null
+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
Files:
Depends-on:
-wchar
+wchar-h
configure.ac:
AC_DEFINE([GNULIB_WCHAR_SINGLE_LOCALE], [1],
+++ /dev/null
-Files:
-tests/test-wchar.c
-
-Depends-on:
-assert-h
-wchar-c++-tests
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-wchar
-check_PROGRAMS += test-wchar
Depends-on:
extensions
-wchar
+wchar-h
configure.ac:
gl_FUNC_WCPCPY
Depends-on:
extensions
-wchar
+wchar-h
configure.ac:
gl_FUNC_WCPNCPY
m4/codeset.m4
Depends-on:
-wchar
+wchar-h
extensions
mbsinit [test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1]
m4/wcscasecmp.m4
Depends-on:
-wchar
+wchar-h
wctype-h [test $HAVE_WCSCASECMP = 0]
configure.ac:
m4/wcscat.m4
Depends-on:
-wchar
+wchar-h
configure.ac:
gl_FUNC_WCSCAT
m4/wcschr.m4
Depends-on:
-wchar
+wchar-h
configure.ac:
gl_FUNC_WCSCHR
m4/wcscmp.m4
Depends-on:
-wchar
+wchar-h
configure.ac:
gl_FUNC_WCSCMP
Depends-on:
free-posix
-wchar
+wchar-h
configure.ac:
gl_FUNC_WCSCOLL
m4/wcscpy.m4
Depends-on:
-wchar
+wchar-h
configure.ac:
gl_FUNC_WCSCPY
m4/wcscspn.m4
Depends-on:
-wchar
+wchar-h
wcslen [test $HAVE_WCSCSPN = 0]
wcschr [test $HAVE_WCSCSPN = 0]
m4/wcsdup.m4
Depends-on:
-wchar
+wchar-h
wcslen [test $HAVE_WCSDUP = 0]
wmemcpy [test $HAVE_WCSDUP = 0]
m4/wcsftime.m4
Depends-on:
-wchar
+wchar-h
configure.ac:
gl_FUNC_WCSFTIME
m4/wcslen.m4
Depends-on:
-wchar
+wchar-h
configure.ac:
gl_FUNC_WCSLEN
m4/wcsncasecmp.m4
Depends-on:
-wchar
+wchar-h
wctype-h [test $HAVE_WCSNCASECMP = 0]
configure.ac:
m4/wcsncat.m4
Depends-on:
-wchar
+wchar-h
configure.ac:
gl_FUNC_WCSNCAT
m4/wcsncmp.m4
Depends-on:
-wchar
+wchar-h
configure.ac:
gl_FUNC_WCSNCMP
m4/wcsncpy.m4
Depends-on:
-wchar
+wchar-h
configure.ac:
gl_FUNC_WCSNCPY
m4/wcsnlen.m4
Depends-on:
-wchar
+wchar-h
configure.ac:
gl_FUNC_WCSNLEN
m4/codeset.m4
Depends-on:
-wchar
+wchar-h
extensions
wcrtomb [test $HAVE_WCSNRTOMBS = 0 || test $REPLACE_WCSNRTOMBS = 1]
m4/wcspbrk.m4
Depends-on:
-wchar
+wchar-h
wcschr [test $HAVE_WCSPBRK = 0]
configure.ac:
m4/wcsrchr.m4
Depends-on:
-wchar
+wchar-h
configure.ac:
gl_FUNC_WCSRCHR
m4/codeset.m4
Depends-on:
-wchar
+wchar-h
extensions
wcrtomb [test $HAVE_WCSRTOMBS = 0 || test $REPLACE_WCSRTOMBS = 1]
m4/wcsspn.m4
Depends-on:
-wchar
+wchar-h
wcschr [test $HAVE_WCSSPN = 0]
configure.ac:
m4/wcsstr.m4
Depends-on:
-wchar
+wchar-h
wcschr [test $HAVE_WCSSTR = 0]
configure.ac:
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]
m4/wcswidth.m4
Depends-on:
-wchar
+wchar-h
wcwidth [test $HAVE_WCSWIDTH = 0 || test $REPLACE_WCSWIDTH = 1]
configure.ac:
Depends-on:
free-posix
-wchar
+wchar-h
configure.ac:
gl_FUNC_WCSXFRM
m4/codeset.m4
Depends-on:
-wchar
+wchar-h
wctomb [test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1]
configure.ac:
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]
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]
lib/wgetcwd-lgpl.c
Depends-on:
-wchar
+wchar-h
free-posix
configure.ac:
m4/wmemchr.m4
Depends-on:
-wchar
+wchar-h
configure.ac:
gl_FUNC_WMEMCHR
m4/wmemcmp.m4
Depends-on:
-wchar
+wchar-h
configure.ac:
gl_FUNC_WMEMCMP
m4/wmemcpy.m4
Depends-on:
-wchar
+wchar-h
configure.ac:
gl_FUNC_WMEMCPY
m4/wmemmove.m4
Depends-on:
-wchar
+wchar-h
configure.ac:
gl_FUNC_WMEMMOVE
m4/wmempcpy.m4
Depends-on:
-wchar
+wchar-h
configure.ac:
gl_FUNC_WMEMPCPY
m4/wmemset.m4
Depends-on:
-wchar
+wchar-h
configure.ac:
gl_FUNC_WMEMSET
+++ /dev/null
-/* Test of <wchar.h> substitute in C++ mode.
- Copyright (C) 2010-2024 Free Software Foundation, Inc.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>. */
-
-/* Written by Bruno Haible <bruno@clisp.org>, 2010. */
-
-#define GNULIB_NAMESPACE gnulib
-#include <config.h>
-
-#include <wchar.h>
-
-#include "signature.h"
-
-
-#if GNULIB_TEST_BTOWC
-SIGNATURE_CHECK (GNULIB_NAMESPACE::btowc, wint_t, (int));
-#endif
-
-#if GNULIB_TEST_WCTOB
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wctob, int, (wint_t));
-#endif
-
-#if GNULIB_TEST_MBSINIT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::mbsinit, int, (const mbstate_t *));
-#endif
-
-#if GNULIB_TEST_MBRTOWC
-SIGNATURE_CHECK (GNULIB_NAMESPACE::mbrtowc, size_t,
- (wchar_t *, const char *, size_t, mbstate_t *));
-#endif
-
-#if GNULIB_TEST_MBRLEN
-SIGNATURE_CHECK (GNULIB_NAMESPACE::mbrlen, size_t,
- (const char *, size_t, mbstate_t *));
-#endif
-
-#if GNULIB_TEST_MBSRTOWCS
-SIGNATURE_CHECK (GNULIB_NAMESPACE::mbsrtowcs, size_t,
- (wchar_t *, const char **, size_t, mbstate_t *));
-#endif
-
-#if GNULIB_TEST_MBSNRTOWCS
-SIGNATURE_CHECK (GNULIB_NAMESPACE::mbsnrtowcs, size_t,
- (wchar_t *, const char **, size_t, size_t, mbstate_t *));
-#endif
-
-#if GNULIB_TEST_WCRTOMB
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcrtomb, size_t,
- (char *, wchar_t, mbstate_t *));
-#endif
-
-#if GNULIB_TEST_WCSRTOMBS
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsrtombs, size_t,
- (char *, const wchar_t **, size_t, mbstate_t *));
-#endif
-
-#if GNULIB_TEST_WCSNRTOMBS
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsnrtombs, size_t,
- (char *, const wchar_t **, size_t, size_t, mbstate_t *));
-#endif
-
-#if GNULIB_TEST_WCWIDTH
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcwidth, int, (wchar_t));
-#endif
-
-#if GNULIB_TEST_WMEMCHR
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wmemchr, wchar_t *,
- (const wchar_t *, wchar_t, size_t));
-#endif
-
-#if GNULIB_TEST_WMEMCMP
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wmemcmp, int,
- (const wchar_t *, const wchar_t *, size_t));
-#endif
-
-#if GNULIB_TEST_WMEMCPY
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wmemcpy, wchar_t *,
- (wchar_t *, const wchar_t *, size_t));
-#endif
-
-#if GNULIB_TEST_WMEMMOVE
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wmemmove, wchar_t *,
- (wchar_t *, const wchar_t *, size_t));
-#endif
-
-#if GNULIB_TEST_WMEMPCPY
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wmempcpy, wchar_t *,
- (wchar_t *, const wchar_t *, size_t));
-#endif
-
-#if GNULIB_TEST_WMEMSET
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wmemset, wchar_t *,
- (wchar_t *, wchar_t, size_t));
-#endif
-
-#if GNULIB_TEST_WCSLEN
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcslen, size_t, (const wchar_t *));
-#endif
-
-#if GNULIB_TEST_WCSNLEN
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsnlen, size_t, (const wchar_t *, size_t));
-#endif
-
-#if GNULIB_TEST_WCSCPY
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcscpy, wchar_t *,
- (wchar_t *, const wchar_t *));
-#endif
-
-#if GNULIB_TEST_WCPCPY
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcpcpy, wchar_t *,
- (wchar_t *, const wchar_t *));
-#endif
-
-#if GNULIB_TEST_WCSNCPY
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsncpy, wchar_t *,
- (wchar_t *, const wchar_t *, size_t));
-#endif
-
-#if GNULIB_TEST_WCPNCPY
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcpncpy, wchar_t *,
- (wchar_t *, const wchar_t *, size_t));
-#endif
-
-#if GNULIB_TEST_WCSCAT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcscat, wchar_t *,
- (wchar_t *, const wchar_t *));
-#endif
-
-#if GNULIB_TEST_WCSNCAT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsncat, wchar_t *,
- (wchar_t *, const wchar_t *, size_t));
-#endif
-
-#if GNULIB_TEST_WCSCMP
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcscmp, int,
- (const wchar_t *, const wchar_t *));
-#endif
-
-#if GNULIB_TEST_WCSNCMP
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsncmp, int,
- (const wchar_t *, const wchar_t *, size_t));
-#endif
-
-#if GNULIB_TEST_WCSCASECMP
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcscasecmp, int,
- (const wchar_t *, const wchar_t *));
-#endif
-
-#if GNULIB_TEST_WCSNCASECMP
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsncasecmp, int,
- (const wchar_t *, const wchar_t *, size_t));
-#endif
-
-#if GNULIB_TEST_WCSCOLL
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcscoll, int,
- (const wchar_t *, const wchar_t *));
-#endif
-
-#if GNULIB_TEST_WCSXFRM
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsxfrm, size_t,
- (wchar_t *, const wchar_t *, size_t));
-#endif
-
-#if GNULIB_TEST_WCSDUP
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsdup, wchar_t *, (const wchar_t *));
-#endif
-
-#if GNULIB_TEST_WCSCHR
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcschr, wchar_t *,
- (const wchar_t *, wchar_t));
-#endif
-
-#if GNULIB_TEST_WCSRCHR
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsrchr, wchar_t *,
- (const wchar_t *, wchar_t));
-#endif
-
-#if GNULIB_TEST_WCSCSPN
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcscspn, size_t,
- (const wchar_t *, const wchar_t *));
-#endif
-
-#if GNULIB_TEST_WCSSPN
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsspn, size_t,
- (const wchar_t *, const wchar_t *));
-#endif
-
-#if GNULIB_TEST_WCSPBRK
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcspbrk, wchar_t *,
- (const wchar_t *, const wchar_t *));
-#endif
-
-#if GNULIB_TEST_WCSSTR
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsstr, wchar_t *,
- (const wchar_t *, const wchar_t *));
-#endif
-
-#if GNULIB_TEST_WCSTOK
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcstok, wchar_t *,
- (wchar_t *, const wchar_t *, wchar_t **));
-#endif
-
-#if GNULIB_TEST_WCSWIDTH
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcswidth, int, (const wchar_t *, size_t));
-#endif
-
-#if GNULIB_TEST_WCSFTIME
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsftime, size_t,
- (wchar_t *, size_t, const wchar_t *, const struct tm *));
-#endif
-
-
-int
-main ()
-{
-}
+++ /dev/null
-/* Test of <wchar.h> substitute in C++ mode.
- Copyright (C) 2019-2024 Free Software Foundation, Inc.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>. */
-
-#define GNULIB_NAMESPACE gnulib
-#include <config.h>
-
-#include <cwchar>
+++ /dev/null
-/* Test of <wchar.h> substitute in C++ mode.
- Copyright (C) 2019-2024 Free Software Foundation, Inc.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>. */
-
-#define GNULIB_NAMESPACE gnulib
-#include <config.h>
-
-#include <wchar.h>
-#include <cstring>
-#include <sstream>
--- /dev/null
+/* Test of <wchar.h> substitute in C++ mode.
+ Copyright (C) 2010-2024 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2010. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <wchar.h>
+
+#include "signature.h"
+
+
+#if GNULIB_TEST_BTOWC
+SIGNATURE_CHECK (GNULIB_NAMESPACE::btowc, wint_t, (int));
+#endif
+
+#if GNULIB_TEST_WCTOB
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wctob, int, (wint_t));
+#endif
+
+#if GNULIB_TEST_MBSINIT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mbsinit, int, (const mbstate_t *));
+#endif
+
+#if GNULIB_TEST_MBRTOWC
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mbrtowc, size_t,
+ (wchar_t *, const char *, size_t, mbstate_t *));
+#endif
+
+#if GNULIB_TEST_MBRLEN
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mbrlen, size_t,
+ (const char *, size_t, mbstate_t *));
+#endif
+
+#if GNULIB_TEST_MBSRTOWCS
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mbsrtowcs, size_t,
+ (wchar_t *, const char **, size_t, mbstate_t *));
+#endif
+
+#if GNULIB_TEST_MBSNRTOWCS
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mbsnrtowcs, size_t,
+ (wchar_t *, const char **, size_t, size_t, mbstate_t *));
+#endif
+
+#if GNULIB_TEST_WCRTOMB
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcrtomb, size_t,
+ (char *, wchar_t, mbstate_t *));
+#endif
+
+#if GNULIB_TEST_WCSRTOMBS
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsrtombs, size_t,
+ (char *, const wchar_t **, size_t, mbstate_t *));
+#endif
+
+#if GNULIB_TEST_WCSNRTOMBS
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsnrtombs, size_t,
+ (char *, const wchar_t **, size_t, size_t, mbstate_t *));
+#endif
+
+#if GNULIB_TEST_WCWIDTH
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcwidth, int, (wchar_t));
+#endif
+
+#if GNULIB_TEST_WMEMCHR
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wmemchr, wchar_t *,
+ (const wchar_t *, wchar_t, size_t));
+#endif
+
+#if GNULIB_TEST_WMEMCMP
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wmemcmp, int,
+ (const wchar_t *, const wchar_t *, size_t));
+#endif
+
+#if GNULIB_TEST_WMEMCPY
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wmemcpy, wchar_t *,
+ (wchar_t *, const wchar_t *, size_t));
+#endif
+
+#if GNULIB_TEST_WMEMMOVE
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wmemmove, wchar_t *,
+ (wchar_t *, const wchar_t *, size_t));
+#endif
+
+#if GNULIB_TEST_WMEMPCPY
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wmempcpy, wchar_t *,
+ (wchar_t *, const wchar_t *, size_t));
+#endif
+
+#if GNULIB_TEST_WMEMSET
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wmemset, wchar_t *,
+ (wchar_t *, wchar_t, size_t));
+#endif
+
+#if GNULIB_TEST_WCSLEN
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcslen, size_t, (const wchar_t *));
+#endif
+
+#if GNULIB_TEST_WCSNLEN
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsnlen, size_t, (const wchar_t *, size_t));
+#endif
+
+#if GNULIB_TEST_WCSCPY
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcscpy, wchar_t *,
+ (wchar_t *, const wchar_t *));
+#endif
+
+#if GNULIB_TEST_WCPCPY
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcpcpy, wchar_t *,
+ (wchar_t *, const wchar_t *));
+#endif
+
+#if GNULIB_TEST_WCSNCPY
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsncpy, wchar_t *,
+ (wchar_t *, const wchar_t *, size_t));
+#endif
+
+#if GNULIB_TEST_WCPNCPY
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcpncpy, wchar_t *,
+ (wchar_t *, const wchar_t *, size_t));
+#endif
+
+#if GNULIB_TEST_WCSCAT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcscat, wchar_t *,
+ (wchar_t *, const wchar_t *));
+#endif
+
+#if GNULIB_TEST_WCSNCAT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsncat, wchar_t *,
+ (wchar_t *, const wchar_t *, size_t));
+#endif
+
+#if GNULIB_TEST_WCSCMP
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcscmp, int,
+ (const wchar_t *, const wchar_t *));
+#endif
+
+#if GNULIB_TEST_WCSNCMP
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsncmp, int,
+ (const wchar_t *, const wchar_t *, size_t));
+#endif
+
+#if GNULIB_TEST_WCSCASECMP
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcscasecmp, int,
+ (const wchar_t *, const wchar_t *));
+#endif
+
+#if GNULIB_TEST_WCSNCASECMP
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsncasecmp, int,
+ (const wchar_t *, const wchar_t *, size_t));
+#endif
+
+#if GNULIB_TEST_WCSCOLL
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcscoll, int,
+ (const wchar_t *, const wchar_t *));
+#endif
+
+#if GNULIB_TEST_WCSXFRM
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsxfrm, size_t,
+ (wchar_t *, const wchar_t *, size_t));
+#endif
+
+#if GNULIB_TEST_WCSDUP
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsdup, wchar_t *, (const wchar_t *));
+#endif
+
+#if GNULIB_TEST_WCSCHR
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcschr, wchar_t *,
+ (const wchar_t *, wchar_t));
+#endif
+
+#if GNULIB_TEST_WCSRCHR
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsrchr, wchar_t *,
+ (const wchar_t *, wchar_t));
+#endif
+
+#if GNULIB_TEST_WCSCSPN
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcscspn, size_t,
+ (const wchar_t *, const wchar_t *));
+#endif
+
+#if GNULIB_TEST_WCSSPN
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsspn, size_t,
+ (const wchar_t *, const wchar_t *));
+#endif
+
+#if GNULIB_TEST_WCSPBRK
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcspbrk, wchar_t *,
+ (const wchar_t *, const wchar_t *));
+#endif
+
+#if GNULIB_TEST_WCSSTR
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsstr, wchar_t *,
+ (const wchar_t *, const wchar_t *));
+#endif
+
+#if GNULIB_TEST_WCSTOK
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcstok, wchar_t *,
+ (wchar_t *, const wchar_t *, wchar_t **));
+#endif
+
+#if GNULIB_TEST_WCSWIDTH
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcswidth, int, (const wchar_t *, size_t));
+#endif
+
+#if GNULIB_TEST_WCSFTIME
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wcsftime, size_t,
+ (wchar_t *, size_t, const wchar_t *, const struct tm *));
+#endif
+
+
+int
+main ()
+{
+}
--- /dev/null
+/* Test of <wchar.h> substitute in C++ mode.
+ Copyright (C) 2019-2024 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <cwchar>
--- /dev/null
+/* Test of <wchar.h> substitute in C++ mode.
+ Copyright (C) 2019-2024 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <wchar.h>
+#include <cstring>
+#include <sstream>
--- /dev/null
+/* Test of <wchar.h> substitute.
+ Copyright (C) 2007-2024 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2007. */
+
+#include <config.h>
+
+#include <wchar.h>
+
+/* Check that the types wchar_t and wint_t are defined. */
+wchar_t a = 'c';
+wint_t b = 'x';
+
+/* Check that NULL can be passed through varargs as a pointer type,
+ per POSIX 2008. */
+static_assert (sizeof NULL == sizeof (void *));
+
+int
+main (void)
+{
+ return 0;
+}
+++ /dev/null
-/* Test of <wchar.h> substitute.
- Copyright (C) 2007-2024 Free Software Foundation, Inc.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>. */
-
-/* Written by Bruno Haible <bruno@clisp.org>, 2007. */
-
-#include <config.h>
-
-#include <wchar.h>
-
-/* Check that the types wchar_t and wint_t are defined. */
-wchar_t a = 'c';
-wint_t b = 'x';
-
-/* Check that NULL can be passed through varargs as a pointer type,
- per POSIX 2008. */
-static_assert (sizeof NULL == sizeof (void *));
-
-int
-main (void)
-{
- return 0;
-}