X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fchartype.h;h=ef08205e9777db000edcc39c6ccd90a81296dd0e;hb=88200dc6daeeab5e7f402cefbd90ae1f126f8d7a;hp=4111eb11eb0a0b15e3d33b0ac9b9f58c8bcf7c6d;hpb=1571781022499a9d0c32d249f89945d034d1cbff;p=libucw.git diff --git a/lib/chartype.h b/lib/chartype.h index 4111eb11..ef08205e 100644 --- a/lib/chartype.h +++ b/lib/chartype.h @@ -2,6 +2,9 @@ * Sherlock Library -- Character Types * * (c) 1997 Martin Mares + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ #ifndef _SHERLOCK_CHARTYPE_H @@ -13,7 +16,7 @@ #define _C_DIGIT 8 /* Digits */ #define _C_CTRL 16 /* Control characters */ #define _C_XDIGIT 32 /* Hexadecimal digits */ -#define _C_BLANK 64 /* Blanks */ +#define _C_BLANK 64 /* White spaces (spaces, tabs, newlines) */ #define _C_INNER 128 /* `inner punctuation' -- underscore etc. */ #define _C_ALPHA (_C_UPPER | _C_LOWER) @@ -21,7 +24,7 @@ #define _C_WORD (_C_ALNUM | _C_INNER) #define _C_WSTART (_C_ALPHA | _C_INNER) -extern unsigned char _c_cat[256], _c_upper[256], _c_collate[256], _c_order[256]; +extern const unsigned char _c_cat[256], _c_upper[256]; #define Category(x) (_c_cat[(unsigned char)(x)]) #define Ccat(x,y) (Category(x) & y)