Deleted Added
full compact
isctype.c (54746) isctype.c (57035)
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 24 unchanged lines hidden (view full) ---

33 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
40 *
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 24 unchanged lines hidden (view full) ---

33 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
40 *
41 * $FreeBSD: head/lib/libc/locale/isctype.c 54746 1999-12-17 15:12:21Z phantom $
41 * $FreeBSD: head/lib/libc/locale/isctype.c 57035 2000-02-08 07:43:26Z obrien $
42 */
43
44#if defined(LIBC_SCCS) && !defined(lint)
45static char sccsid[] = "@(#)isctype.c 8.3 (Berkeley) 2/24/94";
46#endif /* LIBC_SCCS and not lint */
47
48#include <ctype.h>
49

--- 5 unchanged lines hidden (view full) ---

55 return (__maskrune((c), 0xFF));
56}
57
58#undef isalnum
59int
60isalnum(c)
61 int c;
62{
42 */
43
44#if defined(LIBC_SCCS) && !defined(lint)
45static char sccsid[] = "@(#)isctype.c 8.3 (Berkeley) 2/24/94";
46#endif /* LIBC_SCCS and not lint */
47
48#include <ctype.h>
49

--- 5 unchanged lines hidden (view full) ---

55 return (__maskrune((c), 0xFF));
56}
57
58#undef isalnum
59int
60isalnum(c)
61 int c;
62{
63 return (__istype((c), _A|_D));
63 return (__istype((c), _CTYPE_A|_CTYPE_D));
64}
65
66#undef isalpha
67int
68isalpha(c)
69 int c;
70{
64}
65
66#undef isalpha
67int
68isalpha(c)
69 int c;
70{
71 return (__istype((c), _A));
71 return (__istype((c), _CTYPE_A));
72}
73
74#undef isascii
75int
76isascii(c)
77 int c;
78{
79 return (((c) & ~0x7F) == 0);
80}
81
82#undef isblank
83int
84isblank(c)
85 int c;
86{
72}
73
74#undef isascii
75int
76isascii(c)
77 int c;
78{
79 return (((c) & ~0x7F) == 0);
80}
81
82#undef isblank
83int
84isblank(c)
85 int c;
86{
87 return (__istype((c), _B));
87 return (__istype((c), _CTYPE_B));
88}
89
90#undef iscntrl
91int
92iscntrl(c)
93 int c;
94{
88}
89
90#undef iscntrl
91int
92iscntrl(c)
93 int c;
94{
95 return (__istype((c), _C));
95 return (__istype((c), _CTYPE_C));
96}
97
98#undef isdigit
99int
100isdigit(c)
101 int c;
102{
96}
97
98#undef isdigit
99int
100isdigit(c)
101 int c;
102{
103 return (__isctype((c), _D));
103 return (__isctype((c), _CTYPE_D));
104}
105
106#undef isgraph
107int
108isgraph(c)
109 int c;
110{
104}
105
106#undef isgraph
107int
108isgraph(c)
109 int c;
110{
111 return (__istype((c), _G));
111 return (__istype((c), _CTYPE_G));
112}
113
114#undef ishexnumber
115int
116ishexnumber(c)
117 int c;
118{
112}
113
114#undef ishexnumber
115int
116ishexnumber(c)
117 int c;
118{
119 return (__istype((c), _X));
119 return (__istype((c), _CTYPE_X));
120}
121
122#undef isideogram
123int
124isideogram(c)
125 int c;
126{
120}
121
122#undef isideogram
123int
124isideogram(c)
125 int c;
126{
127 return (__istype((c), _I));
127 return (__istype((c), _CTYPE_I));
128}
129
130#undef islower
131int
132islower(c)
133 int c;
134{
128}
129
130#undef islower
131int
132islower(c)
133 int c;
134{
135 return (__istype((c), _L));
135 return (__istype((c), _CTYPE_L));
136}
137
138#undef isnumber
139int
140isnumber(c)
141 int c;
142{
136}
137
138#undef isnumber
139int
140isnumber(c)
141 int c;
142{
143 return (__istype((c), _D));
143 return (__istype((c), _CTYPE_D));
144}
145
146#undef isphonogram
147int
148isphonogram(c)
149 int c;
150{
144}
145
146#undef isphonogram
147int
148isphonogram(c)
149 int c;
150{
151 return (__istype((c), _Q));
151 return (__istype((c), _CTYPE_Q));
152}
153
154#undef isprint
155int
156isprint(c)
157 int c;
158{
152}
153
154#undef isprint
155int
156isprint(c)
157 int c;
158{
159 return (__istype((c), _R));
159 return (__istype((c), _CTYPE_R));
160}
161
162#undef ispunct
163int
164ispunct(c)
165 int c;
166{
160}
161
162#undef ispunct
163int
164ispunct(c)
165 int c;
166{
167 return (__istype((c), _P));
167 return (__istype((c), _CTYPE_P));
168}
169
170#undef isrune
171int
172isrune(c)
173 int c;
174{
175 return (__istype((c), 0xFFFFFF00L));
176}
177
178#undef isspace
179int
180isspace(c)
181 int c;
182{
168}
169
170#undef isrune
171int
172isrune(c)
173 int c;
174{
175 return (__istype((c), 0xFFFFFF00L));
176}
177
178#undef isspace
179int
180isspace(c)
181 int c;
182{
183 return (__istype((c), _S));
183 return (__istype((c), _CTYPE_S));
184}
185
186#undef isspecial
187int
188isspecial(c)
189 int c;
190{
184}
185
186#undef isspecial
187int
188isspecial(c)
189 int c;
190{
191 return (__istype((c), _T));
191 return (__istype((c), _CTYPE_T));
192}
193
194#undef isupper
195int
196isupper(c)
197 int c;
198{
192}
193
194#undef isupper
195int
196isupper(c)
197 int c;
198{
199 return (__istype((c), _U));
199 return (__istype((c), _CTYPE_U));
200}
201
202#undef isxdigit
203int
204isxdigit(c)
205 int c;
206{
200}
201
202#undef isxdigit
203int
204isxdigit(c)
205 int c;
206{
207 return (__isctype((c), _X));
207 return (__isctype((c), _CTYPE_X));
208}
209
210#undef toascii
211int
212toascii(c)
213 int c;
214{
215 return ((c) & 0x7F);

--- 18 unchanged lines hidden ---
208}
209
210#undef toascii
211int
212toascii(c)
213 int c;
214{
215 return ((c) & 0x7F);

--- 18 unchanged lines hidden ---