Branch
Hash :
6f828018
Author :
Date :
2025-02-16T06:55:52
toupper_l: New module. * lib/ctype.in.h: (toupper_l): New declaration. * lib/toupper_l.c: New file. * m4/toupper_l.m4: New file. * m4/ctype_h.m4 (gl_CTYPE_H): Test for toupper_l. (gl_CTYPE_H_REQUIRE_DEFAULTS): Initialize GNULIB_TOUPPER_L. (gl_CTYPE_H_DEFAULTS): Initialize HAVE_TOUPPER_L. * modules/ctype-h (Makefile.am): Substitute GNULIB_TOUPPER_L, HAVE_TOUPPER_L. * modules/toupper_l: New file. * tests/test-ctype-h-c++.cc: Check declaration of toupper_l. * doc/posix-functions/toupper_l.texi: Mention the new module.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
/* Test of <ctype.h> substitute in C++ mode.
Copyright (C) 2019-2025 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */
/* Written by Bruno Haible <bruno@clisp.org>, 2019. */
#define GNULIB_NAMESPACE gnulib
#include <config.h>
#include <ctype.h>
#include "signature.h"
#if GNULIB_TEST_ISALNUM_L
SIGNATURE_CHECK (GNULIB_NAMESPACE::isalnum_l, int, (int, locale_t));
#endif
#if GNULIB_TEST_ISALPHA_L
SIGNATURE_CHECK (GNULIB_NAMESPACE::isalpha_l, int, (int, locale_t));
#endif
#if 0
SIGNATURE_CHECK (GNULIB_NAMESPACE::isblank, int, (int));
#endif
#if GNULIB_TEST_ISBLANK_L
SIGNATURE_CHECK (GNULIB_NAMESPACE::isblank_l, int, (int, locale_t));
#endif
#if GNULIB_TEST_ISCNTRL_L
SIGNATURE_CHECK (GNULIB_NAMESPACE::iscntrl_l, int, (int, locale_t));
#endif
#if GNULIB_TEST_ISDIGIT_L
SIGNATURE_CHECK (GNULIB_NAMESPACE::isdigit_l, int, (int, locale_t));
#endif
#if GNULIB_TEST_ISGRAPH_L
SIGNATURE_CHECK (GNULIB_NAMESPACE::isgraph_l, int, (int, locale_t));
#endif
#if GNULIB_TEST_ISLOWER_L
SIGNATURE_CHECK (GNULIB_NAMESPACE::islower_l, int, (int, locale_t));
#endif
#if GNULIB_TEST_ISPRINT_L
SIGNATURE_CHECK (GNULIB_NAMESPACE::isprint_l, int, (int, locale_t));
#endif
#if GNULIB_TEST_ISPUNCT_L
SIGNATURE_CHECK (GNULIB_NAMESPACE::ispunct_l, int, (int, locale_t));
#endif
#if GNULIB_TEST_ISSPACE_L
SIGNATURE_CHECK (GNULIB_NAMESPACE::isspace_l, int, (int, locale_t));
#endif
#if GNULIB_TEST_ISUPPER_L
SIGNATURE_CHECK (GNULIB_NAMESPACE::isupper_l, int, (int, locale_t));
#endif
#if GNULIB_TEST_ISXDIGIT_L
SIGNATURE_CHECK (GNULIB_NAMESPACE::isxdigit_l, int, (int, locale_t));
#endif
#if GNULIB_TEST_TOLOWER_L
SIGNATURE_CHECK (GNULIB_NAMESPACE::tolower_l, int, (int, locale_t));
#endif
#if GNULIB_TEST_TOUPPER_L
SIGNATURE_CHECK (GNULIB_NAMESPACE::toupper_l, int, (int, locale_t));
#endif
int
main ()
{
}