annotate modules/wchar @ 11555:7612308943f7

sys_socket: Define sockaddr_storage.
author Simon Josefsson <simon@josefsson.org>
date Fri, 08 May 2009 16:21:34 +0200
parents 4fe203c3f828
children ff3dd373542b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7860
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
1 Description:
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
2 A <wchar.h> that works around platform issues.
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
3
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
4 Files:
9272
ed34d7be7b7c Rename wchar_.h to wchar.in.h.
Bruno Haible <bruno@clisp.org>
parents: 9091
diff changeset
5 lib/wchar.in.h
7860
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
6 m4/wchar.m4
10454
83d12e60b1e0 Ensure that wint_t gets defined on IRIX 5.3.
Bruno Haible <bruno@clisp.org>
parents: 10375
diff changeset
7 m4/wint_t.m4
7860
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
8
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
9 Depends-on:
8995
1025663f7658 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents: 8922
diff changeset
10 include_next
9073
eff03f4ce262 Remove the wcwidth.h file. Move wcwidth's declaration to wchar_.h.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
11 link-warning
7860
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
12
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
13 configure.ac:
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
14 gl_WCHAR_H
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
15
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
16 Makefile.am:
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
17 BUILT_SOURCES += $(WCHAR_H)
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
18
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
19 # We need the following in order to create <wchar.h> when the system
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
20 # version does not work standalone.
9272
ed34d7be7b7c Rename wchar_.h to wchar.in.h.
Bruno Haible <bruno@clisp.org>
parents: 9091
diff changeset
21 wchar.h: wchar.in.h
7860
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
22 rm -f $@-t $@
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
23 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
10375
f96e845fc36d Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents: 9272
diff changeset
24 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
f96e845fc36d Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents: 9272
diff changeset
25 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
8995
1025663f7658 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents: 8922
diff changeset
26 -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \
10905
bafd3f4f3496 New module 'wctob'.
Bruno Haible <bruno@clisp.org>
parents: 10895
diff changeset
27 -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \
10895
f68cffd4f574 New module 'btowc'.
Bruno Haible <bruno@clisp.org>
parents: 10892
diff changeset
28 -e 's|@''GNULIB_BTOWC''@|$(GNULIB_BTOWC)|g' \
10905
bafd3f4f3496 New module 'wctob'.
Bruno Haible <bruno@clisp.org>
parents: 10895
diff changeset
29 -e 's|@''GNULIB_WCTOB''@|$(GNULIB_WCTOB)|g' \
10892
67a8f53c94f0 New module 'mbsinit'.
Bruno Haible <bruno@clisp.org>
parents: 10454
diff changeset
30 -e 's|@''GNULIB_MBSINIT''@|$(GNULIB_MBSINIT)|g' \
10906
6e283a40b2c1 New module 'mbrtowc'.
Bruno Haible <bruno@clisp.org>
parents: 10905
diff changeset
31 -e 's|@''GNULIB_MBRTOWC''@|$(GNULIB_MBRTOWC)|g' \
10910
e79b85bd0a7d New module 'mbrlen'.
Bruno Haible <bruno@clisp.org>
parents: 10906
diff changeset
32 -e 's|@''GNULIB_MBRLEN''@|$(GNULIB_MBRLEN)|g' \
10913
b97cc734ef40 New module 'mbsrtowcs'.
Bruno Haible <bruno@clisp.org>
parents: 10910
diff changeset
33 -e 's|@''GNULIB_MBSRTOWCS''@|$(GNULIB_MBSRTOWCS)|g' \
10932
4d1763d8867c New module 'mbsnrtowcs'.
Bruno Haible <bruno@clisp.org>
parents: 10925
diff changeset
34 -e 's|@''GNULIB_MBSNRTOWCS''@|$(GNULIB_MBSNRTOWCS)|g' \
10936
197aac315d4d New module 'wcrtomb'.
Bruno Haible <bruno@clisp.org>
parents: 10932
diff changeset
35 -e 's|@''GNULIB_WCRTOMB''@|$(GNULIB_WCRTOMB)|g' \
10941
509592900669 New module 'wcsrtombs'.
Bruno Haible <bruno@clisp.org>
parents: 10939
diff changeset
36 -e 's|@''GNULIB_WCSRTOMBS''@|$(GNULIB_WCSRTOMBS)|g' \
10943
47cd92ce639a New module 'wcsnrtombs'.
Bruno Haible <bruno@clisp.org>
parents: 10941
diff changeset
37 -e 's|@''GNULIB_WCSNRTOMBS''@|$(GNULIB_WCSNRTOMBS)|g' \
9073
eff03f4ce262 Remove the wcwidth.h file. Move wcwidth's declaration to wchar_.h.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
38 -e 's|@''GNULIB_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \
10905
bafd3f4f3496 New module 'wctob'.
Bruno Haible <bruno@clisp.org>
parents: 10895
diff changeset
39 -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
10895
f68cffd4f574 New module 'btowc'.
Bruno Haible <bruno@clisp.org>
parents: 10892
diff changeset
40 -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \
10892
67a8f53c94f0 New module 'mbsinit'.
Bruno Haible <bruno@clisp.org>
parents: 10454
diff changeset
41 -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \
10906
6e283a40b2c1 New module 'mbrtowc'.
Bruno Haible <bruno@clisp.org>
parents: 10905
diff changeset
42 -e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \
10910
e79b85bd0a7d New module 'mbrlen'.
Bruno Haible <bruno@clisp.org>
parents: 10906
diff changeset
43 -e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \
10913
b97cc734ef40 New module 'mbsrtowcs'.
Bruno Haible <bruno@clisp.org>
parents: 10910
diff changeset
44 -e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \
10932
4d1763d8867c New module 'mbsnrtowcs'.
Bruno Haible <bruno@clisp.org>
parents: 10925
diff changeset
45 -e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \
10936
197aac315d4d New module 'wcrtomb'.
Bruno Haible <bruno@clisp.org>
parents: 10932
diff changeset
46 -e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \
10941
509592900669 New module 'wcsrtombs'.
Bruno Haible <bruno@clisp.org>
parents: 10939
diff changeset
47 -e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \
10943
47cd92ce639a New module 'wcsnrtombs'.
Bruno Haible <bruno@clisp.org>
parents: 10941
diff changeset
48 -e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \
10917
e5c15988572b Ensure wctob is declared on IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents: 10913
diff changeset
49 -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \
9073
eff03f4ce262 Remove the wcwidth.h file. Move wcwidth's declaration to wchar_.h.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
50 -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
10924
6f547b3710c7 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
Bruno Haible <bruno@clisp.org>
parents: 10922
diff changeset
51 -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \
10938
84611717fa6c Work around a btowc() bug on IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents: 10936
diff changeset
52 -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \
10922
91831148c181 Work around wctob bug on Solaris 9.
Bruno Haible <bruno@clisp.org>
parents: 10917
diff changeset
53 -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \
10924
6f547b3710c7 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
Bruno Haible <bruno@clisp.org>
parents: 10922
diff changeset
54 -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \
6f547b3710c7 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
Bruno Haible <bruno@clisp.org>
parents: 10922
diff changeset
55 -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \
10958
daa3e6323dc2 Work around mbrlen() bugs on various platforms.
Bruno Haible <bruno@clisp.org>
parents: 10943
diff changeset
56 -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \
10925
c8051e85cbfd Override mbsrtowcs when redefining mbstate_t.
Bruno Haible <bruno@clisp.org>
parents: 10924
diff changeset
57 -e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \
10932
4d1763d8867c New module 'mbsnrtowcs'.
Bruno Haible <bruno@clisp.org>
parents: 10925
diff changeset
58 -e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \
10939
4ee0271437dd Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
Bruno Haible <bruno@clisp.org>
parents: 10938
diff changeset
59 -e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \
10941
509592900669 New module 'wcsrtombs'.
Bruno Haible <bruno@clisp.org>
parents: 10939
diff changeset
60 -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \
11527
4fe203c3f828 Replace wcrtomb, wcsrtombs, wcsnrtombs if mbstate_t has to be replaced.
Bruno Haible <bruno@clisp.org>
parents: 10958
diff changeset
61 -e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \
9073
eff03f4ce262 Remove the wcwidth.h file. Move wcwidth's declaration to wchar_.h.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
62 -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
eff03f4ce262 Remove the wcwidth.h file. Move wcwidth's declaration to wchar_.h.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
63 -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
9272
ed34d7be7b7c Rename wchar_.h to wchar.in.h.
Bruno Haible <bruno@clisp.org>
parents: 9091
diff changeset
64 < $(srcdir)/wchar.in.h; \
7860
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
65 } > $@-t
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
66 mv $@-t $@
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
67 MOSTLYCLEANFILES += wchar.h wchar.h-t
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
68
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
69 Include:
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
70 #include <wchar.h>
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
71
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
72 License:
9091
d19ce23d01b0 Use the synonymous term "LGPLv2+".
Bruno Haible <bruno@clisp.org>
parents: 9073
diff changeset
73 LGPLv2+
7860
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
74
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
75 Maintainer:
708da4ac0ccd Provide a robust <wchar.h>. Further simplifications are now
Eric Blake <ebb9@byu.net>
parents:
diff changeset
76 all