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
084d4ec6
Commit
084d4ec6
authored
Aug 16, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Added 64-bit char_traits tests.
parent
96c622df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
11 deletions
+23
-11
misc.c
dlls/msvcp90/tests/misc.c
+23
-11
No files found.
dlls/msvcp90/tests/misc.c
View file @
084d4ec6
...
...
@@ -32,7 +32,7 @@ static BYTE (__cdecl *p_char_eq)(const void*, const void*);
static
BYTE
(
__cdecl
*
p_wchar_eq
)(
const
void
*
,
const
void
*
);
static
BYTE
(
__cdecl
*
p_short_eq
)(
const
void
*
,
const
void
*
);
static
char
*
(
__cdecl
*
p_Copy_s
)(
char
*
,
unsigned
int
,
const
char
*
,
unsigned
in
t
);
static
char
*
(
__cdecl
*
p_Copy_s
)(
char
*
,
size_t
,
const
char
*
,
size_
t
);
static
int
invalid_parameter
=
0
;
static
void
__cdecl
test_invalid_parameter_handler
(
const
wchar_t
*
expression
,
...
...
@@ -64,15 +64,27 @@ static BOOL init(void)
p_set_invalid_parameter_handler
(
test_invalid_parameter_handler
);
p_char_assign
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?assign@?$char_traits@D@std@@SAXAADABD@Z"
);
p_wchar_assign
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?assign@?$char_traits@_W@std@@SAXAA_WAB_W@Z"
);
p_short_assign
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?assign@?$char_traits@G@std@@SAXAAGABG@Z"
);
if
(
sizeof
(
void
*
)
==
8
)
{
/* 64-bit initialization */
p_char_assign
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?assign@?$char_traits@D@std@@SAXAEADAEBD@Z"
);
p_wchar_assign
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?assign@?$char_traits@_W@std@@SAXAEA_WAEB_W@Z"
);
p_short_assign
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?assign@?$char_traits@G@std@@SAXAEAGAEBG@Z"
);
p_char_eq
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?eq@?$char_traits@D@std@@SA_NA
BD0@Z"
);
p_wchar_eq
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?eq@?$char_traits@_W@std@@SA_NA
B_W0@Z"
);
p_short_eq
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?eq@?$char_traits@G@std@@SA_NA
BG0@Z"
);
p_char_eq
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?eq@?$char_traits@D@std@@SA_NAE
BD0@Z"
);
p_wchar_eq
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?eq@?$char_traits@_W@std@@SA_NAE
B_W0@Z"
);
p_short_eq
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?eq@?$char_traits@G@std@@SA_NAE
BG0@Z"
);
p_Copy_s
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?_Copy_s@?$char_traits@D@std@@SAPADPADIPBDI@Z"
);
p_Copy_s
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?_Copy_s@?$char_traits@D@std@@SAPEADPEAD_KPEBD1@Z"
);
}
else
{
p_char_assign
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?assign@?$char_traits@D@std@@SAXAADABD@Z"
);
p_wchar_assign
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?assign@?$char_traits@_W@std@@SAXAA_WAB_W@Z"
);
p_short_assign
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?assign@?$char_traits@G@std@@SAXAAGABG@Z"
);
p_char_eq
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?eq@?$char_traits@D@std@@SA_NABD0@Z"
);
p_wchar_eq
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?eq@?$char_traits@_W@std@@SA_NAB_W0@Z"
);
p_short_eq
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?eq@?$char_traits@G@std@@SA_NABG0@Z"
);
p_Copy_s
=
(
void
*
)
GetProcAddress
(
msvcp
,
"?_Copy_s@?$char_traits@D@std@@SAPADPADIPBDI@Z"
);
}
return
TRUE
;
}
...
...
@@ -83,7 +95,7 @@ static void test_assign(void)
char
out
[
4
];
if
(
!
p_char_assign
||
!
p_wchar_assign
||
!
p_short_assign
)
{
skip
(
"assign tests skipped
\n
"
);
win_
skip
(
"assign tests skipped
\n
"
);
return
;
}
...
...
@@ -114,7 +126,7 @@ static void test_equal(void)
BYTE
ret
;
if
(
!
p_char_eq
||
!
p_wchar_eq
||
!
p_short_eq
)
{
skip
(
"equal tests skipped
\n
"
);
win_
skip
(
"equal tests skipped
\n
"
);
return
;
}
...
...
@@ -146,7 +158,7 @@ static void test_Copy_s(void)
char
dest
[
32
],
*
ret
;
if
(
!
p_Copy_s
)
{
skip
(
"Copy_s tests skipped
\n
"
);
win_
skip
(
"Copy_s tests skipped
\n
"
);
return
;
}
...
...
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