diff --git a/include/wine/unicode.h b/include/wine/unicode.h index b956fcff444..216e36b38db 100644 --- a/include/wine/unicode.h +++ b/include/wine/unicode.h @@ -88,8 +88,6 @@ extern int wine_cp_mbstowcs( const union cptable *table, int flags, extern int wine_cp_wcstombs( const union cptable *table, int flags, const WCHAR *src, int srclen, char *dst, int dstlen, const char *defchar, int *used ); -extern int wine_cpsymbol_mbstowcs( const char *src, int srclen, WCHAR *dst, int dstlen ); -extern int wine_cpsymbol_wcstombs( const WCHAR *src, int srclen, char *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 ); diff --git a/libs/port/Makefile.in b/libs/port/Makefile.in index c70bd980998..e4cd7c4f992 100644 --- a/libs/port/Makefile.in +++ b/libs/port/Makefile.in @@ -77,7 +77,6 @@ C_SRCS = \ casemap.c \ collation.c \ compose.c \ - cpsymbol.c \ cptable.c \ decompose.c \ digitmap.c \ diff --git a/libs/wine/Makefile.in b/libs/wine/Makefile.in index eb4ba330b48..0b862455ac9 100644 --- a/libs/wine/Makefile.in +++ b/libs/wine/Makefile.in @@ -3,6 +3,7 @@ EXTRALIBS = $(DL_LIBS) $(COREFOUNDATION_LIBS) $(CORESERVICES_LIBS) $(I386_LIBS) C_SRCS = \ config.c \ + cpsymbol.c \ debug.c \ fold.c \ ldt.c \ diff --git a/libs/port/cpsymbol.c b/libs/wine/cpsymbol.c similarity index 82% rename from libs/port/cpsymbol.c rename to libs/wine/cpsymbol.c index e35a35992f3..1883d554218 100644 --- a/libs/port/cpsymbol.c +++ b/libs/wine/cpsymbol.c @@ -19,10 +19,14 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "wine/asm.h" + +#ifdef __ASM_OBSOLETE + #include "wine/unicode.h" /* return -1 on dst buffer overflow */ -int wine_cpsymbol_mbstowcs( const char *src, int srclen, WCHAR *dst, int dstlen) +int wine_cpsymbol_mbstowcs_obsolete( const char *src, int srclen, WCHAR *dst, int dstlen) { int len, i; @@ -38,7 +42,7 @@ int wine_cpsymbol_mbstowcs( const char *src, int srclen, WCHAR *dst, int dstlen) } /* return -1 on dst buffer overflow, -2 on invalid character */ -int wine_cpsymbol_wcstombs( const WCHAR *src, int srclen, char *dst, int dstlen) +int wine_cpsymbol_wcstombs_obsolete( const WCHAR *src, int srclen, char *dst, int dstlen) { int len, i; @@ -56,3 +60,8 @@ int wine_cpsymbol_wcstombs( const WCHAR *src, int srclen, char *dst, int dstlen) if (srclen > len) return -1; return len; } + +__ASM_OBSOLETE(wine_cpsymbol_mbstowcs); +__ASM_OBSOLETE(wine_cpsymbol_wcstombs); + +#endif /* __ASM_OBSOLETE */ diff --git a/libs/wine/port.c b/libs/wine/port.c index bccbf93c19d..7c91bfc2d08 100644 --- a/libs/wine/port.c +++ b/libs/wine/port.c @@ -42,8 +42,6 @@ const void *libwine_port_functions[] = wine_cp_get_table, wine_cp_mbstowcs, wine_cp_wcstombs, - wine_cpsymbol_mbstowcs, - wine_cpsymbol_wcstombs, wine_utf8_mbstowcs, wine_utf8_wcstombs }; diff --git a/libs/wine/wine.map b/libs/wine/wine.map index 9458cd89f33..9898e618201 100644 --- a/libs/wine/wine.map +++ b/libs/wine/wine.map @@ -13,8 +13,6 @@ WINE_1.0 wine_cp_get_table; wine_cp_mbstowcs; wine_cp_wcstombs; - wine_cpsymbol_mbstowcs; - wine_cpsymbol_wcstombs; wine_dlclose; wine_dll_enum_load_path; wine_dll_set_callback; @@ -106,6 +104,8 @@ WINE_1.0 vsprintfW; wine_call_on_stack; wine_compare_string; + wine_cpsymbol_mbstowcs; + wine_cpsymbol_wcstombs; wine_dbg_log; wine_dbg_printf; wine_dbg_sprintf;