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
c208c3b9
Commit
c208c3b9
authored
Jul 04, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Jul 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winelib: Cast-qual warnings fix.
parent
67d667b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
unicode.h
include/wine/unicode.h
+8
-7
No files found.
include/wine/unicode.h
View file @
c208c3b9
...
...
@@ -245,7 +245,7 @@ WINE_UNICODE_INLINE WCHAR *strcatW( WCHAR *dst, const WCHAR *src )
WINE_UNICODE_INLINE
WCHAR
*
strchrW
(
const
WCHAR
*
str
,
WCHAR
ch
);
WINE_UNICODE_INLINE
WCHAR
*
strchrW
(
const
WCHAR
*
str
,
WCHAR
ch
)
{
do
{
if
(
*
str
==
ch
)
return
(
WCHAR
*
)
str
;
}
while
(
*
str
++
);
do
{
if
(
*
str
==
ch
)
return
(
WCHAR
*
)
(
ULONG_PTR
)
str
;
}
while
(
*
str
++
);
return
NULL
;
}
...
...
@@ -253,14 +253,14 @@ WINE_UNICODE_INLINE WCHAR *strrchrW( const WCHAR *str, WCHAR ch );
WINE_UNICODE_INLINE
WCHAR
*
strrchrW
(
const
WCHAR
*
str
,
WCHAR
ch
)
{
WCHAR
*
ret
=
NULL
;
do
{
if
(
*
str
==
ch
)
ret
=
(
WCHAR
*
)
str
;
}
while
(
*
str
++
);
do
{
if
(
*
str
==
ch
)
ret
=
(
WCHAR
*
)
(
ULONG_PTR
)
str
;
}
while
(
*
str
++
);
return
ret
;
}
WINE_UNICODE_INLINE
WCHAR
*
strpbrkW
(
const
WCHAR
*
str
,
const
WCHAR
*
accept
);
WINE_UNICODE_INLINE
WCHAR
*
strpbrkW
(
const
WCHAR
*
str
,
const
WCHAR
*
accept
)
{
for
(
;
*
str
;
str
++
)
if
(
strchrW
(
accept
,
*
str
))
return
(
WCHAR
*
)
str
;
for
(
;
*
str
;
str
++
)
if
(
strchrW
(
accept
,
*
str
))
return
(
WCHAR
*
)
(
ULONG_PTR
)
str
;
return
NULL
;
}
...
...
@@ -300,16 +300,17 @@ WINE_UNICODE_INLINE WCHAR *memchrW( const WCHAR *ptr, WCHAR ch, size_t n );
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
*
)
ptr
;
for
(
end
=
ptr
+
n
;
ptr
<
end
;
ptr
++
)
if
(
*
ptr
==
ch
)
return
(
WCHAR
*
)
(
ULONG_PTR
)
ptr
;
return
NULL
;
}
WINE_UNICODE_INLINE
WCHAR
*
memrchrW
(
const
WCHAR
*
ptr
,
WCHAR
ch
,
size_t
n
);
WINE_UNICODE_INLINE
WCHAR
*
memrchrW
(
const
WCHAR
*
ptr
,
WCHAR
ch
,
size_t
n
)
{
const
WCHAR
*
end
,
*
ret
=
NULL
;
for
(
end
=
ptr
+
n
;
ptr
<
end
;
ptr
++
)
if
(
*
ptr
==
ch
)
ret
=
ptr
;
return
(
WCHAR
*
)
ret
;
const
WCHAR
*
end
;
WCHAR
*
ret
=
NULL
;
for
(
end
=
ptr
+
n
;
ptr
<
end
;
ptr
++
)
if
(
*
ptr
==
ch
)
ret
=
(
WCHAR
*
)(
ULONG_PTR
)
ptr
;
return
ret
;
}
WINE_UNICODE_INLINE
long
int
atolW
(
const
WCHAR
*
str
);
...
...
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