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
db0747d0
Commit
db0747d0
authored
Dec 13, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed some unnecessary includes.
Got rid of ldt.h.
parent
6c8edaa6
Hide whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
21 additions
and
103 deletions
+21
-103
dbgmain.c
debugger/dbgmain.c
+0
-1
filedlg95.c
dlls/commdlg/filedlg95.c
+0
-1
gdi_main.c
dlls/gdi/gdi_main.c
+0
-1
oleaut.c
dlls/oleaut32/oleaut.c
+0
-1
resource.c
dlls/user/resource.c
+0
-1
winaspi32.c
dlls/winaspi/winaspi32.c
+0
-1
audio.c
dlls/winmm/wineoss/audio.c
+0
-1
midi.c
dlls/winmm/wineoss/midi.c
+0
-1
init.c
graphics/enhmetafiledrv/init.c
+0
-1
init.c
graphics/metafiledrv/init.c
+0
-1
bitmap.c
graphics/x11drv/bitmap.c
+0
-1
brush.c
graphics/x11drv/brush.c
+0
-1
clipping.c
graphics/x11drv/clipping.c
+0
-1
objects.c
graphics/x11drv/objects.c
+0
-1
oembitmap.c
graphics/x11drv/oembitmap.c
+0
-1
xfont.c
graphics/x11drv/xfont.c
+0
-1
gdi.h
include/gdi.h
+0
-2
ldt.h
include/ldt.h
+0
-44
miscemu.h
include/miscemu.h
+5
-2
selectors.h
include/selectors.h
+15
-25
lstr.c
misc/lstr.c
+0
-1
dosaspi.c
msdos/dosaspi.c
+0
-1
int25.c
msdos/int25.c
+0
-1
int26.c
msdos/int26.c
+0
-1
gdiobj.c
objects/gdiobj.c
+1
-0
builtin32.c
relay32/builtin32.c
+0
-1
relay386.c
relay32/relay386.c
+0
-1
snoop.c
relay32/snoop.c
+0
-1
process.c
scheduler/process.c
+0
-2
syslevel.c
scheduler/syslevel.c
+0
-1
spec16.c
tools/winebuild/spec16.c
+0
-1
except.c
win32/except.c
+0
-1
dce.c
windows/dce.c
+0
-1
nonclient.c
windows/nonclient.c
+0
-1
No files found.
debugger/dbgmain.c
View file @
db0747d0
...
...
@@ -6,7 +6,6 @@
#include <signal.h>
#include <X11/Xlib.h>
#include "config.h"
#include "ldt.h"
#include "windows.h"
#include "toolhelp.h"
#include "debugger.h"
...
...
dlls/commdlg/filedlg95.c
View file @
db0747d0
...
...
@@ -41,7 +41,6 @@
#include "winbase.h"
#include "ntddk.h"
#include "winnls.h"
#include "ldt.h"
#include "heap.h"
#include "commdlg.h"
#include "dlgs.h"
...
...
dlls/gdi/gdi_main.c
View file @
db0747d0
...
...
@@ -7,7 +7,6 @@
#include "wine/winbase16.h"
#include "gdi.h"
#include "global.h"
#include "tweak.h"
#include "win16drv.h"
#include "winbase.h"
...
...
dlls/oleaut32/oleaut.c
View file @
db0747d0
...
...
@@ -10,7 +10,6 @@
#include "ole2.h"
#include "heap.h"
#include "ldt.h"
#include "debugtools.h"
DEFAULT_DEBUG_CHANNEL
(
ole
);
...
...
dlls/user/resource.c
View file @
db0747d0
...
...
@@ -13,7 +13,6 @@
#include "wine/winuser16.h"
#include "heap.h"
#include "ldt.h"
#include "debugtools.h"
DEFAULT_DEBUG_CHANNEL
(
resource
);
...
...
dlls/winaspi/winaspi32.c
View file @
db0747d0
...
...
@@ -17,7 +17,6 @@
#include "options.h"
#include "heap.h"
#include "debugtools.h"
#include "ldt.h"
DEFAULT_DEBUG_CHANNEL
(
aspi
);
...
...
dlls/winmm/wineoss/audio.c
View file @
db0747d0
...
...
@@ -37,7 +37,6 @@
#include "dsdriver.h"
#include "oss.h"
#include "heap.h"
#include "ldt.h"
#include "debugtools.h"
DEFAULT_DEBUG_CHANNEL
(
wave
);
...
...
dlls/winmm/wineoss/midi.c
View file @
db0747d0
...
...
@@ -25,7 +25,6 @@
#include "oss.h"
#include "debugtools.h"
#include "heap.h"
#include "ldt.h"
DEFAULT_DEBUG_CHANNEL
(
midi
);
...
...
graphics/enhmetafiledrv/init.c
View file @
db0747d0
...
...
@@ -10,7 +10,6 @@
#include "wingdi.h"
#include "gdi.h"
#include "heap.h"
#include "global.h"
#include "enhmetafile.h"
#include "enhmetafiledrv.h"
#include "debugtools.h"
...
...
graphics/metafiledrv/init.c
View file @
db0747d0
...
...
@@ -8,7 +8,6 @@
#include "wine/winbase16.h"
#include "gdi.h"
#include "heap.h"
#include "global.h"
#include "metafile.h"
#include "metafiledrv.h"
#include "debugtools.h"
...
...
graphics/x11drv/bitmap.c
View file @
db0747d0
...
...
@@ -17,7 +17,6 @@
#include "bitmap.h"
#include "heap.h"
#include "debugtools.h"
#include "local.h"
#include "x11drv.h"
#include "wingdi.h"
#include "windef.h"
...
...
graphics/x11drv/brush.c
View file @
db0747d0
...
...
@@ -14,7 +14,6 @@
#include "color.h"
#include "x11drv.h"
#include "debugtools.h"
#include "local.h"
DEFAULT_DEBUG_CHANNEL
(
gdi
);
...
...
graphics/x11drv/clipping.c
View file @
db0747d0
...
...
@@ -15,7 +15,6 @@
#include "region.h"
#include "debugtools.h"
#include "heap.h"
#include "local.h"
DEFAULT_DEBUG_CHANNEL
(
x11drv
);
...
...
graphics/x11drv/objects.c
View file @
db0747d0
...
...
@@ -13,7 +13,6 @@
#include "brush.h"
#include "font.h"
#include "pen.h"
#include "local.h"
#include "debugtools.h"
DEFAULT_DEBUG_CHANNEL
(
gdi
);
...
...
graphics/x11drv/oembitmap.c
View file @
db0747d0
...
...
@@ -26,7 +26,6 @@ typedef unsigned long Pixel;
#include "debugtools.h"
#include "gdi.h"
#include "heap.h"
#include "local.h"
#include "tweak.h"
#include "x11drv.h"
...
...
graphics/x11drv/xfont.c
View file @
db0747d0
...
...
@@ -31,7 +31,6 @@
#include "options.h"
#include "font.h"
#include "debugtools.h"
#include "ldt.h"
#include "tweak.h"
#include "x11font.h"
#include "server.h"
...
...
include/gdi.h
View file @
db0747d0
...
...
@@ -12,8 +12,6 @@
#include "windef.h"
#include "wingdi.h"
#include "wine/wingdi16.h"
#include "ldt.h"
#include "local.h"
#include "path.h"
#include <math.h>
...
...
include/ldt.h
deleted
100644 → 0
View file @
6c8edaa6
/*
* LDT copy
*
* Copyright 1995 Alexandre Julliard
*/
#ifndef __WINE_LDT_H
#define __WINE_LDT_H
#include "windef.h"
#include "wine/library.h"
#define __AHSHIFT 3
/* don't change! */
#define __AHINCR (1 << __AHSHIFT)
/* Convert a segmented ptr (16:16) to a linear (32) pointer */
#define PTR_SEG_OFF_TO_LIN(seg,off) \
((void*)((char*)wine_ldt_copy.base[LOWORD(seg) >> __AHSHIFT] + (unsigned int)(off)))
#define PTR_REAL_TO_LIN(seg,off) \
((void*)(((unsigned int)(seg) << 4) + LOWORD(off)))
#define PTR_SEG_TO_LIN(ptr) \
PTR_SEG_OFF_TO_LIN(SELECTOROF(ptr),OFFSETOF(ptr))
#define PTR_SEG_OFF_TO_SEGPTR(seg,off) \
((SEGPTR)MAKELONG(off,seg))
#define PTR_SEG_OFF_TO_HUGEPTR(seg,off) \
PTR_SEG_OFF_TO_SEGPTR( (seg) + (HIWORD(off) << __AHSHIFT), LOWORD(off) )
extern
UINT
W32S_offset
;
#define W32S_APP2WINE(addr) ((addr)? (DWORD)(addr) + W32S_offset : 0)
#define W32S_WINE2APP(addr) ((addr)? (DWORD)(addr) - W32S_offset : 0)
#define FIRST_LDT_ENTRY_TO_ALLOC 17
#define IS_SELECTOR_FREE(sel) (!(wine_ldt_copy.flags[LOWORD(sel) >> __AHSHIFT] & WINE_LDT_FLAGS_ALLOCATED))
/* Determine if sel is a system selector (i.e. not managed by Wine) */
#define IS_SELECTOR_SYSTEM(sel) \
(!((sel) & 4) || ((LOWORD(sel) >> __AHSHIFT) < FIRST_LDT_ENTRY_TO_ALLOC))
#define IS_SELECTOR_32BIT(sel) \
(IS_SELECTOR_SYSTEM(sel) || (wine_ldt_copy.flags[LOWORD(sel) >> __AHSHIFT] & WINE_LDT_FLAGS_32BIT))
#endif
/* __WINE_LDT_H */
include/miscemu.h
View file @
db0747d0
...
...
@@ -8,7 +8,7 @@
#define __WINE_MISCEMU_H
#include "winnt.h"
#include "
ldt
.h"
#include "
selectors
.h"
#include "wine/windef16.h"
/* msdos/dosconf.c */
...
...
@@ -248,6 +248,9 @@ extern void WINAPI XMS_Handler(CONTEXT86*);
/* misc/aspi.c */
extern
void
ASPI_DOS_HandleInt
(
CONTEXT86
*
context
);
#define PTR_REAL_TO_LIN(seg,off) \
((void*)(((unsigned int)(seg) << 4) + LOWORD(off)))
/* NOTE: Interrupts might get called from three modes: real mode, 16-bit, and
* (via DeviceIoControl) 32-bit. For automatic conversion of pointer
* parameters, interrupt handlers should use CTX_SEG_OFF_TO_LIN with
...
...
@@ -265,7 +268,7 @@ extern void ASPI_DOS_HandleInt(CONTEXT86 *context);
*/
#define CTX_SEG_OFF_TO_LIN(context,seg,off) \
(ISV86(context) ? PTR_REAL_TO_LIN((seg),(off)) : \
(!seg || IS_SELECTOR_SYSTEM(seg))? (void *)(off) :
PTR_SEG_OFF_TO_LIN((seg),LOWORD(off
)))
(!seg || IS_SELECTOR_SYSTEM(seg))? (void *)(off) :
MapSL(MAKESEGPTR((seg),(off)
)))
#define INT_BARF(context,num) \
ERR( "int%x: unknown/not implemented parameters:\n" \
...
...
include/selectors.h
View file @
db0747d0
...
...
@@ -8,35 +8,25 @@
#define __WINE_SELECTORS_H
#include "windef.h"
#include "
ldt
.h"
#include "
wine/library
.h"
extern
WORD
SELECTOR_AllocBlock
(
const
void
*
base
,
DWORD
size
,
unsigned
char
flags
);
extern
WORD
SELECTOR_ReallocBlock
(
WORD
sel
,
const
void
*
base
,
DWORD
size
);
extern
void
SELECTOR_FreeBlock
(
WORD
sel
);
#ifdef __i386__
# ifdef __GNUC__
# define __DEFINE_GET_SEG(seg) \
extern inline unsigned short __get_##seg(void) \
{ unsigned short res; __asm__("movw %%" #seg ",%w0" : "=r"(res)); return res; }
# define __DEFINE_SET_SEG(seg) \
extern inline void __set_##seg(int val) { __asm__("movw %w0,%%" #seg : : "r" (val)); }
# else
/* __GNUC__ */
# define __DEFINE_GET_SEG(seg) extern unsigned short __get_##seg(void);
# define __DEFINE_SET_SEG(seg) extern void __set_##seg(unsigned int);
# endif
/* __GNUC__ */
#else
/* __i386__ */
# define __DEFINE_GET_SEG(seg) static inline unsigned short __get_##seg(void) { return 0; }
# define __DEFINE_SET_SEG(seg)
/* nothing */
#endif
/* __i386__ */
__DEFINE_GET_SEG
(
cs
)
__DEFINE_GET_SEG
(
ds
)
__DEFINE_GET_SEG
(
es
)
__DEFINE_GET_SEG
(
fs
)
__DEFINE_GET_SEG
(
gs
)
__DEFINE_GET_SEG
(
ss
)
__DEFINE_SET_SEG
(
fs
)
__DEFINE_SET_SEG
(
gs
)
extern
UINT
W32S_offset
;
#define W32S_APP2WINE(addr) ((addr)? (DWORD)(addr) + W32S_offset : 0)
#define W32S_WINE2APP(addr) ((addr)? (DWORD)(addr) - W32S_offset : 0)
#define FIRST_LDT_ENTRY_TO_ALLOC 17
#define IS_SELECTOR_FREE(sel) (!(wine_ldt_copy.flags[LOWORD(sel) >> 3] & WINE_LDT_FLAGS_ALLOCATED))
/* Determine if sel is a system selector (i.e. not managed by Wine) */
#define IS_SELECTOR_SYSTEM(sel) \
(!((sel) & 4) || ((LOWORD(sel) >> 3) < FIRST_LDT_ENTRY_TO_ALLOC))
#define IS_SELECTOR_32BIT(sel) \
(IS_SELECTOR_SYSTEM(sel) || (wine_ldt_copy.flags[LOWORD(sel) >> 3] & WINE_LDT_FLAGS_32BIT))
#endif
/* __WINE_SELECTORS_H */
misc/lstr.c
View file @
db0747d0
...
...
@@ -22,7 +22,6 @@
#include "wine/unicode.h"
#include "winnls.h"
#include "heap.h"
#include "ldt.h"
#include "debugtools.h"
DEFAULT_DEBUG_CHANNEL
(
resource
);
...
...
msdos/dosaspi.c
View file @
db0747d0
...
...
@@ -5,7 +5,6 @@
#include "wine/winaspi.h"
#include "heap.h"
#include "debugtools.h"
#include "selectors.h"
#include "miscemu.h"
/* DOSMEM_* */
#include "callback.h"
#include "winerror.h"
...
...
msdos/int25.c
View file @
db0747d0
...
...
@@ -7,7 +7,6 @@
#include <fcntl.h>
#include <unistd.h>
#include "msdos.h"
#include "ldt.h"
#include "miscemu.h"
#include "drive.h"
#include "debugtools.h"
...
...
msdos/int26.c
View file @
db0747d0
...
...
@@ -6,7 +6,6 @@
#include <fcntl.h>
#include <unistd.h>
#include "msdos.h"
#include "ldt.h"
#include "miscemu.h"
#include "drive.h"
#include "debugtools.h"
...
...
objects/gdiobj.c
View file @
db0747d0
...
...
@@ -19,6 +19,7 @@
#include "brush.h"
#include "font.h"
#include "heap.h"
#include "local.h"
#include "options.h"
#include "palette.h"
#include "pen.h"
...
...
relay32/builtin32.c
View file @
db0747d0
...
...
@@ -21,7 +21,6 @@
#include "windef.h"
#include "wine/winbase16.h"
#include "wine/library.h"
#include "global.h"
#include "module.h"
#include "file.h"
#include "heap.h"
...
...
relay32/relay386.c
View file @
db0747d0
...
...
@@ -11,7 +11,6 @@
#include "config.h"
#include "winnt.h"
#include "selectors.h"
#include "stackframe.h"
#include "syslevel.h"
#include "module.h"
...
...
relay32/snoop.c
View file @
db0747d0
...
...
@@ -13,7 +13,6 @@
#include "winnt.h"
#include "heap.h"
#include "snoop.h"
#include "selectors.h"
#include "stackframe.h"
#include "debugtools.h"
#include "wine/exception.h"
...
...
scheduler/process.c
View file @
db0747d0
...
...
@@ -18,10 +18,8 @@
#include "drive.h"
#include "module.h"
#include "file.h"
#include "global.h"
#include "heap.h"
#include "task.h"
#include "ldt.h"
#include "thread.h"
#include "winerror.h"
#include "server.h"
...
...
scheduler/syslevel.c
View file @
db0747d0
...
...
@@ -9,7 +9,6 @@
#include "ntddk.h"
#include "syslevel.h"
#include "heap.h"
#include "selectors.h"
#include "stackframe.h"
#include "debugtools.h"
...
...
tools/winebuild/spec16.c
View file @
db0747d0
...
...
@@ -801,7 +801,6 @@ void BuildGlue( FILE *outfile, FILE *infile )
fprintf
(
outfile
,
"/* File generated automatically from %s; do not edit! */
\n\n
"
,
input_file_name
);
fprintf
(
outfile
,
"#include
\"
builtin16.h
\"\n
"
);
fprintf
(
outfile
,
"#include
\"
stackframe.h
\"\n\n
"
);
fprintf
(
outfile
,
"extern WORD WINAPI wine_call_to_16_word( FARPROC16 target, INT nArgs );
\n
"
);
...
...
win32/except.c
View file @
db0747d0
...
...
@@ -27,7 +27,6 @@
#include "winerror.h"
#include "ntddk.h"
#include "wine/exception.h"
#include "selectors.h"
#include "callback.h"
#include "thread.h"
#include "stackframe.h"
...
...
windows/dce.c
View file @
db0747d0
...
...
@@ -24,7 +24,6 @@
#include "gdi.h"
#include "region.h"
#include "heap.h"
#include "local.h"
#include "user.h"
#include "debugtools.h"
#include "windef.h"
...
...
windows/nonclient.c
View file @
db0747d0
...
...
@@ -20,7 +20,6 @@
#include "hook.h"
#include "nonclient.h"
#include "queue.h"
#include "selectors.h"
#include "tweak.h"
#include "debugtools.h"
#include "options.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