diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-08-02 00:09:25 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-08-02 00:09:25 +0000 |
commit | 8fb81470d9466b7e3d60cbfd6fc2d04fd1aae78a (patch) | |
tree | f8046bf51bce4125faaa2bfe115d8e0d026e57b8 /locale/localeinfo.h | |
parent | 925e31d9c22c5cdf1d80d9a5683523efc729cfd1 (diff) | |
download | glibc-8fb81470d9466b7e3d60cbfd6fc2d04fd1aae78a.zip glibc-8fb81470d9466b7e3d60cbfd6fc2d04fd1aae78a.tar.gz glibc-8fb81470d9466b7e3d60cbfd6fc2d04fd1aae78a.tar.bz2 |
Update.
* gnulib/Makefile (tests): Add tst-gcc.
* gnulib/tst-gcc.c: New file.
* assert/Makefile (routines): Add __assert.
* assert/Versions: Export __assert for glibc 2.2.
* assert/__assert.c: New file.
* assert/assert.h: Declare __assert.
2000-07-27 Bruno Haible <haible@clisp.cons.org>
* locale/localeinfo.h (_ISCTYPE): New macro.
* posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
LC_CTYPE locale format.
* locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
(ctype_output): Output class_b[nr] right before class_3level[nr].
(allocate_arrays): Fill class_b, similarly to class_3level.
2000-08-01 Ulrich Drepper <drepper@redhat.com>
Diffstat (limited to 'locale/localeinfo.h')
-rw-r--r-- | locale/localeinfo.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/locale/localeinfo.h b/locale/localeinfo.h index 412ac27..f986282 100644 --- a/locale/localeinfo.h +++ b/locale/localeinfo.h @@ -130,6 +130,14 @@ enum }; +/* LC_CTYPE specific: + Access a wide character class with a single character index. + _ISCTYPE (c, desc) = iswctype (btowc (c), desc). + c must be an `unsigned char'. desc must be a nonzero wctype_t. */ +#define _ISCTYPE(c, desc) \ + (((((const uint32_t *) (desc)) - 8)[(c) >> 5] >> ((c) & 0x1f)) & 1) + + /* For each category declare the variable for the current locale data. */ #define DEFINE_CATEGORY(category, category_name, items, a) \ extern struct locale_data *_nl_current_##category; |