source: trunk/src/win32k/include/options.h@ 1535

Last change on this file since 1535 was 1535, checked in by bird, 26 years ago

Updated option/argument handling.
Corrected a few bugs.

File size: 3.5 KB
Line 
1/* $Id: options.h,v 1.3 1999-10-31 23:57:04 bird Exp $
2 *
3 * Options.
4 *
5 * Copyright (c) 1998-1999 knut st. osmundsen
6 *
7 * Project Odin Software License can be found in LICENSE.TXT
8 *
9 */
10
11#ifndef _options_h_
12#define _options_h_
13
14/*******************************************************************************
15* Defined Constants And Macros *
16*******************************************************************************/
17/* fKernel */
18#define KF_UNI 0x00000000UL
19#define KF_SMP 0x00000001UL
20
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
34/* Set defaults. */
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 */
49
50
51/*******************************************************************************
52* Structures and Typedefs *
53*******************************************************************************/
54/** Option struct */
55struct options
56{
57 /** @cat misc */
58 BOOL fQuiet; /* Quiet initialization. */
59
60 /** @cat logging options */
61 USHORT usCom; /* Output port no. */
62 BOOL fLogging; /* Logging. */
63
64 /** @cat kernel selection */
65 ULONG fKernel; /* Smp or uni kernel. */
66 ULONG ulBuild; /* Kernel build. */
67 USHORT usVerMajor; /* OS/2 major ver - 20 */
68 USHORT usVerMinor; /* OS/2 minor ver - 30,40 */
69
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
90};
91
92
93/*******************************************************************************
94* Global Variables *
95*******************************************************************************/
96extern struct options options; /* defined in d32globals.c */
97
98#endif
99
Note: See TracBrowser for help on using the repository browser.