]> mj.ucw.cz Git - libucw.git/commitdiff
Added const to chartype tables. Also removed _c_collate and _c_order
authorMartin Mares <mj@ucw.cz>
Sat, 11 Oct 2003 10:13:20 +0000 (10:13 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 11 Oct 2003 10:13:20 +0000 (10:13 +0000)
which didn't exist since the last glacial era.

lib/chartype.h
lib/str_ctype.c
lib/str_upper.c

index 6ef0ccd0a67c6f94c903bc1a1e9fa3525ef9ee3b..ef08205e9777db000edcc39c6ccd90a81296dd0e 100644 (file)
@@ -24,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)
index f92fd3dfbae9d763f948ee67a9c356da3d63d035..73c00c0ef070fe49d8c5afde0884e77b3d7f368d 100644 (file)
@@ -9,7 +9,7 @@
 
 #include "lib/chartype.h"
 
-unsigned char _c_cat[256] = {
+const unsigned char _c_cat[256] = {
 #define CHAR(code,upper,unacc,acc,cat) cat,
 #include "lib/charmap.h"
 #undef CHAR
index e058850cd937ce34dcc353b575ee850434bee372..4253b88172b5dde3eb510cd680b3039a5c23b93f 100644 (file)
@@ -9,7 +9,7 @@
 
 #include "lib/chartype.h"
 
-unsigned char _c_upper[256] = {
+const unsigned char _c_upper[256] = {
 #define CHAR(code,upper,unacc,acc,cat) upper,
 #include "lib/charmap.h"
 #undef CHAR