ICU-2729 Make some memory const.

X-SVN-Rev: 12224
This commit is contained in:
George Rhoten 2003-06-02 18:59:45 +00:00
parent b718add118
commit 4e17bfad19
4 changed files with 7 additions and 10 deletions

View file

@ -28,7 +28,7 @@
#include "ucln.h"
/* The global cache */
UHashtable *gLocaleCache = NULL;
static UHashtable *gLocaleCache = NULL;
static void U_CALLCONV
hash_freeBundle(void* obj)

View file

@ -25,9 +25,6 @@
#include "locbund.h"
/* The global LocaleCacheInfo cache */
extern struct UHashtable *gLocaleCache;
ULocaleBundle*
u_loccache_get(const char *loc);

View file

@ -238,8 +238,8 @@ static const u_sprintf_info g_u_sprintf_infos[108] = {
#define USPRINTF_BUFFER_SIZE 1024
#define USPRINTF_SYMBOL_BUFFER_SIZE 8
static UChar gNullStr[] = {0x28, 0x6E, 0x75, 0x6C, 0x6C, 0x29, 0}; /* "(null)" */
static UChar gSpaceStr[] = {0x20, 0}; /* " " */
static const UChar gNullStr[] = {0x28, 0x6E, 0x75, 0x6C, 0x6C, 0x29, 0}; /* "(null)" */
static const UChar gSpaceStr[] = {0x20, 0}; /* " " */
U_CAPI int32_t U_EXPORT2
u_sprintf(UChar *buffer,
@ -502,7 +502,7 @@ u_sprintf_string_handler(u_localized_string *output,
}
}
else {
s = gNullStr;
s = (UChar *)gNullStr;
}
len = u_strlen(s);

View file

@ -236,8 +236,8 @@ static const u_printf_info g_u_printf_infos[108] = {
#define UFPRINTF_BUFFER_SIZE 1024
#define UFPRINTF_SYMBOL_BUFFER_SIZE 8
static UChar gNullStr[] = {0x28, 0x6E, 0x75, 0x6C, 0x6C, 0x29, 0}; /* "(null)" */
static UChar gSpaceStr[] = {0x20, 0}; /* " " */
static const UChar gNullStr[] = {0x28, 0x6E, 0x75, 0x6C, 0x6C, 0x29, 0}; /* "(null)" */
static const UChar gSpaceStr[] = {0x20, 0}; /* " " */
int32_t
u_fprintf( UFILE *f,
@ -409,7 +409,7 @@ u_printf_string_handler(UFILE *stream,
}
}
else {
s = gNullStr;
s = (UChar *)gNullStr;
}
len = u_strlen(s);