From d0886fcac688858f8b0491c331276500e370feb0 Mon Sep 17 00:00:00 2001 From: Michael Gilbert Date: Tue, 13 Sep 2022 01:46:21 +0100 Subject: [PATCH] disable obsolete wine_fold_string api Gbp-Pq: Topic disable Gbp-Pq: Name fold.patch --- libs/wine/Makefile.in | 1 - libs/wine/fold.c | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/wine/Makefile.in b/libs/wine/Makefile.in index 9036c95..6f6bd4e 100644 --- a/libs/wine/Makefile.in +++ b/libs/wine/Makefile.in @@ -74,7 +74,6 @@ C_SRCS = \ cptable.c \ debug.c \ decompose.c \ - digitmap.c \ fold.c \ ldt.c \ loader.c \ diff --git a/libs/wine/fold.c b/libs/wine/fold.c index 8fdd69e..c26afe8 100644 --- a/libs/wine/fold.c +++ b/libs/wine/fold.c @@ -24,6 +24,7 @@ #include "unicode.h" +#if 0 static inline WCHAR to_unicode_digit( WCHAR ch ) { extern const WCHAR wine_digitmap[] DECLSPEC_HIDDEN; @@ -36,6 +37,7 @@ static inline WCHAR to_unicode_native( WCHAR ch ) extern const WCHAR wine_compatmap[] DECLSPEC_HIDDEN; return ch + wine_compatmap[wine_compatmap[ch >> 8] + (ch & 0xff)]; } +#endif static const WCHAR wine_ligatures[] = { @@ -119,6 +121,7 @@ static inline const WCHAR* get_ligature( WCHAR wc ) return empty_ligature; } +#if 0 /* fold a unicode string */ int wine_fold_string_obsolete( int flags, const WCHAR *src, int srclen, WCHAR *dst, int dstlen ) { @@ -203,5 +206,6 @@ int wine_fold_string_obsolete( int flags, const WCHAR *src, int srclen, WCHAR *d } __ASM_OBSOLETE(wine_fold_string); +#endif #endif /* __ASM_OBSOLETE */ -- 2.30.2