From ec4d8815ec6fca29b6992bbe7e27f7e5fa21c248 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Fri, 28 Mar 2003 19:44:29 +0000 Subject: [PATCH] ICU-2729 Use read-only memory for strings and arrays. X-SVN-Rev: 11415 --- icu4c/source/common/punycode.c | 2 +- icu4c/source/common/strprep.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/icu4c/source/common/punycode.c b/icu4c/source/common/punycode.c index 29264177789..6fa72b0bed9 100644 --- a/icu4c/source/common/punycode.c +++ b/icu4c/source/common/punycode.c @@ -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, diff --git a/icu4c/source/common/strprep.cpp b/icu4c/source/common/strprep.cpp index a69d5968f2f..fc106c038a9 100644 --- a/icu4c/source/common/strprep.cpp +++ b/icu4c/source/common/strprep.cpp @@ -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() {