ICU-2729 Use read-only memory for strings and arrays.

X-SVN-Rev: 11415
This commit is contained in:
George Rhoten 2003-03-28 19:44:29 +00:00
parent d1970263ab
commit ec4d8815ec
2 changed files with 3 additions and 3 deletions

View file

@ -91,7 +91,7 @@ digitToBasic(int32_t digit, UBool uppercase) {
* point (for use in representing integers) in the range 0 to
* BASE-1, or -1 if b is does not represent a value.
*/
static int8_t
static const int8_t
basicToDigit[256]={
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,

View file

@ -32,8 +32,8 @@ static UTrie idnTrie={ 0,0,0,0,0,0,0 };
static UDataMemory* idnData=NULL;
static UErrorCode dataErrorCode =U_ZERO_ERROR;
/* file definitions */
static const char* DATA_NAME = "uidna";
static const char* DATA_TYPE = "icu";
static const char DATA_NAME[] = "uidna";
static const char DATA_TYPE[] = "icu";
U_CFUNC UBool
ustrprep_cleanup() {