1 | /* $Id: options.h,v 1.2 1999-10-27 02:02:57 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 | /* 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;
|
---|
30 |
|
---|
31 |
|
---|
32 | /*******************************************************************************
|
---|
33 | * Structures and Typedefs *
|
---|
34 | *******************************************************************************/
|
---|
35 | /** Option struct */
|
---|
36 | struct options
|
---|
37 | {
|
---|
38 | //*************/
|
---|
39 | /** @cat misc */
|
---|
40 | //*************/
|
---|
41 | BOOL fQuiet; /* quiet initialization */
|
---|
42 | USHORT usCom; /* Output port no. */
|
---|
43 |
|
---|
44 | //************************/
|
---|
45 | /** @cat logging options */
|
---|
46 | //************************/
|
---|
47 | BOOL fLogging; /* logging */
|
---|
48 |
|
---|
49 | //*************************/
|
---|
50 | /** @cat kernel selection */
|
---|
51 | //*************************/
|
---|
52 | ULONG fKernel; /* smp or uni kernel */
|
---|
53 | ULONG ulBuild; /* kernel build */
|
---|
54 | USHORT usVerMajor; /* OS/2 major ver - 20 */
|
---|
55 | USHORT usVerMinor; /* OS/2 minor ver - 30,40 */
|
---|
56 |
|
---|
57 | //******************************************************/
|
---|
58 | /** @cat Options affecting the generated LX executable */
|
---|
59 | //******************************************************/
|
---|
60 | /* none yet... */
|
---|
61 | };
|
---|
62 |
|
---|
63 |
|
---|
64 | /*******************************************************************************
|
---|
65 | * Global Variables *
|
---|
66 | *******************************************************************************/
|
---|
67 | extern struct options options; /* defined in d32globals.c */
|
---|
68 |
|
---|
69 | #endif
|
---|
70 |
|
---|