Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5496 | leency | 1 | // -*- C++ -*- header wrapper. |
2 | |||
3 | // Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc. |
||
4 | // |
||
5 | // This file is part of the GNU ISO C++ Library. This library is free |
||
6 | // software; you can redistribute it and/or modify it under the |
||
7 | // terms of the GNU General Public License as published by the |
||
8 | // Free Software Foundation; either version 2, or (at your option) |
||
9 | // any later version. |
||
10 | |||
11 | // This library is distributed in the hope that it will be useful, |
||
12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
14 | // GNU General Public License for more details. |
||
15 | |||
16 | // You should have received a copy of the GNU General Public License along |
||
17 | // with this library; see the file COPYING. If not, write to the Free |
||
18 | // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
||
19 | // USA. |
||
20 | |||
21 | // As a special exception, you may use this file as part of a free software |
||
22 | // library without restriction. Specifically, if other files instantiate |
||
23 | // templates or use macros or inline functions from this file, or you compile |
||
24 | // this file and link it with other files to produce an executable, this |
||
25 | // file does not by itself cause the resulting executable to be covered by |
||
26 | // the GNU General Public License. This exception does not however |
||
27 | // invalidate any other reasons why the executable file might be covered by |
||
28 | // the GNU General Public License. |
||
29 | |||
30 | // ISO C++ 14882: 22 |
||
31 | // |
||
32 | |||
33 | #ifndef _CPP_CCTYPE |
||
34 | #define _CPP_CCTYPE 1 |
||
35 | |||
36 | namespace _C_legacy { |
||
37 | extern "C" { |
||
38 | # define _IN_C_LEGACY_ |
||
39 | # pragma GCC system_header |
||
40 | # include_next |
||
41 | } |
||
42 | |||
43 | inline int |
||
44 | _CPP_isalnum_capture(int c) { return isalnum(c); } |
||
45 | |||
46 | inline int |
||
47 | _CPP_isalpha_capture(int c) { return isalpha(c); } |
||
48 | |||
49 | inline int |
||
50 | _CPP_iscntrl_capture(int c) { return iscntrl(c); } |
||
51 | |||
52 | inline int |
||
53 | _CPP_isdigit_capture(int c) { return isdigit(c); } |
||
54 | |||
55 | inline int |
||
56 | _CPP_isgraph_capture(int c) { return isgraph(c); } |
||
57 | |||
58 | inline int |
||
59 | _CPP_islower_capture(int c) { return islower(c); } |
||
60 | |||
61 | inline int |
||
62 | _CPP_isprint_capture(int c) { return isprint(c); } |
||
63 | |||
64 | inline int |
||
65 | _CPP_ispunct_capture(int c) { return ispunct(c); } |
||
66 | |||
67 | inline int |
||
68 | _CPP_isspace_capture(int c) { return isspace(c); } |
||
69 | |||
70 | inline int |
||
71 | _CPP_isupper_capture(int c) { return isupper(c); } |
||
72 | |||
73 | inline int |
||
74 | _CPP_isxdigit_capture(int c) { return isxdigit(c); } |
||
75 | |||
76 | inline int |
||
77 | _CPP_tolower_capture(int c) { return tolower(c); } |
||
78 | |||
79 | inline int |
||
80 | _CPP_toupper_capture(int c) { return toupper(c); } |
||
81 | } // namespace _C_legacy |
||
82 | |||
83 | # undef isalnum |
||
84 | # undef isalpha |
||
85 | # undef iscntrl |
||
86 | # undef isdigit |
||
87 | # undef isgraph |
||
88 | # undef islower |
||
89 | # undef isprint |
||
90 | # undef ispunct |
||
91 | # undef isspace |
||
92 | # undef isupper |
||
93 | # undef isxdigit |
||
94 | |||
95 | # undef tolower |
||
96 | # undef toupper |
||
97 | |||
98 | namespace std { |
||
99 | inline int |
||
100 | isalnum(int __c) { return _C_legacy::_CPP_isalnum_capture(__c); } |
||
101 | |||
102 | inline int |
||
103 | isalpha(int __c) { return _C_legacy::_CPP_isalpha_capture(__c); } |
||
104 | |||
105 | inline int |
||
106 | iscntrl(int __c) { return _C_legacy::_CPP_iscntrl_capture(__c); } |
||
107 | |||
108 | inline int |
||
109 | isdigit(int __c) { return _C_legacy::_CPP_isdigit_capture(__c); } |
||
110 | |||
111 | inline int |
||
112 | isgraph(int __c) { return _C_legacy::_CPP_isgraph_capture(__c); } |
||
113 | |||
114 | inline int |
||
115 | islower(int __c) { return _C_legacy::_CPP_islower_capture(__c); } |
||
116 | |||
117 | inline int |
||
118 | isprint(int __c) { return _C_legacy::_CPP_isprint_capture(__c); } |
||
119 | |||
120 | inline int |
||
121 | ispunct(int __c) { return _C_legacy::_CPP_ispunct_capture(__c); } |
||
122 | |||
123 | inline int |
||
124 | isspace(int __c) { return _C_legacy::_CPP_isspace_capture(__c); } |
||
125 | |||
126 | inline int |
||
127 | isupper(int __c) { return _C_legacy::_CPP_isupper_capture(__c); } |
||
128 | |||
129 | inline int |
||
130 | isxdigit(int __c) { return _C_legacy::_CPP_isxdigit_capture(__c); } |
||
131 | |||
132 | inline int |
||
133 | tolower(int __c) { return _C_legacy::_CPP_tolower_capture(__c); } |
||
134 | |||
135 | inline int |
||
136 | toupper(int __c) { return _C_legacy::_CPP_toupper_capture(__c); } |
||
137 | } // namespace std |
||
138 | |||
139 | # undef _IN_C_LEGACY_ |
||
140 | |||
141 | #endif |
||
142 |