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
143bd63b
Commit
143bd63b
authored
Dec 01, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Remove some no longer used Unicode functions.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ce0e6ccb
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
3 additions
and
116 deletions
+3
-116
schannel_gnutls.c
dlls/secur32/schannel_gnutls.c
+1
-3
mmdevdrv.c
dlls/wineandroid.drv/mmdevdrv.c
+0
-1
window.c
dlls/wineandroid.drv/window.c
+0
-1
coreaudio.c
dlls/winecoreaudio.drv/coreaudio.c
+1
-1
coremidi.c
dlls/winecoreaudio.drv/coremidi.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-1
joystick_linux.c
dlls/winejoystick.drv/joystick_linux.c
+0
-2
midi.c
dlls/wineoss.drv/midi.c
+0
-1
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+0
-1
xdnd.c
dlls/winex11.drv/xdnd.c
+0
-1
xinerama.c
dlls/winex11.drv/xinerama.c
+0
-1
xvidmode.c
dlls/winex11.drv/xvidmode.c
+0
-1
unicode.h
include/wine/unicode.h
+0
-101
No files found.
dlls/secur32/schannel_gnutls.c
View file @
143bd63b
...
...
@@ -41,13 +41,11 @@
#define WIN32_NO_STATUS
#include "windef.h"
#include "winbase.h"
#include "winternl.h"
#include "sspi.h"
#include "schannel.h"
#include "winreg.h"
#include "secur32_priv.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#if defined(SONAME_LIBGNUTLS)
...
...
dlls/wineandroid.drv/mmdevdrv.c
View file @
143bd63b
...
...
@@ -44,7 +44,6 @@
#include "winnls.h"
#include "winreg.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "wine/list.h"
#include "ole2.h"
...
...
dlls/wineandroid.drv/window.c
View file @
143bd63b
...
...
@@ -42,7 +42,6 @@
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "wine/unicode.h"
#include "android.h"
#include "wine/server.h"
...
...
dlls/winecoreaudio.drv/coreaudio.c
View file @
143bd63b
...
...
@@ -61,11 +61,11 @@
#include "winbase.h"
#include "winnls.h"
#include "winreg.h"
#include "winternl.h"
#include "mmdeviceapi.h"
#include "initguid.h"
#include "audioclient.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "wine/unixlib.h"
#include "unixlib.h"
...
...
dlls/winecoreaudio.drv/coremidi.c
View file @
143bd63b
...
...
@@ -80,12 +80,12 @@
#include "winbase.h"
#include "winnls.h"
#include "winreg.h"
#include "winternl.h"
#include "mmsystem.h"
#include "mmddk.h"
#include "mmdeviceapi.h"
#include "audioclient.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "wine/unixlib.h"
#include "coreaudio.h"
...
...
dlls/wined3d/wined3d_private.h
View file @
143bd63b
...
...
@@ -50,7 +50,6 @@
#include "ddk/d3dkmthk.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/unicode.h"
#ifdef HAVE_FLOAT_H
# include <float.h>
#endif
...
...
dlls/winejoystick.drv/joystick_linux.c
View file @
143bd63b
...
...
@@ -67,8 +67,6 @@
#include "winnls.h"
#include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
joystick
);
#define MAXJOYSTICK (JOYSTICKID2 + 30)
...
...
dlls/wineoss.drv/midi.c
View file @
143bd63b
...
...
@@ -63,7 +63,6 @@
#include "winuser.h"
#include "winnls.h"
#include "mmddk.h"
#include "wine/unicode.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
midi
);
...
...
dlls/wineoss.drv/mmdevdrv.c
View file @
143bd63b
...
...
@@ -38,7 +38,6 @@
#include "winnls.h"
#include "winreg.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "wine/list.h"
#include "ole2.h"
...
...
dlls/winex11.drv/xdnd.c
View file @
143bd63b
...
...
@@ -43,7 +43,6 @@
#include "oleidl.h"
#include "objidl.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "wine/list.h"
...
...
dlls/winex11.drv/xinerama.c
View file @
143bd63b
...
...
@@ -30,7 +30,6 @@
#include "x11drv.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
x11drv
);
...
...
dlls/winex11.drv/xvidmode.c
View file @
143bd63b
...
...
@@ -43,7 +43,6 @@
#include "wingdi.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
xvidmode
);
...
...
include/wine/unicode.h
View file @
143bd63b
...
...
@@ -67,31 +67,12 @@ WINE_UNICODE_INLINE WCHAR *strcpyW( WCHAR *dst, const WCHAR *src )
return
dst
;
}
WINE_UNICODE_INLINE
int
strcmpW
(
const
WCHAR
*
str1
,
const
WCHAR
*
str2
)
{
while
(
*
str1
&&
(
*
str1
==
*
str2
))
{
str1
++
;
str2
++
;
}
return
*
str1
-
*
str2
;
}
WINE_UNICODE_INLINE
int
strncmpW
(
const
WCHAR
*
str1
,
const
WCHAR
*
str2
,
int
n
)
{
if
(
n
<=
0
)
return
0
;
while
((
--
n
>
0
)
&&
*
str1
&&
(
*
str1
==
*
str2
))
{
str1
++
;
str2
++
;
}
return
*
str1
-
*
str2
;
}
WINE_UNICODE_INLINE
WCHAR
*
strcatW
(
WCHAR
*
dst
,
const
WCHAR
*
src
)
{
strcpyW
(
dst
+
strlenW
(
dst
),
src
);
return
dst
;
}
WINE_UNICODE_INLINE
WCHAR
*
strchrW
(
const
WCHAR
*
str
,
WCHAR
ch
)
{
do
{
if
(
*
str
==
ch
)
return
(
WCHAR
*
)(
ULONG_PTR
)
str
;
}
while
(
*
str
++
);
return
NULL
;
}
WINE_UNICODE_INLINE
WCHAR
*
strrchrW
(
const
WCHAR
*
str
,
WCHAR
ch
)
{
WCHAR
*
ret
=
NULL
;
...
...
@@ -99,26 +80,6 @@ WINE_UNICODE_INLINE WCHAR *strrchrW( const WCHAR *str, WCHAR ch )
return
ret
;
}
WINE_UNICODE_INLINE
WCHAR
*
strpbrkW
(
const
WCHAR
*
str
,
const
WCHAR
*
accept
)
{
for
(
;
*
str
;
str
++
)
if
(
strchrW
(
accept
,
*
str
))
return
(
WCHAR
*
)(
ULONG_PTR
)
str
;
return
NULL
;
}
WINE_UNICODE_INLINE
WCHAR
*
strlwrW
(
WCHAR
*
str
)
{
WCHAR
*
ret
;
for
(
ret
=
str
;
*
str
;
str
++
)
*
str
=
tolowerW
(
*
str
);
return
ret
;
}
WINE_UNICODE_INLINE
WCHAR
*
memchrW
(
const
WCHAR
*
ptr
,
WCHAR
ch
,
size_t
n
)
{
const
WCHAR
*
end
;
for
(
end
=
ptr
+
n
;
ptr
<
end
;
ptr
++
)
if
(
*
ptr
==
ch
)
return
(
WCHAR
*
)(
ULONG_PTR
)
ptr
;
return
NULL
;
}
WINE_UNICODE_INLINE
int
strcmpiW
(
const
WCHAR
*
str1
,
const
WCHAR
*
str2
)
{
for
(;;)
...
...
@@ -138,18 +99,6 @@ WINE_UNICODE_INLINE int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n )
return
ret
;
}
WINE_UNICODE_INLINE
WCHAR
*
strstrW
(
const
WCHAR
*
str
,
const
WCHAR
*
sub
)
{
while
(
*
str
)
{
const
WCHAR
*
p1
=
str
,
*
p2
=
sub
;
while
(
*
p1
&&
*
p2
&&
*
p1
==
*
p2
)
{
p1
++
;
p2
++
;
}
if
(
!*
p2
)
return
(
WCHAR
*
)
str
;
str
++
;
}
return
NULL
;
}
WINE_UNICODE_INLINE
LONG
strtolW
(
LPCWSTR
s
,
LPWSTR
*
end
,
INT
base
)
{
BOOL
negative
=
FALSE
,
empty
=
TRUE
;
...
...
@@ -198,56 +147,6 @@ WINE_UNICODE_INLINE LONG strtolW( LPCWSTR s, LPWSTR *end, INT base )
return
ret
;
}
WINE_UNICODE_INLINE
ULONG
strtoulW
(
LPCWSTR
s
,
LPWSTR
*
end
,
INT
base
)
{
BOOL
negative
=
FALSE
,
empty
=
TRUE
;
ULONG
ret
=
0
;
if
(
base
<
0
||
base
==
1
||
base
>
36
)
return
0
;
if
(
end
)
*
end
=
(
WCHAR
*
)
s
;
while
(
isspaceW
(
*
s
))
s
++
;
if
(
*
s
==
'-'
)
{
negative
=
TRUE
;
s
++
;
}
else
if
(
*
s
==
'+'
)
s
++
;
if
((
base
==
0
||
base
==
16
)
&&
s
[
0
]
==
'0'
&&
(
s
[
1
]
==
'x'
||
s
[
1
]
==
'X'
))
{
base
=
16
;
s
+=
2
;
}
if
(
base
==
0
)
base
=
s
[
0
]
!=
'0'
?
10
:
8
;
while
(
*
s
)
{
int
v
;
if
(
'0'
<=
*
s
&&
*
s
<=
'9'
)
v
=
*
s
-
'0'
;
else
if
(
'A'
<=
*
s
&&
*
s
<=
'Z'
)
v
=
*
s
-
'A'
+
10
;
else
if
(
'a'
<=
*
s
&&
*
s
<=
'z'
)
v
=
*
s
-
'a'
+
10
;
else
break
;
if
(
v
>=
base
)
break
;
s
++
;
empty
=
FALSE
;
if
(
ret
>
MAXDWORD
/
base
||
ret
*
base
>
MAXDWORD
-
v
)
ret
=
MAXDWORD
;
else
ret
=
ret
*
base
+
v
;
}
if
(
end
&&
!
empty
)
*
end
=
(
WCHAR
*
)
s
;
return
negative
?
-
ret
:
ret
;
}
WINE_UNICODE_INLINE
int
atoiW
(
const
WCHAR
*
str
)
{
return
(
int
)
strtolW
(
str
,
(
WCHAR
**
)
0
,
10
);
}
NTSYSAPI
int
__cdecl
_vsnwprintf
(
WCHAR
*
,
size_t
,
const
WCHAR
*
,
__ms_va_list
);
static
inline
int
WINAPIV
snprintfW
(
WCHAR
*
str
,
size_t
len
,
const
WCHAR
*
format
,
...)
...
...
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