Module: wine Branch: master Commit: afd681ebd920f54300601ab842399723b9af3e2f URL: https://source.winehq.org/git/wine.git/?a=commit;h=afd681ebd920f54300601ab84...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Feb 5 09:00:04 2020 +0100
libport: Move wine_fold_string implementation back to libwine and make it obsolete.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
include/wine/unicode.h | 1 - libs/port/Makefile.in | 1 - libs/wine/Makefile.in | 1 + libs/{port => wine}/fold.c | 10 +++++++++- libs/wine/port.c | 1 - libs/wine/wine.map | 2 +- 6 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/include/wine/unicode.h b/include/wine/unicode.h index 5210b72498..d2b852fafb 100644 --- a/include/wine/unicode.h +++ b/include/wine/unicode.h @@ -95,7 +95,6 @@ extern int wine_utf8_wcstombs( int flags, const WCHAR *src, int srclen, char *ds
extern int wine_compare_string( int flags, const WCHAR *str1, int len1, const WCHAR *str2, int len2 ); extern int wine_get_sortkey( int flags, const WCHAR *src, int srclen, char *dst, int dstlen ); -extern int wine_fold_string( int flags, const WCHAR *src, int srclen , WCHAR *dst, int dstlen );
extern int strcmpiW( const WCHAR *str1, const WCHAR *str2 ); extern int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n ); diff --git a/libs/port/Makefile.in b/libs/port/Makefile.in index 3b70f82d6f..4e3f23cde9 100644 --- a/libs/port/Makefile.in +++ b/libs/port/Makefile.in @@ -82,7 +82,6 @@ C_SRCS = \ decompose.c \ digitmap.c \ ffs.c \ - fold.c \ fstatvfs.c \ getopt.c \ interlocked.c \ diff --git a/libs/wine/Makefile.in b/libs/wine/Makefile.in index f7dd34b058..d0b2d1e7b6 100644 --- a/libs/wine/Makefile.in +++ b/libs/wine/Makefile.in @@ -4,6 +4,7 @@ EXTRALIBS = $(DL_LIBS) $(COREFOUNDATION_LIBS) $(CORESERVICES_LIBS) $(I386_LIBS) C_SRCS = \ config.c \ debug.c \ + fold.c \ ldt.c \ loader.c \ mmap.c \ diff --git a/libs/port/fold.c b/libs/wine/fold.c similarity index 96% rename from libs/port/fold.c rename to libs/wine/fold.c index 00046f15a3..ef4e88c81c 100644 --- a/libs/port/fold.c +++ b/libs/wine/fold.c @@ -18,6 +18,10 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */
+#include "wine/asm.h" + +#ifdef __ASM_OBSOLETE + #include "wine/unicode.h"
static inline WCHAR to_unicode_digit( WCHAR ch ) @@ -116,7 +120,7 @@ static inline const WCHAR* get_ligature( WCHAR wc ) }
/* fold a unicode string */ -int wine_fold_string( int flags, const WCHAR *src, int srclen, WCHAR *dst, int dstlen ) +int wine_fold_string_obsolete( int flags, const WCHAR *src, int srclen, WCHAR *dst, int dstlen ) { WCHAR *dstbase = dst; const WCHAR *expand; @@ -197,3 +201,7 @@ int wine_fold_string( int flags, const WCHAR *src, int srclen, WCHAR *dst, int d } return dst - dstbase; } + +__ASM_OBSOLETE(wine_fold_string); + +#endif /* __ASM_OBSOLETE */ diff --git a/libs/wine/port.c b/libs/wine/port.c index e5cfcf41ab..43355719c2 100644 --- a/libs/wine/port.c +++ b/libs/wine/port.c @@ -45,7 +45,6 @@ const void *libwine_port_functions[] = wine_cp_wcstombs, wine_cpsymbol_mbstowcs, wine_cpsymbol_wcstombs, - wine_fold_string, wine_utf8_mbstowcs, wine_utf8_wcstombs }; diff --git a/libs/wine/wine.map b/libs/wine/wine.map index 17c91fd162..08de127cff 100644 --- a/libs/wine/wine.map +++ b/libs/wine/wine.map @@ -22,7 +22,6 @@ WINE_1.0 wine_dlopen; wine_dlsym; wine_exec_wine_binary; - wine_fold_string; wine_get_build_dir; wine_get_build_id; wine_get_config_dir; @@ -117,6 +116,7 @@ WINE_1.0 wine_dll_load; wine_dll_load_main_exe; wine_dll_unload; + wine_fold_string; wine_pthread_get_functions; wine_pthread_set_functions; wine_switch_to_stack;