libport: Move wine_compare_string implementation back to libwine and make it obsolete.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
afd681ebd9
commit
5a1e897df7
|
@ -93,9 +93,6 @@ extern int wine_cpsymbol_wcstombs( const WCHAR *src, int srclen, char *dst, int
|
||||||
extern int wine_utf8_mbstowcs( int flags, const char *src, int srclen, WCHAR *dst, int dstlen );
|
extern int wine_utf8_mbstowcs( int flags, const char *src, int srclen, WCHAR *dst, int dstlen );
|
||||||
extern int wine_utf8_wcstombs( int flags, const WCHAR *src, int srclen, char *dst, int dstlen );
|
extern int wine_utf8_wcstombs( int flags, const WCHAR *src, int srclen, char *dst, int dstlen );
|
||||||
|
|
||||||
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 strcmpiW( const WCHAR *str1, const WCHAR *str2 );
|
extern int strcmpiW( const WCHAR *str1, const WCHAR *str2 );
|
||||||
extern int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n );
|
extern int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n );
|
||||||
extern int memicmpW( const WCHAR *str1, const WCHAR *str2, int n );
|
extern int memicmpW( const WCHAR *str1, const WCHAR *str2, int n );
|
||||||
|
|
|
@ -96,7 +96,6 @@ C_SRCS = \
|
||||||
pwrite.c \
|
pwrite.c \
|
||||||
readlink.c \
|
readlink.c \
|
||||||
rint.c \
|
rint.c \
|
||||||
sortkey.c \
|
|
||||||
spawn.c \
|
spawn.c \
|
||||||
statvfs.c \
|
statvfs.c \
|
||||||
string.c \
|
string.c \
|
||||||
|
|
|
@ -8,7 +8,8 @@ C_SRCS = \
|
||||||
ldt.c \
|
ldt.c \
|
||||||
loader.c \
|
loader.c \
|
||||||
mmap.c \
|
mmap.c \
|
||||||
port.c
|
port.c \
|
||||||
|
sortkey.c
|
||||||
|
|
||||||
EXTRA_OBJS = version.o
|
EXTRA_OBJS = version.o
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,6 @@ const void *libwine_port_functions[] =
|
||||||
{
|
{
|
||||||
strtolW,
|
strtolW,
|
||||||
vsnprintfW,
|
vsnprintfW,
|
||||||
wine_compare_string,
|
|
||||||
wine_cp_enum_table,
|
wine_cp_enum_table,
|
||||||
wine_cp_get_table,
|
wine_cp_get_table,
|
||||||
wine_cp_mbstowcs,
|
wine_cp_mbstowcs,
|
||||||
|
|
|
@ -17,6 +17,11 @@
|
||||||
* License along with this library; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "wine/asm.h"
|
||||||
|
|
||||||
|
#ifdef __ASM_OBSOLETE
|
||||||
|
|
||||||
#include "wine/unicode.h"
|
#include "wine/unicode.h"
|
||||||
|
|
||||||
extern const unsigned int collation_table[];
|
extern const unsigned int collation_table[];
|
||||||
|
@ -38,7 +43,7 @@ static const WCHAR *get_decomposition( WCHAR ch, unsigned int *len )
|
||||||
*
|
*
|
||||||
* FIXME: 'variable' flag not handled
|
* FIXME: 'variable' flag not handled
|
||||||
*/
|
*/
|
||||||
int wine_get_sortkey(int flags, const WCHAR *src, int srclen, char *dst, int dstlen)
|
int wine_get_sortkey_obsolete(int flags, const WCHAR *src, int srclen, char *dst, int dstlen)
|
||||||
{
|
{
|
||||||
WCHAR dummy[4]; /* no decomposition is larger than 4 chars */
|
WCHAR dummy[4]; /* no decomposition is larger than 4 chars */
|
||||||
int key_len[4];
|
int key_len[4];
|
||||||
|
@ -289,7 +294,7 @@ static inline int compare_weights(int flags, const WCHAR *str1, int len1,
|
||||||
return len1 - len2;
|
return len1 - len2;
|
||||||
}
|
}
|
||||||
|
|
||||||
int wine_compare_string(int flags, const WCHAR *str1, int len1,
|
int wine_compare_string_obsolete(int flags, const WCHAR *str1, int len1,
|
||||||
const WCHAR *str2, int len2)
|
const WCHAR *str2, int len2)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -304,3 +309,8 @@ int wine_compare_string(int flags, const WCHAR *str1, int len1,
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__ASM_OBSOLETE(wine_get_sortkey);
|
||||||
|
__ASM_OBSOLETE(wine_compare_string);
|
||||||
|
|
||||||
|
#endif /* __ASM_OBSOLETE */
|
|
@ -9,7 +9,6 @@ WINE_1.0
|
||||||
wine_anon_mmap;
|
wine_anon_mmap;
|
||||||
wine_casemap_lower;
|
wine_casemap_lower;
|
||||||
wine_casemap_upper;
|
wine_casemap_upper;
|
||||||
wine_compare_string;
|
|
||||||
wine_cp_enum_table;
|
wine_cp_enum_table;
|
||||||
wine_cp_get_table;
|
wine_cp_get_table;
|
||||||
wine_cp_mbstowcs;
|
wine_cp_mbstowcs;
|
||||||
|
@ -32,7 +31,6 @@ WINE_1.0
|
||||||
wine_get_fs;
|
wine_get_fs;
|
||||||
wine_get_gs;
|
wine_get_gs;
|
||||||
wine_get_server_dir;
|
wine_get_server_dir;
|
||||||
wine_get_sortkey;
|
|
||||||
wine_get_ss;
|
wine_get_ss;
|
||||||
wine_get_user_name;
|
wine_get_user_name;
|
||||||
wine_get_version;
|
wine_get_version;
|
||||||
|
@ -107,6 +105,7 @@ WINE_1.0
|
||||||
vsnprintfW;
|
vsnprintfW;
|
||||||
vsprintfW;
|
vsprintfW;
|
||||||
wine_call_on_stack;
|
wine_call_on_stack;
|
||||||
|
wine_compare_string;
|
||||||
wine_dbg_log;
|
wine_dbg_log;
|
||||||
wine_dbg_printf;
|
wine_dbg_printf;
|
||||||
wine_dbg_sprintf;
|
wine_dbg_sprintf;
|
||||||
|
@ -117,6 +116,7 @@ WINE_1.0
|
||||||
wine_dll_load_main_exe;
|
wine_dll_load_main_exe;
|
||||||
wine_dll_unload;
|
wine_dll_unload;
|
||||||
wine_fold_string;
|
wine_fold_string;
|
||||||
|
wine_get_sortkey;
|
||||||
wine_pthread_get_functions;
|
wine_pthread_get_functions;
|
||||||
wine_pthread_set_functions;
|
wine_pthread_set_functions;
|
||||||
wine_switch_to_stack;
|
wine_switch_to_stack;
|
||||||
|
|
Loading…
Reference in New Issue