mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-2729 Make some memory const.
X-SVN-Rev: 12224
This commit is contained in:
parent
b718add118
commit
4e17bfad19
4 changed files with 7 additions and 10 deletions
|
@ -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)
|
||||
|
|
|
@ -25,9 +25,6 @@
|
|||
|
||||
#include "locbund.h"
|
||||
|
||||
/* The global LocaleCacheInfo cache */
|
||||
extern struct UHashtable *gLocaleCache;
|
||||
|
||||
ULocaleBundle*
|
||||
u_loccache_get(const char *loc);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue