Blame include/ctype.h

Packit 6c4009
#ifndef _CTYPE_H
Packit 6c4009
Packit 6c4009
#include <ctype/ctype.h>
Packit 6c4009
Packit 6c4009
#ifndef _ISOMAC
Packit 6c4009
/* Initialize ctype locale data.  */
Packit 6c4009
extern void __ctype_init (void);
Packit 6c4009
libc_hidden_proto (__ctype_init)
Packit 6c4009
Packit 6c4009
/* ctype/ctype.h defined this as a macro and we don't want to #undef it.
Packit 6c4009
   So defeat macro expansion with parens for this declaration.  */
Packit 6c4009
extern int (__isctype) (int __c, int __mask);
Packit 6c4009
Packit 6c4009
libc_hidden_proto (tolower)
Packit 6c4009
libc_hidden_proto (toupper)
Packit 6c4009
Packit 6c4009
# if IS_IN (libc)
Packit 6c4009
Packit 6c4009
/* These accessors are used by the optimized macros to find the
Packit 6c4009
   thread-local cache of ctype information from the current thread's
Packit 6c4009
   locale.  For inside libc, define them as inlines using the _NL_CURRENT
Packit 6c4009
   accessors.  We don't use _NL_CURRENT_LOCALE->__ctype_b here because we
Packit 6c4009
   want to cause a link-time ref to _nl_current_LC_CTYPE under
Packit 6c4009
   NL_CURRENT_INDIRECT.  */
Packit 6c4009
Packit 6c4009
#  include "../locale/localeinfo.h"
Packit 6c4009
#  include <libc-tsd.h>
Packit 6c4009
Packit 6c4009
#  ifndef CTYPE_EXTERN_INLINE	/* Used by ctype/ctype-info.c, which see.  */
Packit 6c4009
#   define CTYPE_EXTERN_INLINE extern inline
Packit 6c4009
#  endif
Packit 6c4009
Packit 6c4009
__libc_tsd_define (extern, const uint16_t *, CTYPE_B)
Packit 6c4009
__libc_tsd_define (extern, const int32_t *, CTYPE_TOUPPER)
Packit 6c4009
__libc_tsd_define (extern, const int32_t *, CTYPE_TOLOWER)
Packit 6c4009
Packit 6c4009
Packit 6c4009
CTYPE_EXTERN_INLINE const uint16_t ** __attribute__ ((const))
Packit 6c4009
__ctype_b_loc (void)
Packit 6c4009
{
Packit 6c4009
  return __libc_tsd_address (const uint16_t *, CTYPE_B);
Packit 6c4009
}
Packit 6c4009
Packit 6c4009
CTYPE_EXTERN_INLINE const int32_t ** __attribute__ ((const))
Packit 6c4009
__ctype_toupper_loc (void)
Packit 6c4009
{
Packit 6c4009
  return __libc_tsd_address (const int32_t *, CTYPE_TOUPPER);
Packit 6c4009
}
Packit 6c4009
Packit 6c4009
CTYPE_EXTERN_INLINE const int32_t ** __attribute__ ((const))
Packit 6c4009
__ctype_tolower_loc (void)
Packit 6c4009
{
Packit 6c4009
  return __libc_tsd_address (const int32_t *, CTYPE_TOLOWER);
Packit 6c4009
}
Packit 6c4009
Packit 6c4009
#  ifndef __NO_CTYPE
Packit 6c4009
/* The spec says that isdigit must only match the decimal digits.  We
Packit 6c4009
   can check this without a memory access.  */
Packit 6c4009
#   undef isdigit
Packit 6c4009
#   define isdigit(c) ({ int __c = (c); __c >= '0' && __c <= '9'; })
Packit 6c4009
#   undef isdigit_l
Packit 6c4009
#   define isdigit_l(c, l) ({ int __c = (c); __c >= '0' && __c <= '9'; })
Packit 6c4009
#   undef __isdigit_l
Packit 6c4009
#   define __isdigit_l(c, l) ({ int __c = (c); __c >= '0' && __c <= '9'; })
Packit 6c4009
#  endif  /* Not __NO_CTYPE.  */
Packit 6c4009
Packit 6c4009
# endif	/* IS_IN (libc).  */
Packit 6c4009
#endif  /* Not _ISOMAC.  */
Packit 6c4009
Packit 6c4009
#endif /* ctype.h */