[2/2] richedit: Initial testing of ITextServices methods. (try 2)

Dylan Smith dylan.ah.smith at gmail.com
Fri Nov 7 23:28:49 CST 2008


(Ensured compiler independence by modifying byte code templates)

Mostly this patch defines the wrappers and macros that allow the
ITextServices methods to be called, since they use the c++ thiscall
calling convention.

Assembly is used to make the conversion itself, and macros are used to
abstract away these details from the tests.  Byte code templates are
modified at runtime to avoid problems with different compilers being
used, and to make the code more concise.

The public header files should not have these c object macros, since the
native headers omit them, and they will cause code to crash on x86
platforms.
---
 dlls/riched20/tests/txtsrv.c |   96 ++++++++++++++++++++++++++++++++++++++++-
 include/textserv.h           |   19 --------
 2 files changed, 93 insertions(+), 22 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-richedit-Initial-testing-of-ITextServices-method.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20081108/4e350df8/attachment.txt 


More information about the wine-patches mailing list