Ignore:
Timestamp:
Oct 27, 1999, 4:03:01 AM (26 years ago)
Author:
bird
Message:

Corrections to make win32k work.
(And now it does work, at least at my test machine...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/include/options.h

    r847 r1467  
    1 /* $Id: options.h,v 1.1 1999-09-06 02:19:59 bird Exp $
     1/* $Id: options.h,v 1.2 1999-10-27 02:02:57 bird Exp $
     2 *
    23 * Options.
    34 *
    45 * Copyright (c) 1998-1999 knut st. osmundsen
     6 *
     7 * Project Odin Software License can be found in LICENSE.TXT
    58 *
    69 */
     
    912#define _options_h_
    1013
     14/*******************************************************************************
     15*   Defined Constants And Macros                                               *
     16*******************************************************************************/
    1117/* fKernel */
    1218#define KF_UNI      0x00000000UL
    1319#define KF_SMP      0x00000001UL
    1420
     21/* Set defaults. */
     22#define SET_OPTIONS_TO_DEFAULT(o)            \
     23            o.fQuiet         = 0;            \
     24            o.usCom          = OUTPUT_COM2;  \
     25            o.fLogging       = 0;            \
     26            o.ulBuild        = ~0;           \
     27            o.fKernel        = KF_UNI;       \
     28            o.usVerMajor     = ~0;           \
     29            o.usVerMinor     = ~0;
    1530
     31
     32/*******************************************************************************
     33*   Structures and Typedefs                                                    *
     34*******************************************************************************/
    1635/** Option struct */
    1736struct options
     
    3958    /** @cat Options affecting the generated LX executable */
    4059    //******************************************************/
    41     int noExeTIBFix;        /* ask win32k for initstuff (win32k only) */
    42     int AlignSections;      /* don't align sections */
    43     //int TIBFixObject;       /* make a TIBFix object - AlignSections = 0 */
    44 
    45     int lxoffset;           /* if true use the fixed LXOFFSET if not ulPEOffset */
    46     int ourstub;            /* our DOS stub or the one from the PE-file */
     60    /* none yet... */
    4761};
    4862
    4963
    50 extern struct options options;
    51 
    52 #define SET_OPTIONS_TO_DEFAULT(o)            \
    53             o.fQuiet         = 0;            \
    54             o.usCom          = OUTPUT_COM2;  \
    55             o.fLogging       = 0;            \
    56             o.ulBuild        = 8259;         \
    57             o.fKernel        = KF_UNI;       \
    58             o.usVerMajor     = 20;           \
    59             o.usVerMinor     = 30;           \
    60             o.noExeTIBFix    = 0;            \
    61             o.AlignSections  = 1;            \
    62             o.lxoffset       = 0;            \
    63             o.ourstub        = 0
    64 
    65 
    66 #define SET_OPTIONS_WIN32K(o)                \
    67             SET_OPTIONS_TO_DEFAULT(o)
    68 
    69 #define SET_OPTIONS_WIN32K_SAFE(o)           \
    70             SET_OPTIONS_TO_DEFAULT(o);       \
    71             o.noExeTIBFix    = 0;            \
    72             o.AlignSections  = 1
    73 
    74 
    75 #define SET_OPTIONS_PE2LX(o)                 \
    76             SET_OPTIONS_TO_DEFAULT(o);       \
    77             o.fLogging       = 1;            \
    78             o.noExeTIBFix    = 0;            \
    79             o.AlignSections  = 1;            \
    80             o.lxoffset       = 0;            \
    81             o.ourstub        = 0
     64/*******************************************************************************
     65*   Global Variables                                                           *
     66*******************************************************************************/
     67extern struct options options; /* defined in d32globals.c */
    8268
    8369#endif
Note: See TracChangeset for help on using the changeset viewer.