libport: Move wine_cpsymbol functions back to libwine and make them obsolete.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-02-05 09:00:22 +01:00
parent 5a1e897df7
commit f4b7260d29
6 changed files with 14 additions and 9 deletions

View File

@ -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, extern int wine_cp_wcstombs( const union cptable *table, int flags,
const WCHAR *src, int srclen, const WCHAR *src, int srclen,
char *dst, int dstlen, const char *defchar, int *used ); 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_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 );

View File

@ -77,7 +77,6 @@ C_SRCS = \
casemap.c \ casemap.c \
collation.c \ collation.c \
compose.c \ compose.c \
cpsymbol.c \
cptable.c \ cptable.c \
decompose.c \ decompose.c \
digitmap.c \ digitmap.c \

View File

@ -3,6 +3,7 @@ EXTRALIBS = $(DL_LIBS) $(COREFOUNDATION_LIBS) $(CORESERVICES_LIBS) $(I386_LIBS)
C_SRCS = \ C_SRCS = \
config.c \ config.c \
cpsymbol.c \
debug.c \ debug.c \
fold.c \ fold.c \
ldt.c \ ldt.c \

View File

@ -19,10 +19,14 @@
* 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"
/* return -1 on dst buffer overflow */ /* 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; 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 */ /* 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; 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; if (srclen > len) return -1;
return len; return len;
} }
__ASM_OBSOLETE(wine_cpsymbol_mbstowcs);
__ASM_OBSOLETE(wine_cpsymbol_wcstombs);
#endif /* __ASM_OBSOLETE */

View File

@ -42,8 +42,6 @@ const void *libwine_port_functions[] =
wine_cp_get_table, wine_cp_get_table,
wine_cp_mbstowcs, wine_cp_mbstowcs,
wine_cp_wcstombs, wine_cp_wcstombs,
wine_cpsymbol_mbstowcs,
wine_cpsymbol_wcstombs,
wine_utf8_mbstowcs, wine_utf8_mbstowcs,
wine_utf8_wcstombs wine_utf8_wcstombs
}; };

View File

@ -13,8 +13,6 @@ WINE_1.0
wine_cp_get_table; wine_cp_get_table;
wine_cp_mbstowcs; wine_cp_mbstowcs;
wine_cp_wcstombs; wine_cp_wcstombs;
wine_cpsymbol_mbstowcs;
wine_cpsymbol_wcstombs;
wine_dlclose; wine_dlclose;
wine_dll_enum_load_path; wine_dll_enum_load_path;
wine_dll_set_callback; wine_dll_set_callback;
@ -106,6 +104,8 @@ WINE_1.0
vsprintfW; vsprintfW;
wine_call_on_stack; wine_call_on_stack;
wine_compare_string; wine_compare_string;
wine_cpsymbol_mbstowcs;
wine_cpsymbol_wcstombs;
wine_dbg_log; wine_dbg_log;
wine_dbg_printf; wine_dbg_printf;
wine_dbg_sprintf; wine_dbg_sprintf;