annotate lib/wctype.c @ 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
children 8250f2777afc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14319
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Get descriptor for a wide character property.
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 Copyright (C) 2011 Free Software Foundation, Inc.
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 Written by Bruno Haible <bruno@clisp.org>, 2011.
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 This program is free software: you can redistribute it and/or modify
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 it under the terms of the GNU General Public License as published by
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 the Free Software Foundation; either version 3 of the License, or
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 (at your option) any later version.
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 This program is distributed in the hope that it will be useful,
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 GNU General Public License for more details.
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 You should have received a copy of the GNU General Public License
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 #include <config.h>
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 /* Specification. */
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 #include <wctype.h>
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 #include <string.h>
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 #include "wctype-impl.h"