Ignore:
Timestamp:
Nov 1, 1999, 12:57:09 AM (26 years ago)
Author:
bird
Message:

Updated option/argument handling.
Corrected a few bugs.

File:
1 edited

Legend:

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

    r1467 r1535  
    1 /* $Id: options.h,v 1.2 1999-10-27 02:02:57 bird Exp $
     1/* $Id: options.h,v 1.3 1999-10-31 23:57:04 bird Exp $
    22 *
    33 * Options.
     
    1919#define KF_SMP      0x00000001UL
    2020
     21/* fPE */
     22#define FLAGS_PE_NOT        0x00000000UL
     23#define FLAGS_PE_PE2LX      0x00000001UL
     24#define FLAGS_PE_PE         0x00000002UL
     25#define FLAGS_PE_MIXED      0x00000003UL
     26
     27/* ulInfoLevel */
     28#define INFOLEVEL_QUIET      0x00000000UL
     29#define INFOLEVEL_ERROR      0x00000001UL
     30#define INFOLEVEL_WARNING    0x00000002UL
     31#define INFOLEVEL_INFO       0x00000003UL
     32#define INFOLEVEL_INFOALL    0x00000004UL
     33
    2134/* 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;
     35#define SET_OPTIONS_TO_DEFAULT(o)           \
     36            o.fQuiet      = FALSE;          \
     37            o.usCom       = OUTPUT_COM2;    \
     38            o.fLogging    = FALSE;          \
     39            o.fKernel     = KF_UNI;         \
     40            o.ulBuild     = ~0UL;           \
     41            o.usVerMajor  = ~0;             \
     42            o.usVerMinor  = ~0;             \
     43            o.fPE         = FLAGS_PE_PE2LX; \
     44            o.ulInfoLevel = INFOLEVEL_QUIET;\
     45            o.fElf        = FALSE;          \
     46            o.fScript     = FALSE;          \
     47            o.fNoLoader   = FALSE;          \
     48            o.cbHeap      = 0x100000; /* 1MB */
    3049
    3150
     
    3655struct options
    3756{
    38     //*************/
    3957    /** @cat misc */
    40     //*************/
    41     BOOL        fQuiet;              /* quiet initialization */
     58    BOOL        fQuiet;              /* Quiet initialization. */
     59
     60    /** @cat logging options */
    4261    USHORT      usCom;               /* Output port no. */
     62    BOOL        fLogging;            /* Logging. */
    4363
    44     //************************/
    45     /** @cat logging options */
    46     //************************/
    47     BOOL        fLogging;            /* logging */
    48 
    49     //*************************/
    5064    /** @cat kernel selection */
    51     //*************************/
    52     ULONG       fKernel;            /* smp or uni kernel */
    53     ULONG       ulBuild;            /* kernel build */
     65    ULONG       fKernel;            /* Smp or uni kernel. */
     66    ULONG       ulBuild;            /* Kernel build. */
    5467    USHORT      usVerMajor;         /* OS/2 major ver - 20 */
    5568    USHORT      usVerMinor;         /* OS/2 minor ver - 30,40 */
    5669
    57     //******************************************************/
    58     /** @cat Options affecting the generated LX executable */
    59     //******************************************************/
    60     /* none yet... */
     70    /** @cat Options affecting the generated LX executables */
     71    BOOL        fPE;                /* Flags set the type of conversion. */
     72    ULONG       ulInfoLevel;        /* Pe2Lx InfoLevel. */
     73
     74    /** @cat Options affecting the generated ELF executables */
     75    BOOL        fElf;               /* Elf flags. */
     76
     77    /** @cat Options affecting the script executables */
     78    BOOL        fScript;            /* Script flags. */
     79
     80    /** @cat Options affecting the script executables */
     81    BOOL        fNoLoader;          /* No loader stuff. */
     82
     83    /** @cat Options affecting the heap. */
     84    ULONG       cbHeap;             /* Initial heapsize. */
     85    #if 0
     86    ULONG       cbHeapMax;          /* Maximum heapsize. */
     87    ULONG       cbHeapResident;     /* Initial residentheapsize. */
     88    ULONG       cbHeapMaxResident;  /* Maxiumem residentheapsize. */
     89    #endif
    6190};
    6291
Note: See TracChangeset for help on using the changeset viewer.