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
19bfcd35
Commit
19bfcd35
authored
May 16, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved the remaining stack frame definitions to kernel_private.h and
removed stackframe.h.
parent
827a69f8
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
32 additions
and
72 deletions
+32
-72
atom16.c
dlls/kernel/atom16.c
+0
-1
debugger.c
dlls/kernel/debugger.c
+1
-1
error16.c
dlls/kernel/error16.c
+1
-1
global16.c
dlls/kernel/global16.c
+0
-1
kernel_main.c
dlls/kernel/kernel_main.c
+0
-1
kernel_private.h
dlls/kernel/kernel_private.h
+23
-0
local16.c
dlls/kernel/local16.c
+0
-1
ne_module.c
dlls/kernel/ne_module.c
+1
-1
ne_segment.c
dlls/kernel/ne_segment.c
+0
-1
relay16.c
dlls/kernel/relay16.c
+0
-1
snoop16.c
dlls/kernel/snoop16.c
+0
-1
system.c
dlls/kernel/system.c
+1
-1
task.c
dlls/kernel/task.c
+0
-1
thunk.c
dlls/kernel/thunk.c
+0
-1
toolhelp.c
dlls/kernel/toolhelp.c
+1
-0
wowthunk.c
dlls/kernel/wowthunk.c
+0
-1
local.h
include/local.h
+4
-1
stackframe.h
include/stackframe.h
+0
-57
No files found.
dlls/kernel/atom16.c
View file @
19bfcd35
...
...
@@ -42,7 +42,6 @@
#include "wine/unicode.h"
#include "wine/winbase16.h"
#include "kernel_private.h"
#include "stackframe.h"
#include "wine/debug.h"
...
...
dlls/kernel/debugger.c
View file @
19bfcd35
...
...
@@ -25,7 +25,7 @@
#include "wine/winbase16.h"
#include "wine/server.h"
#include "ntstatus.h"
#include "
stackfram
e.h"
#include "
kernel_privat
e.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
debugstr
);
...
...
dlls/kernel/error16.c
View file @
19bfcd35
...
...
@@ -25,7 +25,7 @@
#include "windef.h"
#include "winbase.h"
#include "
stackframe
.h"
#include "
wine/winbase16
.h"
#include "wine/debug.h"
...
...
dlls/kernel/global16.c
View file @
19bfcd35
...
...
@@ -40,7 +40,6 @@
#include "wine/winbase16.h"
#include "ntstatus.h"
#include "toolhelp.h"
#include "stackframe.h"
#include "kernel_private.h"
#include "wine/debug.h"
#include "winerror.h"
...
...
dlls/kernel/kernel_main.c
View file @
19bfcd35
...
...
@@ -40,7 +40,6 @@
#include "wine/library.h"
#include "module.h"
#include "thread.h"
#include "stackframe.h"
#include "wincon.h"
#include "toolhelp.h"
#include "kernel_private.h"
...
...
dlls/kernel/kernel_private.h
View file @
19bfcd35
...
...
@@ -21,6 +21,9 @@
#ifndef __WINE_KERNEL_PRIVATE_H
#define __WINE_KERNEL_PRIVATE_H
#include "wine/winbase16.h"
#include "thread.h"
HANDLE
WINAPI
OpenConsoleW
(
LPCWSTR
,
DWORD
,
BOOL
,
DWORD
);
BOOL
WINAPI
VerifyConsoleIoHandle
(
HANDLE
);
HANDLE
WINAPI
DuplicateConsoleHandle
(
HANDLE
,
DWORD
,
BOOL
,
DWORD
);
...
...
@@ -44,6 +47,26 @@ static inline HANDLE console_handle_unmap(HANDLE h)
return
h
!=
INVALID_HANDLE_VALUE
?
(
HANDLE
)((
DWORD
)
h
^
3
)
:
INVALID_HANDLE_VALUE
;
}
#define CURRENT_STACK16 ((STACK16FRAME*)MapSL((SEGPTR)NtCurrentTeb()->WOW32Reserved))
#define CURRENT_DS (CURRENT_STACK16->ds)
/* push bytes on the 16-bit stack of a thread; return a segptr to the first pushed byte */
static
inline
SEGPTR
stack16_push
(
int
size
)
{
STACK16FRAME
*
frame
=
CURRENT_STACK16
;
memmove
(
(
char
*
)
frame
-
size
,
frame
,
sizeof
(
*
frame
)
);
NtCurrentTeb
()
->
WOW32Reserved
=
(
char
*
)
NtCurrentTeb
()
->
WOW32Reserved
-
size
;
return
(
SEGPTR
)((
char
*
)
NtCurrentTeb
()
->
WOW32Reserved
+
sizeof
(
*
frame
));
}
/* pop bytes from the 16-bit stack of a thread */
static
inline
void
stack16_pop
(
int
size
)
{
STACK16FRAME
*
frame
=
CURRENT_STACK16
;
memmove
(
(
char
*
)
frame
+
size
,
frame
,
sizeof
(
*
frame
)
);
NtCurrentTeb
()
->
WOW32Reserved
=
(
char
*
)
NtCurrentTeb
()
->
WOW32Reserved
+
size
;
}
extern
HMODULE
kernel32_handle
;
/* Size of per-process table of DOS handles */
...
...
dlls/kernel/local16.c
View file @
19bfcd35
...
...
@@ -36,7 +36,6 @@
#include "wine/winbase16.h"
#include "wownt32.h"
#include "module.h"
#include "stackframe.h"
#include "toolhelp.h"
#include "kernel_private.h"
#include "wine/debug.h"
...
...
dlls/kernel/ne_module.c
View file @
19bfcd35
...
...
@@ -37,8 +37,8 @@
#include "wownt32.h"
#include "module.h"
#include "toolhelp.h"
#include "stackframe.h"
#include "excpt.h"
#include "kernel_private.h"
#include "wine/exception.h"
#include "wine/debug.h"
...
...
dlls/kernel/ne_segment.c
View file @
19bfcd35
...
...
@@ -38,7 +38,6 @@
#include "wine/library.h"
#include "kernel_private.h"
#include "module.h"
#include "stackframe.h"
#include "toolhelp.h"
#include "wine/debug.h"
...
...
dlls/kernel/relay16.c
View file @
19bfcd35
...
...
@@ -30,7 +30,6 @@
#include "winbase.h"
#include "wine/winbase16.h"
#include "module.h"
#include "stackframe.h"
#include "kernel_private.h"
#include "wine/unicode.h"
#include "wine/library.h"
...
...
dlls/kernel/snoop16.c
View file @
19bfcd35
...
...
@@ -32,7 +32,6 @@
#include "wine/library.h"
#include "kernel_private.h"
#include "module.h"
#include "stackframe.h"
#include "toolhelp.h"
#include "wine/debug.h"
...
...
dlls/kernel/system.c
View file @
19bfcd35
...
...
@@ -28,7 +28,7 @@
#include "wine/winbase16.h"
#include "wine/winuser16.h"
#include "wownt32.h"
#include "
stackfram
e.h"
#include "
kernel_privat
e.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
system
);
...
...
dlls/kernel/task.c
View file @
19bfcd35
...
...
@@ -40,7 +40,6 @@
#include "module.h"
#include "winternl.h"
#include "wine/server.h"
#include "stackframe.h"
#include "thread.h"
#include "toolhelp.h"
#include "kernel_private.h"
...
...
dlls/kernel/thunk.c
View file @
19bfcd35
...
...
@@ -42,7 +42,6 @@
#include "wine/debug.h"
#include "wine/library.h"
#include "module.h"
#include "stackframe.h"
#include "kernel_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
thunk
);
...
...
dlls/kernel/toolhelp.c
View file @
19bfcd35
...
...
@@ -32,6 +32,7 @@
#include "winbase.h"
#include "wine/winbase16.h"
#include "winerror.h"
#include "thread.h"
#include "local.h"
#include "tlhelp32.h"
#include "toolhelp.h"
...
...
dlls/kernel/wowthunk.c
View file @
19bfcd35
...
...
@@ -33,7 +33,6 @@
#include "winreg.h"
#include "winternl.h"
#include "module.h"
#include "stackframe.h"
#include "kernel_private.h"
#include "wine/exception.h"
#include "wine/debug.h"
...
...
include/local.h
View file @
19bfcd35
...
...
@@ -24,7 +24,10 @@
#include <windef.h>
#include <wine/windef16.h>
#include <wine/winbase16.h>
#include <stackframe.h>
#include <winreg.h>
#include <winternl.h>
#define CURRENT_DS (((STACK16FRAME*)MapSL((SEGPTR)NtCurrentTeb()->WOW32Reserved))->ds)
/* These function are equivalent to the Local* API functions, */
/* excepted that they need DS as the first parameter. This */
...
...
include/stackframe.h
deleted
100644 → 0
View file @
827a69f8
/*
* 16-bit and 32-bit mode stack frame layout
*
* Copyright 1995, 1998 Alexandre Julliard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __WINE_STACKFRAME_H
#define __WINE_STACKFRAME_H
#include <string.h>
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winnt.h>
#include <winreg.h>
#include <winternl.h>
#include <thread.h>
#include <wine/winbase16.h>
#define CURRENT_STACK16 ((STACK16FRAME*)MapSL((SEGPTR)NtCurrentTeb()->WOW32Reserved))
#define CURRENT_DS (CURRENT_STACK16->ds)
/* Push bytes on the 16-bit stack of a thread;
* return a segptr to the first pushed byte
*/
static
inline
SEGPTR
stack16_push
(
int
size
)
{
STACK16FRAME
*
frame
=
CURRENT_STACK16
;
memmove
(
(
char
*
)
frame
-
size
,
frame
,
sizeof
(
*
frame
)
);
NtCurrentTeb
()
->
WOW32Reserved
=
(
char
*
)
NtCurrentTeb
()
->
WOW32Reserved
-
size
;
return
(
SEGPTR
)((
char
*
)
NtCurrentTeb
()
->
WOW32Reserved
+
sizeof
(
*
frame
));
}
/* Pop bytes from the 16-bit stack of a thread */
static
inline
void
stack16_pop
(
int
size
)
{
STACK16FRAME
*
frame
=
CURRENT_STACK16
;
memmove
(
(
char
*
)
frame
+
size
,
frame
,
sizeof
(
*
frame
)
);
NtCurrentTeb
()
->
WOW32Reserved
=
(
char
*
)
NtCurrentTeb
()
->
WOW32Reserved
+
size
;
}
#endif
/* __WINE_STACKFRAME_H */
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