From a7ce2abc9db977bda3eaf218a17fb54ea7fbf9d9 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 18 Nov 2003 00:16:25 +0000 Subject: [PATCH] Removed include/selectors.h. --- dlls/kernel/global16.c | 2 +- dlls/kernel/instr.c | 1 - dlls/kernel/kernel_private.h | 6 ++++++ dlls/kernel/local16.c | 1 - dlls/kernel/selector.c | 2 +- dlls/kernel/thunk.c | 2 +- dlls/kernel/wowthunk.c | 1 - include/selectors.h | 34 ---------------------------------- 8 files changed, 9 insertions(+), 40 deletions(-) delete mode 100644 include/selectors.h diff --git a/dlls/kernel/global16.c b/dlls/kernel/global16.c index 76641e5ff7f..8706471ea9c 100644 --- a/dlls/kernel/global16.c +++ b/dlls/kernel/global16.c @@ -41,9 +41,9 @@ #include "ntstatus.h" #include "global.h" #include "toolhelp.h" -#include "selectors.h" #include "miscemu.h" #include "stackframe.h" +#include "kernel_private.h" #include "wine/debug.h" #include "winerror.h" diff --git a/dlls/kernel/instr.c b/dlls/kernel/instr.c index 35b0d3fd4de..4fcff3af9ea 100644 --- a/dlls/kernel/instr.c +++ b/dlls/kernel/instr.c @@ -28,7 +28,6 @@ #include "excpt.h" #include "module.h" #include "miscemu.h" -#include "selectors.h" #include "wine/debug.h" #include "kernel_private.h" #include "thread.h" diff --git a/dlls/kernel/kernel_private.h b/dlls/kernel/kernel_private.h index c53274e228a..b54d1e0e85b 100644 --- a/dlls/kernel/kernel_private.h +++ b/dlls/kernel/kernel_private.h @@ -56,6 +56,12 @@ extern VOID SYSLEVEL_CheckNotLevel( INT level ); extern DWORD INSTR_EmulateInstruction( EXCEPTION_RECORD *rec, CONTEXT86 *context ); extern void INSTR_CallBuiltinHandler( CONTEXT86 *context, BYTE intnum ); +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 ); +#define IS_SELECTOR_32BIT(sel) \ + (wine_ldt_is_system(sel) || (wine_ldt_copy.flags[LOWORD(sel) >> 3] & WINE_LDT_FLAGS_32BIT)) + /* this structure is always located at offset 0 of the DGROUP segment */ #include "pshpack1.h" typedef struct diff --git a/dlls/kernel/local16.c b/dlls/kernel/local16.c index 5015b31a56f..adee4fdfabb 100644 --- a/dlls/kernel/local16.c +++ b/dlls/kernel/local16.c @@ -39,7 +39,6 @@ #include "global.h" #include "module.h" #include "stackframe.h" -#include "selectors.h" #include "toolhelp.h" #include "kernel_private.h" #include "wine/debug.h" diff --git a/dlls/kernel/selector.c b/dlls/kernel/selector.c index 89b4ff0c2c3..cae4e5698dd 100644 --- a/dlls/kernel/selector.c +++ b/dlls/kernel/selector.c @@ -26,9 +26,9 @@ #include "winerror.h" #include "wine/winbase16.h" #include "miscemu.h" -#include "selectors.h" #include "wine/server.h" #include "wine/debug.h" +#include "kernel_private.h" #include "toolhelp.h" WINE_DEFAULT_DEBUG_CHANNEL(selector); diff --git a/dlls/kernel/thunk.c b/dlls/kernel/thunk.c index 88bf9ee6a89..816be2ebcc0 100644 --- a/dlls/kernel/thunk.c +++ b/dlls/kernel/thunk.c @@ -42,9 +42,9 @@ #include "wine/library.h" #include "flatthunk.h" #include "module.h" -#include "selectors.h" #include "stackframe.h" #include "task.h" +#include "kernel_private.h" WINE_DEFAULT_DEBUG_CHANNEL(thunk); diff --git a/dlls/kernel/wowthunk.c b/dlls/kernel/wowthunk.c index 9df980f92c5..64e479f0ce8 100644 --- a/dlls/kernel/wowthunk.c +++ b/dlls/kernel/wowthunk.c @@ -35,7 +35,6 @@ #include "file.h" #include "task.h" #include "miscemu.h" -#include "selectors.h" #include "stackframe.h" #include "kernel_private.h" #include "wine/exception.h" diff --git a/include/selectors.h b/include/selectors.h deleted file mode 100644 index 9c8cd1af202..00000000000 --- a/include/selectors.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Selector definitions - * - * Copyright 1995 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_SELECTORS_H -#define __WINE_SELECTORS_H - -#include -#include - -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 ); - -#define IS_SELECTOR_32BIT(sel) \ - (wine_ldt_is_system(sel) || (wine_ldt_copy.flags[LOWORD(sel) >> 3] & WINE_LDT_FLAGS_32BIT)) - -#endif /* __WINE_SELECTORS_H */