From b9661226d2f5e2f118881bcfac42fed163995d99 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Wed, 1 Dec 1999 01:02:06 +0000 Subject: [PATCH] [ICU-157] use _ instead of - in DLL symbols X-Commit-URL: https://ssl.icu-project.org/trac/changeset/266 --- icu4c/source/common/udata.c | 62 ++++++++++++++++++++++++++++++++++--- 1 file changed, 57 insertions(+), 5 deletions(-) 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