Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
473914f6
Commit
473914f6
authored
Feb 05, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libport: Move wine_utf8 functions back to libwine and make them obsolete.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f4b7260d
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
10 deletions
+15
-10
unicode.h
include/wine/unicode.h
+0
-2
Makefile.in
libs/port/Makefile.in
+0
-1
Makefile.in
libs/wine/Makefile.in
+2
-1
port.c
libs/wine/port.c
+0
-2
utf8.c
libs/wine/utf8.c
+11
-2
wine.map
libs/wine/wine.map
+2
-2
No files found.
include/wine/unicode.h
View file @
473914f6
...
@@ -88,8 +88,6 @@ extern int wine_cp_mbstowcs( const union cptable *table, int flags,
...
@@ -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_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
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
);
...
...
libs/port/Makefile.in
View file @
473914f6
...
@@ -102,6 +102,5 @@ C_SRCS = \
...
@@ -102,6 +102,5 @@ C_SRCS = \
stubs.c
\
stubs.c
\
symlink.c
\
symlink.c
\
usleep.c
\
usleep.c
\
utf8.c
\
wctomb.c
\
wctomb.c
\
wctype.c
wctype.c
libs/wine/Makefile.in
View file @
473914f6
...
@@ -10,7 +10,8 @@ C_SRCS = \
...
@@ -10,7 +10,8 @@ C_SRCS = \
loader.c
\
loader.c
\
mmap.c
\
mmap.c
\
port.c
\
port.c
\
sortkey.c
sortkey.c
\
utf8.c
EXTRA_OBJS
=
version.o
EXTRA_OBJS
=
version.o
...
...
libs/wine/port.c
View file @
473914f6
...
@@ -42,8 +42,6 @@ const void *libwine_port_functions[] =
...
@@ -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_utf8_mbstowcs
,
wine_utf8_wcstombs
};
};
/* no longer used, for backwards compatibility only */
/* no longer used, for backwards compatibility only */
...
...
libs/
port
/utf8.c
→
libs/
wine
/utf8.c
View file @
473914f6
...
@@ -20,6 +20,10 @@
...
@@ -20,6 +20,10 @@
#include <string.h>
#include <string.h>
#include "wine/asm.h"
#ifdef __ASM_OBSOLETE
#include "wine/unicode.h"
#include "wine/unicode.h"
extern
WCHAR
wine_compose
(
const
WCHAR
*
str
)
DECLSPEC_HIDDEN
;
extern
WCHAR
wine_compose
(
const
WCHAR
*
str
)
DECLSPEC_HIDDEN
;
...
@@ -95,7 +99,7 @@ static inline int get_length_wcs_utf8( int flags, const WCHAR *src, unsigned int
...
@@ -95,7 +99,7 @@ static inline int get_length_wcs_utf8( int flags, const WCHAR *src, unsigned int
/* wide char to UTF-8 string conversion */
/* wide char to UTF-8 string conversion */
/* return -1 on dst buffer overflow, -2 on invalid input char */
/* return -1 on dst buffer overflow, -2 on invalid input char */
int
wine_utf8_wcstombs
(
int
flags
,
const
WCHAR
*
src
,
int
srclen
,
char
*
dst
,
int
dstlen
)
int
wine_utf8_wcstombs
_obsolete
(
int
flags
,
const
WCHAR
*
src
,
int
srclen
,
char
*
dst
,
int
dstlen
)
{
{
int
len
;
int
len
;
...
@@ -301,7 +305,7 @@ static inline int get_length_mbs_utf8( int flags, const char *src, int srclen )
...
@@ -301,7 +305,7 @@ static inline int get_length_mbs_utf8( int flags, const char *src, int srclen )
/* UTF-8 to wide char string conversion */
/* UTF-8 to wide char string conversion */
/* return -1 on dst buffer overflow, -2 on invalid input char */
/* return -1 on dst buffer overflow, -2 on invalid input char */
int
wine_utf8_mbstowcs
(
int
flags
,
const
char
*
src
,
int
srclen
,
WCHAR
*
dst
,
int
dstlen
)
int
wine_utf8_mbstowcs
_obsolete
(
int
flags
,
const
char
*
src
,
int
srclen
,
WCHAR
*
dst
,
int
dstlen
)
{
{
unsigned
int
res
;
unsigned
int
res
;
const
char
*
srcend
=
src
+
srclen
;
const
char
*
srcend
=
src
+
srclen
;
...
@@ -336,3 +340,8 @@ int wine_utf8_mbstowcs( int flags, const char *src, int srclen, WCHAR *dst, int
...
@@ -336,3 +340,8 @@ int wine_utf8_mbstowcs( int flags, const char *src, int srclen, WCHAR *dst, int
if
(
src
<
srcend
)
return
-
1
;
/* overflow */
if
(
src
<
srcend
)
return
-
1
;
/* overflow */
return
dstlen
-
(
dstend
-
dst
);
return
dstlen
-
(
dstend
-
dst
);
}
}
__ASM_OBSOLETE
(
wine_utf8_wcstombs
);
__ASM_OBSOLETE
(
wine_utf8_mbstowcs
);
#endif
/* __ASM_OBSOLETE */
libs/wine/wine.map
View file @
473914f6
...
@@ -53,8 +53,6 @@ WINE_1.0
...
@@ -53,8 +53,6 @@ WINE_1.0
wine_mmap_remove_reserved_area;
wine_mmap_remove_reserved_area;
wine_set_fs;
wine_set_fs;
wine_set_gs;
wine_set_gs;
wine_utf8_mbstowcs;
wine_utf8_wcstombs;
wine_wctype_table;
wine_wctype_table;
/* the following functions are obsolete and only exported for backwards compatibility */
/* the following functions are obsolete and only exported for backwards compatibility */
...
@@ -120,6 +118,8 @@ WINE_1.0
...
@@ -120,6 +118,8 @@ WINE_1.0
wine_pthread_get_functions;
wine_pthread_get_functions;
wine_pthread_set_functions;
wine_pthread_set_functions;
wine_switch_to_stack;
wine_switch_to_stack;
wine_utf8_mbstowcs;
wine_utf8_wcstombs;
local: *;
local: *;
};
};
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