| 1 |
/* A substitute for ISO C99 <ctype.h>, for platforms on which it is incomplete. |
| 2 |
|
| 3 |
Copyright (C) 2009-2024 Free Software Foundation, Inc. |
| 4 |
|
| 5 |
This file is free software: you can redistribute it and/or modify |
| 6 |
it under the terms of the GNU Lesser General Public License as |
| 7 |
published by the Free Software Foundation; either version 2.1 of the |
| 8 |
License, or (at your option) any later version. |
| 9 |
|
| 10 |
This file is distributed in the hope that it will be useful, |
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
GNU Lesser General Public License for more details. |
| 14 |
|
| 15 |
You should have received a copy of the GNU Lesser General Public License |
| 16 |
along with this program. If not, see <https://www.gnu.org/licenses/>. */ |
| 17 |
|
| 18 |
/* Written by Bruno Haible. */ |
| 19 |
|
| 20 |
/* |
| 21 |
* ISO C 99 <ctype.h> for platforms on which it is incomplete. |
| 22 |
* <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/ctype.h.html> |
| 23 |
*/ |
| 24 |
|
| 25 |
#ifndef _@GUARD_PREFIX@_CTYPE_H |
| 26 |
|
| 27 |
#if __GNUC__ >= 3 |
| 28 |
@PRAGMA_SYSTEM_HEADER@ |
| 29 |
#endif |
| 30 |
@PRAGMA_COLUMNS@ |
| 31 |
|
| 32 |
/* Include the original <ctype.h>. */ |
| 33 |
/* The include_next requires a split double-inclusion guard. */ |
| 34 |
#@INCLUDE_NEXT@ @NEXT_CTYPE_H@ |
| 35 |
|
| 36 |
#ifndef _@GUARD_PREFIX@_CTYPE_H |
| 37 |
#define _@GUARD_PREFIX@_CTYPE_H |
| 38 |
|
| 39 |
/* This file uses GNULIB_POSIXCHECK, HAVE_RAW_DECL_*. */ |
| 40 |
#if !_GL_CONFIG_H_INCLUDED |
| 41 |
#error "Please include config.h first." |
| 42 |
#endif |
| 43 |
|
| 44 |
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ |
| 45 |
|
| 46 |
/* The definition of _GL_WARN_ON_USE is copied here. */ |
| 47 |
|
| 48 |
/* Return non-zero if c is a blank, i.e. a space or tab character. */ |
| 49 |
#if @GNULIB_ISBLANK@ |
| 50 |
# if !@HAVE_ISBLANK@ |
| 51 |
_GL_EXTERN_C int isblank (int c); |
| 52 |
# endif |
| 53 |
#elif defined GNULIB_POSIXCHECK |
| 54 |
# undef isblank |
| 55 |
# if HAVE_RAW_DECL_ISBLANK |
| 56 |
_GL_WARN_ON_USE (isblank, "isblank is unportable - " |
| 57 |
"use gnulib module isblank for portability"); |
| 58 |
# endif |
| 59 |
#endif |
| 60 |
|
| 61 |
#endif /* _@GUARD_PREFIX@_CTYPE_H */ |
| 62 |
#endif /* _@GUARD_PREFIX@_CTYPE_H */ |