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
eb08df3a
Commit
eb08df3a
authored
Jun 14, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Add appropriate stdcall decorations to assembly functions.
parent
2b012c98
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
106 additions
and
106 deletions
+106
-106
txthost.c
dlls/riched20/txthost.c
+84
-84
txtsrv.c
dlls/riched20/txtsrv.c
+22
-22
No files found.
dlls/riched20/txthost.c
View file @
eb08df3a
This diff is collapsed.
Click to expand it.
dlls/riched20/txtsrv.c
View file @
eb08df3a
...
...
@@ -37,17 +37,17 @@
#ifdef __i386__
/* thiscall functions are i386-specific */
#define THISCALL(func) __thiscall_ ## func
#define DEFINE_THISCALL_WRAPPER(func) \
#define DEFINE_THISCALL_WRAPPER(func
,args
) \
extern typeof(func) THISCALL(func); \
__ASM_
GLOBAL_FUNC(__thiscall_ ## func
, \
__ASM_
STDCALL_FUNC(__thiscall_ ## func, args
, \
"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 DEFINE_THISCALL_WRAPPER(func)
/* nothing */
#define DEFINE_THISCALL_WRAPPER(func
,args
)
/* nothing */
#endif
/* __i386__ */
...
...
@@ -387,24 +387,24 @@ HRESULT WINAPI fnTextSrv_TxGetCachedSize(ITextServices *iface,
return
E_NOTIMPL
;
}
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxSendMessage
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxDraw
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxGetHScroll
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxGetVScroll
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_OnTxSetCursor
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxQueryHitPoint
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_OnTxInplaceActivate
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_OnTxInplaceDeactivate
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_OnTxUIActivate
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_OnTxUIDeactivate
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxGetText
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxSetText
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxGetCurrentTargetX
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxGetBaseLinePos
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxGetNaturalSize
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxGetDropTarget
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_OnTxPropertyBitsChange
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxGetCachedSize
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxSendMessage
,
20
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxDraw
,
52
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxGetHScroll
,
24
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxGetVScroll
,
24
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_OnTxSetCursor
,
40
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxQueryHitPoint
,
44
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_OnTxInplaceActivate
,
8
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_OnTxInplaceDeactivate
,
4
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_OnTxUIActivate
,
4
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_OnTxUIDeactivate
,
4
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxGetText
,
8
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxSetText
,
8
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxGetCurrentTargetX
,
8
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxGetBaseLinePos
,
8
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxGetNaturalSize
,
36
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxGetDropTarget
,
8
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_OnTxPropertyBitsChange
,
12
)
DEFINE_THISCALL_WRAPPER
(
fnTextSrv_TxGetCachedSize
,
12
)
static
const
ITextServicesVtbl
textservices_Vtbl
=
{
...
...
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