Richard Smith | ceeace9 | 2015-10-08 20:36:30 +0000 | [diff] [blame] | 1 | // -*- C++ -*- |
| 2 | //===---------------------------- ctype.h ---------------------------------===// |
| 3 | // |
| 4 | // The LLVM Compiler Infrastructure |
| 5 | // |
| 6 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 7 | // Source Licenses. See LICENSE.TXT for details. |
| 8 | // |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | |
| 11 | #ifndef _LIBCPP_CTYPE_H |
| 12 | #define _LIBCPP_CTYPE_H |
| 13 | |
| 14 | /* |
| 15 | ctype.h synopsis |
| 16 | |
| 17 | int isalnum(int c); |
| 18 | int isalpha(int c); |
| 19 | int isblank(int c); // C99 |
| 20 | int iscntrl(int c); |
| 21 | int isdigit(int c); |
| 22 | int isgraph(int c); |
| 23 | int islower(int c); |
| 24 | int isprint(int c); |
| 25 | int ispunct(int c); |
| 26 | int isspace(int c); |
| 27 | int isupper(int c); |
| 28 | int isxdigit(int c); |
| 29 | int tolower(int c); |
| 30 | int toupper(int c); |
| 31 | */ |
| 32 | |
| 33 | #include <__config> |
Richard Smith | ceeace9 | 2015-10-08 20:36:30 +0000 | [diff] [blame] | 34 | |
| 35 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
| 36 | #pragma GCC system_header |
| 37 | #endif |
| 38 | |
Richard Smith | 45bae0b | 2015-10-09 00:26:50 +0000 | [diff] [blame] | 39 | #include_next <ctype.h> |
| 40 | |
Richard Smith | ceeace9 | 2015-10-08 20:36:30 +0000 | [diff] [blame] | 41 | #ifdef __cplusplus |
| 42 | |
Richard Smith | ceeace9 | 2015-10-08 20:36:30 +0000 | [diff] [blame] | 43 | #undef isalnum |
| 44 | #undef isalpha |
| 45 | #undef isblank |
| 46 | #undef iscntrl |
| 47 | #undef isdigit |
| 48 | #undef isgraph |
| 49 | #undef islower |
| 50 | #undef isprint |
| 51 | #undef ispunct |
| 52 | #undef isspace |
| 53 | #undef isupper |
| 54 | #undef isxdigit |
| 55 | #undef tolower |
| 56 | #undef toupper |
| 57 | |
| 58 | #endif |
| 59 | |
| 60 | #endif // _LIBCPP_CTYPE_H |