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
fd50524e
Commit
fd50524e
authored
Apr 30, 2021
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Remove strcmp_space helper.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7a1e032e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
23 deletions
+4
-23
cpp.c
dlls/msvcrt/tests/cpp.c
+4
-23
No files found.
dlls/msvcrt/tests/cpp.c
View file @
fd50524e
...
...
@@ -1100,25 +1100,6 @@ static void test_demangle_datatype(void)
}
}
/* Compare two strings treating multiple spaces (' ', ascii 0x20) in s2
as single space. Needed for test_demangle as __unDName() returns sometimes
two spaces instead of one in some older native msvcrt dlls. */
static
int
strcmp_space
(
const
char
*
s1
,
const
char
*
s2
)
{
const
char
*
s2start
=
s2
;
do
{
while
(
*
s1
==
*
s2
&&
*
s1
)
{
s1
++
;
s2
++
;
}
if
(
*
s2
==
' '
&&
s2
>
s2start
&&
*
(
s2
-
1
)
==
' '
)
s2
++
;
else
break
;
}
while
(
*
s1
&&
*
s2
);
return
*
s1
-
*
s2
;
}
static
void
test_demangle
(
void
)
{
static
struct
{
const
char
*
in
;
const
char
*
out
;
const
char
*
broken
;
unsigned
int
flags
;}
test
[]
=
{
...
...
@@ -1314,11 +1295,11 @@ static void test_demangle(void)
name
=
p__unDName
(
0
,
test
[
i
].
in
,
0
,
malloc
,
free
,
test
[
i
].
flags
);
ok
(
name
!=
NULL
,
"%u: unDName failed
\n
"
,
i
);
if
(
!
name
)
continue
;
ok
(
!
strcmp
_space
(
test
[
i
].
out
,
name
)
||
broken
(
test
[
i
].
broken
&&
!
strcmp
_space
(
test
[
i
].
broken
,
name
)),
ok
(
!
strcmp
(
test
[
i
].
out
,
name
)
||
broken
(
test
[
i
].
broken
&&
!
strcmp
(
test
[
i
].
broken
,
name
)),
"%u: Got name
\"
%s
\"\n
"
,
i
,
name
);
ok
(
!
strcmp
_space
(
test
[
i
].
out
,
name
)
||
broken
(
test
[
i
].
broken
&&
!
strcmp
_space
(
test
[
i
].
broken
,
name
)),
ok
(
!
strcmp
(
test
[
i
].
out
,
name
)
||
broken
(
test
[
i
].
broken
&&
!
strcmp
(
test
[
i
].
broken
,
name
)),
"%u: Expected
\"
%s
\"\n
"
,
i
,
test
[
i
].
out
);
free
(
name
);
}
...
...
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