Avoid including stackframe.h if it's not needed.

This commit is contained in:
Alexandre Julliard 2003-08-27 02:52:17 +00:00
parent 617839d522
commit bf97962a51
14 changed files with 15 additions and 15 deletions

View file

@ -37,7 +37,6 @@
#include "winnls.h"
#include "wine/debug.h"
#include "winerror.h"
#include "stackframe.h"
#include "winternl.h"
#include "winreg.h"

View file

@ -403,7 +403,6 @@ typedef struct
#define T_UNKNOWN (-1) /* Unknown fault (TRAP_sig not defined) */
#include "wine/exception.h"
#include "stackframe.h"
#include "global.h"
#include "miscemu.h"
#include "syslevel.h"

View file

@ -54,7 +54,6 @@
#include "wine/library.h"
#include "wine/exception.h"
#include "selectors.h"
#include "stackframe.h"
#include "global.h"
#include "ntdll_misc.h"
#include "miscemu.h"

View file

@ -36,7 +36,6 @@
#include "wine/exception.h"
#include "global.h"
#include "stackframe.h"
#include "ntdll_misc.h"
#include "wine/debug.h"

View file

@ -50,7 +50,7 @@
#include "miscemu.h"
#include "dosexe.h"
#include "dosvm.h"
#include "stackframe.h"
#include "thread.h"
#include "wine/debug.h"
#include "excpt.h"

View file

@ -32,7 +32,7 @@
#include "excpt.h"
#include "wine/debug.h"
#include "wine/exception.h"
#include "stackframe.h"
#include "thread.h"
#include "toolhelp.h"
WINE_DEFAULT_DEBUG_CHANNEL(int31);

View file

@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "dosexe.h"
#include "stackframe.h"
#include "thread.h"
#include "wine/debug.h"
#include "builtin16.h"

View file

@ -27,7 +27,6 @@
#include "wine/winbase16.h"
#include "miscemu.h"
#include "selectors.h"
#include "stackframe.h"
#include "wine/server.h"
#include "wine/debug.h"
#include "toolhelp.h"

View file

@ -26,7 +26,6 @@
#include <stdio.h>
#include "winternl.h"
#include "stackframe.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "ntdll_misc.h"
@ -525,7 +524,8 @@ void WINAPI RELAY_DoCallFrom32Regs( CONTEXT86 *context )
WORD nb_args = relay->args / sizeof(int);
/* remove extra stuff from the stack */
context->Eip = stack32_pop(context);
context->Eip = *(DWORD *)context->Esp;
context->Esp += sizeof(DWORD);
args = (int *)context->Esp;
if (relay->ret == 0xc2) /* stdcall */
context->Esp += nb_args * sizeof(int);

View file

@ -25,8 +25,9 @@
#endif
#include <sys/types.h>
#include "winternl.h"
#include "wine/winbase16.h"
#include "syslevel.h"
#include "stackframe.h"
#include "thread.h"
#include "wine/library.h"
#include "wine/debug.h"

View file

@ -40,7 +40,6 @@
#include "selectors.h"
#include "winnt.h"
#include "wine/server.h"
#include "stackframe.h"
#include "wine/debug.h"
#include "winnls.h"

View file

@ -36,12 +36,12 @@
#include "winbase.h"
#include "winreg.h"
#include "winerror.h"
#include "winnls.h"
#include "file.h"
#include "winioctl.h"
#include "winnt.h"
#include "msdos.h"
#include "miscemu.h"
#include "stackframe.h"
#include "wine/server.h"
#include "wine/debug.h"
#include "callback.h"
@ -334,6 +334,13 @@ LPCSTR VMM_Service_Name[N_VMM_SERVICE] =
#define PCC_NOLIN 0x10000000 /* don't map to any linear address */
/* Pop a DWORD from the 32-bit stack */
static inline DWORD stack32_pop( CONTEXT86 *context )
{
DWORD ret = *(DWORD *)context->Esp;
context->Esp += sizeof(DWORD);
return ret;
}
HANDLE DEVICE_Open( LPCWSTR filenameW, DWORD access, LPSECURITY_ATTRIBUTES sa )
{

View file

@ -47,7 +47,6 @@
#include "wine/exception.h"
#include "wine/library.h"
#include "thread.h"
#include "stackframe.h"
#include "excpt.h"
#include "wine/server.h"
#include "wine/unicode.h"

View file

@ -38,7 +38,6 @@
#include "message.h"
#include "winpos.h"
#include "winerror.h"
#include "stackframe.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(win);