Mercurial > hg > octave-kai > gnulib-hg
annotate modules/wctype-h @ 14319:aef6efcc4045
New module 'wctype'.
* modules/wctype: Change to represent the wctype() substitute.
* lib/wctype.in.h (wctype): New declaration.
* lib/wctype.c: New file.
* lib/wctype-impl.h: New file.
* m4/wctype.m4: New file.
* m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
(gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
* modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
* tests/test-wctype-h-c++.cc: Test the declaration of wctype.
* doc/posix-functions/wctype.texi: Mention the new module and the
HP-UX 11.00 problem.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 06 Feb 2011 23:45:40 +0100 |
parents | 18ad0b0246fc |
children | 9a2d4c1b2034 |
rev | line source |
---|---|
14304
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 Description: |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
2 A <wctype.h> that conforms better to C99. |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 Files: |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
5 lib/wctype.in.h |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 m4/wctype_h.m4 |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 m4/wint_t.m4 |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 Depends-on: |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 include_next |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 c++defs |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 warn-on-use |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 configure.ac: |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 gl_WCTYPE_H |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 Makefile.am: |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
18 BUILT_SOURCES += wctype.h |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
19 |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
20 # We need the following in order to create <wctype.h> when the system |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
21 # doesn't have one that works with the given compiler. |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
22 wctype.h: wctype.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
23 $(AM_V_GEN)rm -f $@-t $@ && \ |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
24 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
25 sed -e 's/@''HAVE_WCTYPE_H''@/$(HAVE_WCTYPE_H)/g' \ |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
26 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
27 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
28 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
29 -e 's|@''NEXT_WCTYPE_H''@|$(NEXT_WCTYPE_H)|g' \ |
14310 | 30 -e 's/@''GNULIB_ISWBLANK''@/$(GNULIB_ISWBLANK)/g' \ |
14319 | 31 -e 's/@''GNULIB_WCTYPE''@/$(GNULIB_WCTYPE)/g' \ |
14304
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
32 -e 's/@''HAVE_ISWBLANK''@/$(HAVE_ISWBLANK)/g' \ |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
33 -e 's/@''HAVE_ISWCNTRL''@/$(HAVE_ISWCNTRL)/g' \ |
14318
18ad0b0246fc
wctype-h: Ensure wctype_t and wctrans_t are defined.
Bruno Haible <bruno@clisp.org>
parents:
14310
diff
changeset
|
34 -e 's/@''HAVE_WCTYPE_T''@/$(HAVE_WCTYPE_T)/g' \ |
18ad0b0246fc
wctype-h: Ensure wctype_t and wctrans_t are defined.
Bruno Haible <bruno@clisp.org>
parents:
14310
diff
changeset
|
35 -e 's/@''HAVE_WCTRANS_T''@/$(HAVE_WCTRANS_T)/g' \ |
14304
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
36 -e 's/@''HAVE_WINT_T''@/$(HAVE_WINT_T)/g' \ |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
37 -e 's/@''REPLACE_ISWBLANK''@/$(REPLACE_ISWBLANK)/g' \ |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
38 -e 's/@''REPLACE_ISWCNTRL''@/$(REPLACE_ISWCNTRL)/g' \ |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
39 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
40 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
41 < $(srcdir)/wctype.in.h; \ |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
42 } > $@-t && \ |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
43 mv $@-t $@ |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
44 MOSTLYCLEANFILES += wctype.h wctype.h-t |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
45 |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
46 Include: |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
47 <wctype.h> |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
48 |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
49 License: |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
50 LGPLv2+ |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
51 |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
52 Maintainer: |
550f5258de22
Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
53 all |