ftello: Add tests for large files.
[gnulib.git] / modules / wchar
blobac2ce394a3de937d5d77388f8199b24cda19b781
1 Description:
2 A <wchar.h> that works around platform issues.
3 Note also the wchar-single module.
5 Files:
6 lib/wchar.in.h
7 m4/wchar_h.m4
8 m4/wint_t.m4
10 Depends-on:
11 gen-header
12 include_next
13 snippet/arg-nonnull
14 snippet/c++defs
15 snippet/warn-on-use
16 extern-inline
17 inttypes-incomplete
18 stddef
19 stdlib
21 configure.ac:
22 gl_WCHAR_H
23 gl_WCHAR_H_REQUIRE_DEFAULTS
24 AC_PROG_MKDIR_P
26 Makefile.am:
27 BUILT_SOURCES += wchar.h
29 # We need the following in order to create <wchar.h> when the system
30 # version does not work standalone.
31 wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
32 @NMD@   $(AM_V_GEN)$(MKDIR_P) '%reldir%'
33         $(gl_V_at)$(SED_HEADER_STDOUT) \
34               -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
35               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
36               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
37               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
38               -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
39               -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \
40               -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \
41               -e 's/@''HAVE_CRTDEFS_H''@/$(HAVE_CRTDEFS_H)/g' \
42               -e 's/@''GNULIBHEADERS_OVERRIDE_WINT_T''@/$(GNULIBHEADERS_OVERRIDE_WINT_T)/g' \
43               -e 's/@''GNULIB_BTOWC''@/$(GNULIB_BTOWC)/g' \
44               -e 's/@''GNULIB_WCTOB''@/$(GNULIB_WCTOB)/g' \
45               -e 's/@''GNULIB_MBSINIT''@/$(GNULIB_MBSINIT)/g' \
46               -e 's/@''GNULIB_MBSZERO''@/$(GNULIB_MBSZERO)/g' \
47               -e 's/@''GNULIB_MBRTOWC''@/$(GNULIB_MBRTOWC)/g' \
48               -e 's/@''GNULIB_MBRLEN''@/$(GNULIB_MBRLEN)/g' \
49               -e 's/@''GNULIB_MBSRTOWCS''@/$(GNULIB_MBSRTOWCS)/g' \
50               -e 's/@''GNULIB_MBSNRTOWCS''@/$(GNULIB_MBSNRTOWCS)/g' \
51               -e 's/@''GNULIB_WCRTOMB''@/$(GNULIB_WCRTOMB)/g' \
52               -e 's/@''GNULIB_WCSRTOMBS''@/$(GNULIB_WCSRTOMBS)/g' \
53               -e 's/@''GNULIB_WCSNRTOMBS''@/$(GNULIB_WCSNRTOMBS)/g' \
54               -e 's/@''GNULIB_WCWIDTH''@/$(GNULIB_WCWIDTH)/g' \
55               -e 's/@''GNULIB_WMEMCHR''@/$(GNULIB_WMEMCHR)/g' \
56               -e 's/@''GNULIB_WMEMCMP''@/$(GNULIB_WMEMCMP)/g' \
57               -e 's/@''GNULIB_WMEMCPY''@/$(GNULIB_WMEMCPY)/g' \
58               -e 's/@''GNULIB_WMEMMOVE''@/$(GNULIB_WMEMMOVE)/g' \
59               -e 's/@''GNULIB_WMEMPCPY''@/$(GNULIB_WMEMPCPY)/g' \
60               -e 's/@''GNULIB_WMEMSET''@/$(GNULIB_WMEMSET)/g' \
61               -e 's/@''GNULIB_WCSLEN''@/$(GNULIB_WCSLEN)/g' \
62               -e 's/@''GNULIB_WCSNLEN''@/$(GNULIB_WCSNLEN)/g' \
63               -e 's/@''GNULIB_WCSCPY''@/$(GNULIB_WCSCPY)/g' \
64               -e 's/@''GNULIB_WCPCPY''@/$(GNULIB_WCPCPY)/g' \
65               -e 's/@''GNULIB_WCSNCPY''@/$(GNULIB_WCSNCPY)/g' \
66               -e 's/@''GNULIB_WCPNCPY''@/$(GNULIB_WCPNCPY)/g' \
67               -e 's/@''GNULIB_WCSCAT''@/$(GNULIB_WCSCAT)/g' \
68               -e 's/@''GNULIB_WCSNCAT''@/$(GNULIB_WCSNCAT)/g' \
69               -e 's/@''GNULIB_WCSCMP''@/$(GNULIB_WCSCMP)/g' \
70               -e 's/@''GNULIB_WCSNCMP''@/$(GNULIB_WCSNCMP)/g' \
71               -e 's/@''GNULIB_WCSCASECMP''@/$(GNULIB_WCSCASECMP)/g' \
72               -e 's/@''GNULIB_WCSNCASECMP''@/$(GNULIB_WCSNCASECMP)/g' \
73               -e 's/@''GNULIB_WCSCOLL''@/$(GNULIB_WCSCOLL)/g' \
74               -e 's/@''GNULIB_WCSXFRM''@/$(GNULIB_WCSXFRM)/g' \
75               -e 's/@''GNULIB_WCSDUP''@/$(GNULIB_WCSDUP)/g' \
76               -e 's/@''GNULIB_WCSCHR''@/$(GNULIB_WCSCHR)/g' \
77               -e 's/@''GNULIB_WCSRCHR''@/$(GNULIB_WCSRCHR)/g' \
78               -e 's/@''GNULIB_WCSCSPN''@/$(GNULIB_WCSCSPN)/g' \
79               -e 's/@''GNULIB_WCSSPN''@/$(GNULIB_WCSSPN)/g' \
80               -e 's/@''GNULIB_WCSPBRK''@/$(GNULIB_WCSPBRK)/g' \
81               -e 's/@''GNULIB_WCSSTR''@/$(GNULIB_WCSSTR)/g' \
82               -e 's/@''GNULIB_WCSTOK''@/$(GNULIB_WCSTOK)/g' \
83               -e 's/@''GNULIB_WCSWIDTH''@/$(GNULIB_WCSWIDTH)/g' \
84               -e 's/@''GNULIB_WCSFTIME''@/$(GNULIB_WCSFTIME)/g' \
85               -e 's/@''GNULIB_WGETCWD''@/$(GNULIB_WGETCWD)/g' \
86               -e 's/@''GNULIB_MDA_WCSDUP''@/$(GNULIB_MDA_WCSDUP)/g' \
87               -e 's/@''GNULIB_FREE_POSIX''@/$(GNULIB_FREE_POSIX)/g' \
88               < $(srcdir)/wchar.in.h > $@-t1
89         $(AM_V_at)sed \
90               -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
91               -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \
92               -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \
93               -e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \
94               -e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \
95               -e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \
96               -e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \
97               -e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \
98               -e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \
99               -e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \
100               -e 's|@''HAVE_WMEMCHR''@|$(HAVE_WMEMCHR)|g' \
101               -e 's|@''HAVE_WMEMCMP''@|$(HAVE_WMEMCMP)|g' \
102               -e 's|@''HAVE_WMEMCPY''@|$(HAVE_WMEMCPY)|g' \
103               -e 's|@''HAVE_WMEMMOVE''@|$(HAVE_WMEMMOVE)|g' \
104               -e 's|@''HAVE_WMEMPCPY''@|$(HAVE_WMEMPCPY)|g' \
105               -e 's|@''HAVE_WMEMSET''@|$(HAVE_WMEMSET)|g' \
106               -e 's|@''HAVE_WCSLEN''@|$(HAVE_WCSLEN)|g' \
107               -e 's|@''HAVE_WCSNLEN''@|$(HAVE_WCSNLEN)|g' \
108               -e 's|@''HAVE_WCSCPY''@|$(HAVE_WCSCPY)|g' \
109               -e 's|@''HAVE_WCPCPY''@|$(HAVE_WCPCPY)|g' \
110               -e 's|@''HAVE_WCSNCPY''@|$(HAVE_WCSNCPY)|g' \
111               -e 's|@''HAVE_WCPNCPY''@|$(HAVE_WCPNCPY)|g' \
112               -e 's|@''HAVE_WCSCAT''@|$(HAVE_WCSCAT)|g' \
113               -e 's|@''HAVE_WCSNCAT''@|$(HAVE_WCSNCAT)|g' \
114               -e 's|@''HAVE_WCSCMP''@|$(HAVE_WCSCMP)|g' \
115               -e 's|@''HAVE_WCSNCMP''@|$(HAVE_WCSNCMP)|g' \
116               -e 's|@''HAVE_WCSCASECMP''@|$(HAVE_WCSCASECMP)|g' \
117               -e 's|@''HAVE_WCSNCASECMP''@|$(HAVE_WCSNCASECMP)|g' \
118               -e 's|@''HAVE_WCSCOLL''@|$(HAVE_WCSCOLL)|g' \
119               -e 's|@''HAVE_WCSXFRM''@|$(HAVE_WCSXFRM)|g' \
120               -e 's|@''HAVE_WCSDUP''@|$(HAVE_WCSDUP)|g' \
121               -e 's|@''HAVE_WCSCHR''@|$(HAVE_WCSCHR)|g' \
122               -e 's|@''HAVE_WCSRCHR''@|$(HAVE_WCSRCHR)|g' \
123               -e 's|@''HAVE_WCSCSPN''@|$(HAVE_WCSCSPN)|g' \
124               -e 's|@''HAVE_WCSSPN''@|$(HAVE_WCSSPN)|g' \
125               -e 's|@''HAVE_WCSPBRK''@|$(HAVE_WCSPBRK)|g' \
126               -e 's|@''HAVE_WCSSTR''@|$(HAVE_WCSSTR)|g' \
127               -e 's|@''HAVE_WCSTOK''@|$(HAVE_WCSTOK)|g' \
128               -e 's|@''HAVE_WCSWIDTH''@|$(HAVE_WCSWIDTH)|g' \
129               -e 's|@''HAVE_WCSFTIME''@|$(HAVE_WCSFTIME)|g' \
130               -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \
131               -e 's|@''HAVE_DECL_WCSDUP''@|$(HAVE_DECL_WCSDUP)|g' \
132               -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
133               < $@-t1 > $@-t2
134         $(AM_V_at)sed \
135               -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \
136               -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \
137               -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \
138               -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \
139               -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \
140               -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \
141               -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \
142               -e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \
143               -e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \
144               -e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \
145               -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \
146               -e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \
147               -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
148               -e 's|@''REPLACE_WCSWIDTH''@|$(REPLACE_WCSWIDTH)|g' \
149               -e 's|@''REPLACE_WCSFTIME''@|$(REPLACE_WCSFTIME)|g' \
150               -e 's|@''REPLACE_WCSCMP''@|$(REPLACE_WCSCMP)|g' \
151               -e 's|@''REPLACE_WCSNCAT''@|$(REPLACE_WCSNCAT)|g' \
152               -e 's|@''REPLACE_WCSNCMP''@|$(REPLACE_WCSNCMP)|g' \
153               -e 's|@''REPLACE_WCSSTR''@|$(REPLACE_WCSSTR)|g' \
154               -e 's|@''REPLACE_WCSTOK''@|$(REPLACE_WCSTOK)|g' \
155               -e 's|@''REPLACE_WMEMCMP''@|$(REPLACE_WMEMCMP)|g' \
156               -e 's|@''REPLACE_WMEMPCPY''@|$(REPLACE_WMEMPCPY)|g' \
157               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
158               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
159               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
160               < $@-t2 > $@-t3
161         $(AM_V_at)rm -f $@-t1 $@-t2
162         $(AM_V_at)mv $@-t3 $@
163 MOSTLYCLEANFILES += wchar.h wchar.h-t1 wchar.h-t2 wchar.h-t3
165 Include:
166 <wchar.h>
168 License:
169 LGPLv2+
171 Maintainer: