diff --git a/icu4c/source/common/udata.c b/icu4c/source/common/udata.c index 0f5ae983300..09829605f8a 100644 --- a/icu4c/source/common/udata.c +++ b/icu4c/source/common/udata.c @@ -107,7 +107,7 @@ getChoice(Library lib, const char *entry, #define LIB_SUFFIX ".dll" -#define GET_ENTRY(lib, entryName) (MappedData *)GetProcAddress(lib, entry) +#define GET_ENTRY(lib, entryName) (MappedData *)GetProcAddress(lib, entryName) #define NO_LIBRARY NULL #define IS_LIBRARY(lib) ((lib)!=NULL) @@ -131,7 +131,7 @@ getChoice(Library lib, const char *entry, #define LIB_SUFFIX ".dat" -#define GET_ENTRY(lib, entryName) getCommonMapData(lib, entry) +#define GET_ENTRY(lib, entryName) getCommonMapData(lib, entryName) #define NO_LIBRARY NULL #define IS_LIBRARY(lib) ((lib)!=NULL) @@ -251,11 +251,11 @@ getChoice(Library lib, const char *entry, UDataMemoryIsAcceptable *isAcceptable, void *context, UErrorCode *pErrorCode); -#define GET_ENTRY(lib, entryName) (MappedData *)dlsym(lib, entry) +#define GET_ENTRY(lib, entryName) (MappedData *)dlsym(lib, entryName) #define NO_LIBRARY NULL #define IS_LIBRARY(lib) ((lib)!=NULL) -#define LOAD_LIBRARY(path, basename, isCommon) dlopen(path, RTLD_LAZY|RTLD_GLOBAL); +#define LOAD_LIBRARY(path, basename, isCommon) dlopen(path, RTLD_LAZY|RTLD_GLOBAL) #define UNLOAD_LIBRARY(lib) dlclose(lib) # else /* POSIX memory map implementation --------------------------------- */ @@ -280,7 +280,7 @@ getChoice(Library lib, const char *entry, #define LIB_SUFFIX ".dat" -#define GET_ENTRY(lib, entryName) getCommonMapData(lib, entry) +#define GET_ENTRY(lib, entryName) getCommonMapData(lib, entryName) #define NO_LIBRARY NULL #define IS_LIBRARY(lib) ((lib)!=NULL) @@ -565,6 +565,42 @@ udata_getInfo(UDataMemory *pData, UDataInfo *pInfo) { static Library commonLib=NO_LIBRARY; +static const char *strcpy_dllentry(char *target, const char *src) +{ + int i, length; + + icu_strcpy(target,src); + length = icu_strlen(target); + for(i=0;i