windata.c
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C语言 代码 · 共 86 行
C
86 行
/****************************************************************************
*
* Open Watcom Project
*
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
*
* ========================================================================
*
* This file contains Original Code and/or Modifications of Original
* Code as defined in and that are subject to the Sybase Open Watcom
* Public License version 1.0 (the 'License'). You may not use this file
* except in compliance with the License. BY USING THIS FILE YOU AGREE TO
* ALL TERMS AND CONDITIONS OF THE LICENSE. A copy of the License is
* provided with the Original Code and Modifications, and is also
* available at www.sybase.com/developer/opensource.
*
* The Original Code and all software distributed under the License are
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND SYBASE AND ALL CONTRIBUTORS HEREBY DISCLAIM
* ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR
* NON-INFRINGEMENT. Please see the License for the specific language
* governing rights and limitations under the License.
*
* ========================================================================
*
* Description: Win386 extender data.
*
****************************************************************************/
#include <stddef.h>
#include <windows.h>
#include "winext.h"
char MsgTitle[] = "Open Watcom Win386";
WORD DPL,Has87,HasWGod;
DWORD SaveSP = 0;
WORD DataSelector = 0;
WORD StackSelector = 0;
WORD Int21Selector = 0;
WORD MyDataSelector = 0;
DWORD CodeSelectorBase = 0L;
DWORD DataSelectorBase = 0L;
DWORD DataHandle = 0L;
DWORD StackSize = 0L;
DWORD ReturnCode = 0L;
DWORD EntryStackSave = 0L;
DWORD BaseAddr = 0L;
DWORD CodeLoadAddr = 0L;
DWORD _DLLEntryAddr = 0L;
DWORD _WEPAddr = 0L;
DWORD EDataAddr = 0L;
addr_48 CodeEntry = {0L, 0};
addr_48 _32BitCallBackAddr = {0L, 0};
/*
* NOTE: The array of functions, Glue, must contain all of the thunk
* layers that appear in winglue.asm (generated by conv.exe in the
* conv subdirectory).
*/
extern void far Invoke16BitFunction();
extern void far __Int21();
extern void far __Win16Thunk1();
extern void far __Win16Thunk2();
extern void far __Win16Thunk3();
extern void far __Win16Thunk4();
extern void far __Win16Thunk5();
extern void far __Win16Thunk6();
extern void far __Call16();
rtns Glue[] = {
{ Invoke16BitFunction },
{ __Int21 },
{ __Win16Thunk1 },
{ __Win16Thunk2 },
{ __Win16Thunk3 },
{ __Win16Thunk4 },
{ __Win16Thunk5 },
{ __Win16Thunk6 },
{ __Call16 },
};
short MaxGlueRoutines = sizeof( Glue ) / sizeof( rtns );
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?