]> git.ipfire.org Git - thirdparty/glibc.git/blame - include/ctype.h
Remove __libc_readv and __libc_writev function names.
[thirdparty/glibc.git] / include / ctype.h
CommitLineData
0f283ffc
RM
1#ifndef _CTYPE_H
2
31341567 3#ifndef _ISOMAC
fd5bdc09
UD
4/* Initialize ctype locale data. */
5extern void __ctype_init (void);
6libc_hidden_proto (__ctype_init)
7
1ba0f089
UD
8extern int __isctype (int __c, int __mask);
9
0f283ffc
RM
10# ifndef NOT_IN_libc
11
cf684340
RM
12/* These accessors are used by the optimized macros to find the
13 thread-local cache of ctype information from the current thread's
14 locale. For inside libc, define them as inlines using the _NL_CURRENT
15 accessors. We don't use _NL_CURRENT_LOCALE->__ctype_b here because we
16 want to cause a link-time ref to _nl_current_LC_CTYPE under
0f283ffc
RM
17 NL_CURRENT_INDIRECT. */
18
19# include "../locale/localeinfo.h"
cf684340
RM
20# include <bits/libc-tsd.h>
21
22# ifndef CTYPE_EXTERN_INLINE /* Used by ctype/ctype-info.c, which see. */
23# define CTYPE_EXTERN_INLINE extern inline
24# endif
25
4b23f9bd
JJ
26__libc_tsd_define (extern, const uint16_t *, CTYPE_B)
27__libc_tsd_define (extern, const int32_t *, CTYPE_TOUPPER)
28__libc_tsd_define (extern, const int32_t *, CTYPE_TOLOWER)
cf684340 29
fd5bdc09 30
cf684340
RM
31CTYPE_EXTERN_INLINE const uint16_t ** __attribute__ ((const))
32__ctype_b_loc (void)
33{
fd5bdc09 34 return __libc_tsd_address (const uint16_t *, CTYPE_B);
cf684340
RM
35}
36
37CTYPE_EXTERN_INLINE const int32_t ** __attribute__ ((const))
38__ctype_toupper_loc (void)
39{
fd5bdc09 40 return __libc_tsd_address (const int32_t *, CTYPE_TOUPPER);
cf684340
RM
41}
42
43CTYPE_EXTERN_INLINE const int32_t ** __attribute__ ((const))
44__ctype_tolower_loc (void)
45{
fd5bdc09 46 return __libc_tsd_address (const int32_t *, CTYPE_TOLOWER);
cf684340
RM
47}
48
49# endif /* Not NOT_IN_libc. */
31341567 50#endif
cf684340 51
31341567 52#include <ctype/ctype.h>
0f283ffc 53
31341567 54#ifndef _ISOMAC
f83aa16c
UD
55# if !defined __NO_CTYPE && !defined NOT_IN_libc
56/* The spec says that isdigit must only match the decimal digits. We
57 can check this without a memory access. */
58# undef isdigit
59# define isdigit(c) ({ int __c = (c); __c >= '0' && __c <= '9'; })
60# undef isdigit_l
61# define isdigit_l(c, l) ({ int __c = (c); __c >= '0' && __c <= '9'; })
62# undef __isdigit_l
63# define __isdigit_l(c, l) ({ int __c = (c); __c >= '0' && __c <= '9'; })
64# endif
31341567 65#endif
f83aa16c 66
0f283ffc 67#endif /* ctype.h */