annotate tests/test-wctype-h-c++.cc @ 17530:8981b79e1271

error: make the module depend on vfprintf-posix * modules/error (Depends-on): Add vfprintf-posix, since error calls vfprintf unconditionally, via error_tail.
author Jim Meyering <meyering@fb.com>
date Sat, 12 Oct 2013 19:28:40 -0700
parents e542fd46ad6f
children 344018b6e5d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14304
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Test of <wctype.h> substitute in C++ mode.
17249
e542fd46ad6f maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents: 16201
diff changeset
2 Copyright (C) 2010-2013 Free Software Foundation, Inc.
14304
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 This program is free software: you can redistribute it and/or modify
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 3 of the License, or
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 (at your option) any later version.
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 This program is distributed in the hope that it will be useful,
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
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 You should have received a copy of the GNU General Public License
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
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 /* Written by Bruno Haible <bruno@clisp.org>, 2010. */
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #define GNULIB_NAMESPACE gnulib
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 #include <config.h>
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 #include <wctype.h>
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 #include "signature.h"
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswalnum, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswalpha, int, (wint_t));
14310
00537d144c48 New module 'iswblank'.
Bruno Haible <bruno@clisp.org>
parents: 14304
diff changeset
29 #if GNULIB_TEST_ISWBLANK
14304
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswblank, int, (wint_t));
14310
00537d144c48 New module 'iswblank'.
Bruno Haible <bruno@clisp.org>
parents: 14304
diff changeset
31 #endif
14304
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswcntrl, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswdigit, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswgraph, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswlower, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswprint, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswpunct, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswspace, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswupper, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswxdigit, int, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41
14319
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents: 14310
diff changeset
42 #if GNULIB_TEST_WCTYPE
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents: 14310
diff changeset
43 SIGNATURE_CHECK (GNULIB_NAMESPACE::wctype, wctype_t, (const char *));
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents: 14310
diff changeset
44 #endif
aef6efcc4045 New module 'wctype'.
Bruno Haible <bruno@clisp.org>
parents: 14310
diff changeset
45
14320
9a2d4c1b2034 New module 'iswctype'.
Bruno Haible <bruno@clisp.org>
parents: 14319
diff changeset
46 #if GNULIB_TEST_ISWCTYPE
9a2d4c1b2034 New module 'iswctype'.
Bruno Haible <bruno@clisp.org>
parents: 14319
diff changeset
47 SIGNATURE_CHECK (GNULIB_NAMESPACE::iswctype, int, (wint_t, wctype_t));
9a2d4c1b2034 New module 'iswctype'.
Bruno Haible <bruno@clisp.org>
parents: 14319
diff changeset
48 #endif
9a2d4c1b2034 New module 'iswctype'.
Bruno Haible <bruno@clisp.org>
parents: 14319
diff changeset
49
14304
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
50 SIGNATURE_CHECK (GNULIB_NAMESPACE::towlower, wint_t, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
51 SIGNATURE_CHECK (GNULIB_NAMESPACE::towupper, wint_t, (wint_t));
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
52
14321
3b388f38755d New module 'wctrans'.
Bruno Haible <bruno@clisp.org>
parents: 14320
diff changeset
53 #if GNULIB_TEST_WCTRANS
3b388f38755d New module 'wctrans'.
Bruno Haible <bruno@clisp.org>
parents: 14320
diff changeset
54 SIGNATURE_CHECK (GNULIB_NAMESPACE::wctrans, wctrans_t, (const char *));
3b388f38755d New module 'wctrans'.
Bruno Haible <bruno@clisp.org>
parents: 14320
diff changeset
55 #endif
3b388f38755d New module 'wctrans'.
Bruno Haible <bruno@clisp.org>
parents: 14320
diff changeset
56
14322
4d31d731ac62 New module 'towctrans'.
Bruno Haible <bruno@clisp.org>
parents: 14321
diff changeset
57 #if GNULIB_TEST_TOWCTRANS
4d31d731ac62 New module 'towctrans'.
Bruno Haible <bruno@clisp.org>
parents: 14321
diff changeset
58 SIGNATURE_CHECK (GNULIB_NAMESPACE::towctrans, wint_t, (wint_t, wctrans_t));
4d31d731ac62 New module 'towctrans'.
Bruno Haible <bruno@clisp.org>
parents: 14321
diff changeset
59 #endif
4d31d731ac62 New module 'towctrans'.
Bruno Haible <bruno@clisp.org>
parents: 14321
diff changeset
60
14304
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
61
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
62 int
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
63 main ()
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
64 {
550f5258de22 Rename module 'wctype' to 'wctype-h'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
65 }