Changeset 1007 for trunk/src


Ignore:
Timestamp:
Jan 18, 2004, 11:02:10 AM (22 years ago)
Author:
bird
Message:

Changed the CTYPE masks to be equal to the OS/2 uni lib stuff so we don't have to convert them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/sys/locale.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r1006 r1007  
    2121#define __LC_COUNT 6
    2222
    23 /* Bit masks for __locale_global.ctype */
    24 #define __UPPER  0x0001
    25 #define __LOWER  0x0002
    26 #define __DIGIT  0x0004
    27 #define __XDIGIT 0x0008
    28 #define __CNTRL  0x0010
    29 #define __SPACE  0x0020
    30 #define __PUNCT  0x0040
    31 #define __PRINT  0x0080
    32 #define __BLANK  0x0100
     23/* Bit masks for __locale_global.ctype -
     24   !NOTE! - these have identical values to the CT_* to speed up setlocale(). */
     25#define __UPPER     0x0001      /* Upper case alphabetic character. */
     26#define __LOWER     0x0002      /* Lower case alphabetic character. */
     27#define __DIGIT     0x0004      /* Digits 0-9. */
     28#define __SPACE     0x0008      /* White space and line ends. */
     29#define __PUNCT     0x0010      /* Punctuation marks. */
     30#define __CNTRL     0x0020      /* Control and format characters. */
     31#define __BLANK     0x0040      /* Space and tab. */
     32#define __XDIGIT    0x0080      /* Hex digits. */
     33#define __ALPHA     0x0100      /* Letters and linguistic marks. */
     34#define __ALNUM     0x0200      /* Alphanumeric. */
     35#define __GRAPH     0x0400      /* All except controls and space. */
     36#define __PRINT     0x0800      /* Everything except controls. */
     37#define __NUMBER    0x1000      /* Integral number. */
     38#define __SYMBOL    0x2000      /* Symbol. */
     39#define __ASCII     0x8000      /* In standard ASCII set. */
    3340
    3441#ifdef __INTERNAL_DEFS
     
    131138
    132139/* A static constant string denoting the "C" locale. */
    133 extern const char *__locale_C;
     140extern const char __locale_C[2];
    134141
    135142/* Global locale information. */
Note: See TracChangeset for help on using the changeset viewer.