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
2b012c98
Commit
2b012c98
authored
Jun 14, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add appropriate stdcall decorations to assembly functions.
parent
ea9cf9e4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
msvcirt.c
dlls/msvcirt/msvcirt.c
+5
-5
cpp.c
dlls/msvcrt/cpp.c
+0
-0
No files found.
dlls/msvcirt/msvcirt.c
View file @
2b012c98
...
...
@@ -35,18 +35,18 @@ typedef struct {
#define THISCALL(func) __thiscall_ ## func
#define THISCALL_NAME(func) __ASM_NAME("__thiscall_" #func)
#define DEFINE_THISCALL_WRAPPER(func) \
#define DEFINE_THISCALL_WRAPPER(func
,args
) \
extern void THISCALL(func)(); \
__ASM_GLOBAL_FUNC(__thiscall_ ## func, \
"popl %eax\n\t" \
"pushl %ecx\n\t" \
"pushl %eax\n\t" \
"jmp " __ASM_NAME(#func) )
"jmp " __ASM_NAME(#func)
__ASM_STDCALL(args)
)
#else
/* __i386__ */
#define THISCALL(func) func
#define THISCALL_NAME(func) __ASM_NAME(#func)
#define DEFINE_THISCALL_WRAPPER(func)
/* nothing */
#define DEFINE_THISCALL_WRAPPER(func
,args
)
/* nothing */
#endif
/* __i386__ */
...
...
@@ -54,7 +54,7 @@ typedef struct {
* ??6ostream@@QAEAAV0@H@Z (MSVCRTI.@)
* class ostream & __thiscall ostream::operator<<(int)
*/
DEFINE_THISCALL_WRAPPER
(
MSVCIRT_operator_sl_int
)
DEFINE_THISCALL_WRAPPER
(
MSVCIRT_operator_sl_int
,
8
)
void
*
__stdcall
MSVCIRT_operator_sl_int
(
class_ostream
*
_this
,
int
integer
)
{
FIXME
(
"(%p)->(%d) stub
\n
"
,
_this
,
integer
);
...
...
@@ -65,7 +65,7 @@ void * __stdcall MSVCIRT_operator_sl_int(class_ostream * _this, int integer)
* ??6ostream@@QAEAAV0@PBD@Z (MSVCRTI.@)
* class ostream & __thiscall ostream::operator<<(char const *)
*/
DEFINE_THISCALL_WRAPPER
(
MSVCIRT_operator_sl_pchar
)
DEFINE_THISCALL_WRAPPER
(
MSVCIRT_operator_sl_pchar
,
8
)
void
*
__stdcall
MSVCIRT_operator_sl_pchar
(
class_ostream
*
_this
,
const
char
*
string
)
{
FIXME
(
"(%p)->(%s) stub
\n
"
,
_this
,
string
);
...
...
dlls/msvcrt/cpp.c
View file @
2b012c98
This diff is collapsed.
Click to expand it.
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