1/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
2/* -*- buffer-read-only: t -*- vi: set ro: */
3/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
4#line 1
5/* A substitute for ISO C99 <ctype.h>, for platforms on which it is incomplete.
6
7   Copyright (C) 2009, 2010 Free Software Foundation, Inc.
8
9   This program is free software; you can redistribute it and/or modify
10   it under the terms of the GNU General Public License as published by
11   the Free Software Foundation; either version 3, or (at your option)
12   any later version.
13
14   This program is distributed in the hope that it will be useful,
15   but WITHOUT ANY WARRANTY; without even the implied warranty of
16   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17   GNU General Public License for more details.
18
19   You should have received a copy of the GNU General Public License
20   along with this program; if not, write to the Free Software Foundation,
21   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
22
23/* Written by Bruno Haible.  */
24
25/*
26 * ISO C 99 <ctype.h> for platforms on which it is incomplete.
27 * <http://www.opengroup.org/onlinepubs/9699919799/basedefs/ctype.h.html>
28 */
29
30#ifndef _GL_CTYPE_H
31
32#if __GNUC__ >= 3
33#pragma GCC system_header
34#endif
35
36/* Include the original <ctype.h>.  */
37/* The include_next requires a split double-inclusion guard.  */
38#include_next <ctype.h>
39
40#ifndef _GL_CTYPE_H
41#define _GL_CTYPE_H
42
43/* The definition of GL_LINK_WARNING is copied here.  */
44/* GL_LINK_WARNING("literal string") arranges to emit the literal string as
45   a linker warning on most glibc systems.
46   We use a linker warning rather than a preprocessor warning, because
47   #warning cannot be used inside macros.  */
48#ifndef GL_LINK_WARNING
49  /* This works on platforms with GNU ld and ELF object format.
50     Testing __GLIBC__ is sufficient for asserting that GNU ld is in use.
51     Testing __ELF__ guarantees the ELF object format.
52     Testing __GNUC__ is necessary for the compound expression syntax.  */
53# if defined __GLIBC__ && defined __ELF__ && defined __GNUC__
54#  define GL_LINK_WARNING(message) \
55     GL_LINK_WARNING1 (__FILE__, __LINE__, message)
56#  define GL_LINK_WARNING1(file, line, message) \
57     GL_LINK_WARNING2 (file, line, message)  /* macroexpand file and line */
58#  define GL_LINK_WARNING2(file, line, message) \
59     GL_LINK_WARNING3 (file ":" #line ": warning: " message)
60#  define GL_LINK_WARNING3(message) \
61     ({ static const char warning[sizeof (message)]             \
62          __attribute__ ((__unused__,                           \
63                          __section__ (".gnu.warning"),         \
64                          __aligned__ (1)))                     \
65          = message "\n";                                       \
66        (void)0;                                                \
67     })
68# else
69#  define GL_LINK_WARNING(message) ((void) 0)
70# endif
71#endif
72
73/* Return non-zero if c is a blank, i.e. a space or tab character.  */
74#if 1
75# if !1
76extern int isblank (int c);
77# endif
78#elif defined GNULIB_POSIXCHECK
79# undef isblank
80# define isblank(c) \
81    (GL_LINK_WARNING ("isblank is unportable - " \
82                      "use gnulib module isblank for portability"), \
83     isblank (c))
84#endif
85
86#endif /* _GL_CTYPE_H */
87#endif /* _GL_CTYPE_H */
88