Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
[dragonfly.git] / gnu / lib / gcc34 / libstdc++ / ctype_base.h.patch
1 $DragonFly: src/gnu/lib/gcc34/libstdc++/ctype_base.h.patch,v 1.3 2005/09/17 14:39:44 joerg Exp $
2
3 --- ctype_base.h.orig   2005-03-02 01:56:21.000000000 +0100
4 +++ ctype_base.h        2005-09-16 20:02:33.000000000 +0200
5 @@ -43,16 +43,16 @@
6  
7      // NB: Offsets into ctype<char>::_M_table force a particular size
8      // on the mask type. Because of this, we don't use an enum.
9 -    typedef unsigned char              mask;
10 -    static const mask upper            = _U;
11 -    static const mask lower    = _L;
12 -    static const mask alpha    = _U | _L;
13 -    static const mask digit    = _N;
14 -    static const mask xdigit   = _N | _X;
15 -    static const mask space    = _S;
16 -    static const mask print    = _P | _U | _L | _N | _B;
17 -    static const mask graph    = _P | _U | _L | _N;
18 -    static const mask cntrl    = _C;
19 -    static const mask punct    = _P;
20 -    static const mask alnum    = _U | _L | _N;
21 +    typedef uint16_t           mask;
22 +    static const mask upper            = _CTYPEMASK_U;
23 +    static const mask lower    = _CTYPEMASK_L;
24 +    static const mask alpha    = _CTYPEMASK_A;
25 +    static const mask digit    = _CTYPEMASK_D;
26 +    static const mask xdigit   = _CTYPEMASK_X;
27 +    static const mask space    = _CTYPEMASK_S;
28 +    static const mask print    = _CTYPEMASK_R;
29 +    static const mask graph    = _CTYPEMASK_G;
30 +    static const mask cntrl    = _CTYPEMASK_C;
31 +    static const mask punct    = _CTYPEMASK_P;
32 +    static const mask alnum    = _CTYPEMASK_A | _CTYPEMASK_D;
33    };