|
@@ -31,40 +31,32 @@
|
|
|
|
|
|
__BEGIN_DECLS
|
|
__BEGIN_DECLS
|
|
|
|
|
|
-#ifndef _ISbit
|
|
|
|
/* These are all the characteristics of characters.
|
|
/* These are all the characteristics of characters.
|
|
If there get to be more than 16 distinct characteristics,
|
|
If there get to be more than 16 distinct characteristics,
|
|
__ctype_mask_t will need to be adjusted. */
|
|
__ctype_mask_t will need to be adjusted. */
|
|
|
|
|
|
-# define _ISbit(bit) (1 << (bit))
|
|
|
|
-
|
|
|
|
enum
|
|
enum
|
|
{
|
|
{
|
|
- _ISupper = _ISbit (0), /* UPPERCASE. */
|
|
+ _ISupper = 1 << 0, /* UPPERCASE. */
|
|
- _ISlower = _ISbit (1), /* lowercase. */
|
|
+ _ISlower = 1 << 1, /* lowercase. */
|
|
- _ISalpha = _ISbit (2), /* Alphabetic. */
|
|
+ _ISalpha = 1 << 2, /* Alphabetic. */
|
|
- _ISdigit = _ISbit (3), /* Numeric. */
|
|
+ _ISdigit = 1 << 3, /* Numeric. */
|
|
- _ISxdigit = _ISbit (4), /* Hexadecimal numeric. */
|
|
+ _ISxdigit = 1 << 4, /* Hexadecimal numeric. */
|
|
- _ISspace = _ISbit (5), /* Whitespace. */
|
|
+ _ISspace = 1 << 5, /* Whitespace. */
|
|
- _ISprint = _ISbit (6), /* Printing. */
|
|
+ _ISprint = 1 << 6, /* Printing. */
|
|
- _ISgraph = _ISbit (7), /* Graphical. */
|
|
+ _ISgraph = 1 << 7, /* Graphical. */
|
|
- _ISblank = _ISbit (8), /* Blank (usually SPC and TAB). */
|
|
+ _ISblank = 1 << 8, /* Blank (usually SPC and TAB). */
|
|
- _IScntrl = _ISbit (9), /* Control character. */
|
|
+ _IScntrl = 1 << 9, /* Control character. */
|
|
- _ISpunct = _ISbit (10), /* Punctuation. */
|
|
+ _ISpunct = 1 << 10, /* Punctuation. */
|
|
- _ISalnum = _ISbit (11) /* Alphanumeric. */
|
|
+ _ISalnum = 1 << 11, /* Alphanumeric. */
|
|
};
|
|
};
|
|
-#else
|
|
|
|
-#error _ISbit already defined!
|
|
|
|
-#endif /* ! _ISbit */
|
|
|
|
|
|
|
|
#include <bits/uClibc_touplow.h>
|
|
#include <bits/uClibc_touplow.h>
|
|
|
|
|
|
#ifdef __UCLIBC_HAS_CTYPE_SIGNED__
|
|
#ifdef __UCLIBC_HAS_CTYPE_SIGNED__
|
|
# define __UCLIBC_CTYPE_IN_TO_DOMAIN(c) (((unsigned int)((c) + 128)) < 384)
|
|
# define __UCLIBC_CTYPE_IN_TO_DOMAIN(c) (((unsigned int)((c) + 128)) < 384)
|
|
-
|
|
|
|
#else /* __UCLIBC_HAS_CTYPE_SIGNED__ */
|
|
#else /* __UCLIBC_HAS_CTYPE_SIGNED__ */
|
|
# define __UCLIBC_CTYPE_IN_TO_DOMAIN(c) (((unsigned int)(c)) < 256)
|
|
# define __UCLIBC_CTYPE_IN_TO_DOMAIN(c) (((unsigned int)(c)) < 256)
|
|
-
|
|
|
|
#endif /* __UCLIBC_HAS_CTYPE_SIGNED__ */
|
|
#endif /* __UCLIBC_HAS_CTYPE_SIGNED__ */
|
|
|
|
|
|
/* In the thread-specific locale model (see `uselocale' in <locale.h>)
|
|
/* In the thread-specific locale model (see `uselocale' in <locale.h>)
|