Changeset 2898 for trunk/src/win32k/include/options.h
- Timestamp:
- Feb 25, 2000, 7:19:24 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/include/options.h
r2849 r2898 1 /* $Id: options.h,v 1. 9 2000-02-21 15:59:21bird Exp $1 /* $Id: options.h,v 1.10 2000-02-25 18:15:06 bird Exp $ 2 2 * 3 3 * Options. … … 16 16 *******************************************************************************/ 17 17 /* fKernel */ 18 #define KF_UNI 0x00000000UL19 #define KF_SMP 0x00000001UL18 #define KF_UNI 0x00000000UL 19 #define KF_SMP 0x00000001UL 20 20 21 21 /* fPE */ … … 26 26 27 27 /* ulInfoLevel */ 28 #define INFOLEVEL_QUIET 29 #define INFOLEVEL_ERROR 30 #define INFOLEVEL_WARNING 31 #define INFOLEVEL_INFO 32 #define INFOLEVEL_INFOALL 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 33 34 34 /* default heapsizes */ 35 #define CB_SWP_INIT (1024*512) 36 #define CB_SWP_MAX (1024*1024*16) 37 #define CB_RES_INIT (1024*256) 38 #define CB_RES_MAX (1024*1024*10) 35 #define CB_SWP_INIT (1024*512) /* 512KB */ 36 #define CB_SWP_MAX (1024*1024*16) /* 16MB */ 37 #define CB_RES_INIT (1024*256) /* 256KB */ 38 #define CB_RES_MAX (1024*1024*10) /* 10MB */ 39 39 40 /* default assignments */ 41 #define DEFAULT_OPTION_ASSIGMENTS \ 42 {FALSE, /* fQuiet */ \ 43 OUTPUT_COM2, /* usCom */ \ 44 FALSE, /* fLogging */ \ 45 KF_UNI, /* fKernel */ \ 46 ~0UL, /* ulBuild */ \ 47 (unsigned short)~0, /* usVerMajor */ \ 48 (unsigned short)~0, /* usVerMinor */ \ 49 FLAGS_PE_PE2LX, /* fPE */ \ 50 INFOLEVEL_QUIET, /* ulInfoLevel */ \ 51 FALSE, /* fElf */ \ 52 TRUE, /* fScript */ \ 53 FALSE, /* fNoLoader */ \ 54 CB_SWP_INIT, /* cbSwpHeapInit */ \ 55 CB_SWP_MAX, /* cbSwpHeapMax */ \ 56 CB_RES_INIT, /* cbResHeapInit */ \ 57 CB_RES_MAX} /* cbResHeapMax */ 40 58 41 /* Set defaults. */42 #define SET_OPTIONS_TO_DEFAULT(o) \43 o.fQuiet = FALSE; \44 o.usCom = OUTPUT_COM2; \45 o.fLogging = FALSE; \46 o.fKernel = KF_UNI; \47 o.ulBuild = ~0UL; \48 o.usVerMajor = (unsigned short)~0; \49 o.usVerMinor = (unsigned short)~0; \50 o.fPE = FLAGS_PE_PE2LX; \51 o.ulInfoLevel = INFOLEVEL_QUIET; \52 o.fElf = FALSE; \53 o.fScript = TRUE; \54 o.fNoLoader = FALSE; \55 o.cbSwpHeapInit = CB_SWP_INIT; \56 o.cbSwpHeapMax = CB_SWP_MAX; \57 o.cbResHeapInit = CB_RES_INIT; \58 o.cbResHeapMax = CB_RES_MAX;59 59 60 60 … … 63 63 *******************************************************************************/ 64 64 /** Option struct */ 65 #pragma pack(4) 65 66 struct options 66 67 { 67 68 /** @cat misc */ 68 BOOLfQuiet; /* Quiet initialization. */69 ULONG fQuiet; /* Quiet initialization. */ 69 70 70 71 /** @cat logging options */ 71 72 USHORT usCom; /* Output port no. */ 72 BOOLfLogging; /* Logging. */73 ULONG fLogging; /* Logging. */ 73 74 74 75 /** @cat kernel selection */ … … 79 80 80 81 /** @cat Options affecting the generated LX executables */ 81 BOOLfPE; /* Flags set the type of conversion. */82 ULONG fPE; /* Flags set the type of conversion. */ 82 83 ULONG ulInfoLevel; /* Pe2Lx InfoLevel. */ 83 84 84 85 /** @cat Options affecting the generated ELF executables */ 85 BOOLfElf; /* Elf flags. */86 ULONG fElf; /* Elf flags. */ 86 87 87 88 /** @cat Options affecting the script executables */ 88 BOOLfScript; /* Script flags. */89 ULONG fScript; /* Script flags. */ 89 90 90 91 /** @cat Options affecting the script executables */ 91 BOOLfNoLoader; /* No loader stuff. */92 ULONG fNoLoader; /* No loader stuff. */ 92 93 93 94 /** @cat Options affecting the heap. */ … … 97 98 ULONG cbResHeapMax; /* Maxiumem residentheapsize. */ 98 99 }; 100 #pragma pack() 101 99 102 100 103 /******************************************************************************* 101 104 * Global Variables * 102 105 *******************************************************************************/ 103 extern struct options options; /* defined in d32globals.c */ 106 extern struct options options; /* defined in d32globals.c */ 107 #if defined(__IBMC__) || defined(__IBMCPP__) 108 #pragma map( options , "_options" ) 109 #endif 104 110 105 111 #endif
Note:
See TracChangeset
for help on using the changeset viewer.