globals.h

来自「开放源码的编译器open watcom 1.6.0版的源代码」· C头文件 代码 · 共 91 行

H
91
字号
/****************************************************************************
*
*                            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:  WHEN YOU FIGURE OUT WHAT THIS FILE DOES, PLEASE
*               DESCRIBE IT HERE!
*
****************************************************************************/


#ifdef export
#define GLOB       /**/
#else
#define GLOB       extern
#endif

#define SECTOR_SIZE     512
#define MAX_HEADROOM    (4*1024)

/* linker global variables */
GLOB outfilelist *  OutFiles;       // list of files which will be written to
GLOB char *         MapFName;       /* name of map file                     */
GLOB f_handle       MapFile;        /* handle of map file                   */
GLOB targ_addr      StackAddr;      /* initial stack address                */
GLOB linkflag       LinkFlags;      /* flags to indicate presence of parms  */
GLOB stateflag      LinkState;      /* flags to indicate linker state */
GLOB mapflag        MapFlags;       /* flags dealing with the map file */
GLOB file_list *    ObjLibFiles;   /* list of library files (for searching)*/
GLOB mod_entry *    LibModules;    /* library modules (for processing)     */
GLOB group_entry *  Groups;         /* pointer to defined groups            */
GLOB group_entry *  AbsGroups;     /* pointer to defined absolute groups   */
GLOB group_entry *  OvlGroup;       /* pointer to group for overlay table   */
GLOB group_entry *  DataGroup;      /* pointer to DGROUP */
GLOB group_entry *  IDataGroup;     /* pointer to .idata */
GLOB seg_leader  *  OvlSeg;         /* pointer to seg_leader for overlaytab */
GLOB byte *         ObjBuff;        /* offset into object buffer            */
GLOB mod_entry  *   CurrMod;        /* pointer to current mod_entry struct  */
GLOB byte *         EOObjRec;       /* end of object buffer                 */
GLOB targ_addr      CurrLoc;        /* current location pointer             */
GLOB int            RecNum;         /* record number of the obj file        */
GLOB seg_leader *   CurrentSeg;    /* current segment being allocated       */
GLOB section *      Root;           /* pointer to root information          */
GLOB section *      CurrSect;       /* current section for file processing  */
GLOB offset         StackSize;      /* size of stack                        */
GLOB list_of_names *OvlClasses;    /* list of classes to be overlayed       */
GLOB int            OvlNum;         /* current overlay number               */
GLOB vecnode *      OvlVectors;    /* point to overlay vector notes         */
GLOB targ_addr      OvltabAddr;     /* address of overlay tables */
GLOB unsigned int   OvltabSize;     /* size of overlay tables */
GLOB int            VecNum;         /* number of vectors so far             */
GLOB section *      NonSect;        /* non-overlay-class section            */
GLOB char *         OvlFName;       /* points to file name for overlays     */
GLOB path_entry *   Path;           /* path for object files                */
GLOB path_entry *   LibPath;        /* path for library files               */
GLOB byte *         TokBuff;        // Multi-purpose large buffer
GLOB unsigned       TokSize;        // size of above buffer
GLOB offset         PackCodeLimit;  // Maximum size of a packed code seg
GLOB offset         PackDataLimit;  // Maximum size of a packed data seg
GLOB symbol *       HeadSym;        /* head of symbol table list */
GLOB byte           DBIFlag;
GLOB struct fmt_data FmtData;       /* format specific data */
GLOB obj_format     ObjFormat;
GLOB f_handle       TempFile;
GLOB mod_entry *    FakeModule;     // Module containing all the extra sections
GLOB unsigned_32    NumImports;
GLOB unsigned_32    NumExports;

#undef GLOB

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?