Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d81f96a8
Commit
d81f96a8
authored
Feb 12, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libport: Move wine_cp_wcstombs implementation back to libwine and make it obsolete.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
23a50fb0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
11 deletions
+14
-11
unicode.h
include/wine/unicode.h
+0
-4
Makefile.in
libs/port/Makefile.in
+0
-1
Makefile.in
libs/wine/Makefile.in
+2
-1
port.c
libs/wine/port.c
+0
-1
wctomb.c
libs/wine/wctomb.c
+11
-3
wine.map
libs/wine/wine.map
+1
-1
No files found.
include/wine/unicode.h
View file @
d81f96a8
...
...
@@ -82,10 +82,6 @@ union cptable
extern
const
union
cptable
*
wine_cp_get_table
(
unsigned
int
codepage
);
extern
const
union
cptable
*
wine_cp_enum_table
(
unsigned
int
index
);
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
strcmpiW
(
const
WCHAR
*
str1
,
const
WCHAR
*
str2
);
extern
int
strncmpiW
(
const
WCHAR
*
str1
,
const
WCHAR
*
str2
,
int
n
);
extern
int
memicmpW
(
const
WCHAR
*
str1
,
const
WCHAR
*
str2
,
int
n
);
...
...
libs/port/Makefile.in
View file @
d81f96a8
...
...
@@ -91,5 +91,4 @@ C_SRCS = \
stubs.c
\
symlink.c
\
usleep.c
\
wctomb.c
\
wctype.c
libs/wine/Makefile.in
View file @
d81f96a8
...
...
@@ -13,7 +13,8 @@ C_SRCS = \
mmap.c
\
port.c
\
sortkey.c
\
utf8.c
utf8.c
\
wctomb.c
EXTRA_OBJS
=
version.o
...
...
libs/wine/port.c
View file @
d81f96a8
...
...
@@ -40,7 +40,6 @@ const void *libwine_port_functions[] =
vsnprintfW
,
wine_cp_enum_table
,
wine_cp_get_table
,
wine_cp_wcstombs
,
};
/* no longer used, for backwards compatibility only */
...
...
libs/
port
/wctomb.c
→
libs/
wine
/wctomb.c
View file @
d81f96a8
...
...
@@ -20,6 +20,10 @@
#include <string.h>
#include "wine/asm.h"
#ifdef __ASM_OBSOLETE
#include "wine/unicode.h"
extern
WCHAR
wine_compose
(
const
WCHAR
*
str
)
DECLSPEC_HIDDEN
;
...
...
@@ -408,9 +412,9 @@ static int wcstombs_dbcs_slow( const struct dbcs_table *table, int flags,
/* wide char to multi byte string conversion */
/* return -1 on dst buffer overflow */
int
wine_cp_wcstombs
(
const
union
cptable
*
table
,
int
flags
,
const
WCHAR
*
src
,
int
srclen
,
char
*
dst
,
int
dstlen
,
const
char
*
defchar
,
int
*
used
)
int
wine_cp_wcstombs
_obsolete
(
const
union
cptable
*
table
,
int
flags
,
const
WCHAR
*
src
,
int
srclen
,
char
*
dst
,
int
dstlen
,
const
char
*
defchar
,
int
*
used
)
{
if
(
table
->
info
.
char_size
==
1
)
{
...
...
@@ -432,3 +436,7 @@ int wine_cp_wcstombs( const union cptable *table, int flags,
return
wcstombs_dbcs
(
&
table
->
dbcs
,
src
,
srclen
,
dst
,
dstlen
);
}
}
__ASM_OBSOLETE
(
wine_cp_wcstombs
);
#endif
/* __ASM_OBSOLETE */
libs/wine/wine.map
View file @
d81f96a8
...
...
@@ -11,7 +11,6 @@ WINE_1.0
wine_casemap_upper;
wine_cp_enum_table;
wine_cp_get_table;
wine_cp_wcstombs;
wine_dlclose;
wine_dll_enum_load_path;
wine_dll_set_callback;
...
...
@@ -102,6 +101,7 @@ WINE_1.0
wine_call_on_stack;
wine_compare_string;
wine_cp_mbstowcs;
wine_cp_wcstombs;
wine_cpsymbol_mbstowcs;
wine_cpsymbol_wcstombs;
wine_dbg_log;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment