X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=internals%2F_PDCLIB_int.h;fp=internals%2F_PDCLIB_int.h;h=b5003af51557e7fea2adc6e16dd69513940cf9ef;hp=0bad643c589157544f073781d1b33684f07c08e3;hb=3a92b78272cd3f0f413bb1cfc0c77deef49967fd;hpb=be35e77c0d824e5bd545620ca81c812f9e16f0e5 diff --git a/internals/_PDCLIB_int.h b/internals/_PDCLIB_int.h index 0bad643..b5003af 100644 --- a/internals/_PDCLIB_int.h +++ b/internals/_PDCLIB_int.h @@ -426,3 +426,34 @@ int * _PDCLIB_errno_func( void ); /* TODO: Doing this via a static array is not the way to do it. */ char const * _PDCLIB_errno_texts[ _PDCLIB_EMAX ]; + +/* -------------------------------------------------------------------------- */ +/* lookup tables */ +/* -------------------------------------------------------------------------- */ + +#define _PDCLIB_CTYPE_ALPHA 1 +#define _PDCLIB_CTYPE_BLANK 2 +#define _PDCLIB_CTYPE_CNTRL 4 +#define _PDCLIB_CTYPE_GRAPH 8 +#define _PDCLIB_CTYPE_PUNCT 16 +#define _PDCLIB_CTYPE_SPACE 32 +#define _PDCLIB_CTYPE_LOWER 64 +#define _PDCLIB_CTYPE_UPPER 128 +#define _PDCLIB_CTYPE_DIGIT 256 +#define _PDCLIB_CTYPE_XDIGT 512 + +struct _PDCLIB_ctype_t +{ + _PDCLIB_uint16_t flags; + unsigned char upper; + unsigned char lower; + unsigned char collation; +}; + +struct _PDCLIB_locale_t +{ + struct _PDCLIB_ctype_t * ctype; +}; + +struct _PDCLIB_locale_t _PDCLIB_locale_info; +