home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples1.exe / smc / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.2 KB  |  51 lines

  1. /*****************************************************************************/
  2. #ifndef _CONFIG_H_
  3. #define _CONFIG_H_
  4. /*****************************************************************************/
  5.  
  6. enum compilerPhases
  7. {
  8.     CPH_NONE,
  9.     CPH_START,
  10.     CPH_PARSING,
  11. };
  12.  
  13. struct  compConfig
  14. {
  15.     compilerPhases  ccCurPhase;     // determines which options are allowed
  16.  
  17.     #define CMDOPT(name, type, phase, defval) type cc##name;
  18.     #include "options.h"
  19.  
  20.     BYTE            ccWarning[WRNcountWarn];
  21. };
  22.  
  23. enum    enumConfig
  24. {
  25.     #define CMDOPT(name, type, phase, defval) CC_##name,
  26.     #include "options.h"
  27.  
  28.     CC_COUNT
  29. };
  30.  
  31. // The table holding the default value (and other info) about each compiler
  32. // option is initialized (i.e. filled with values) in the macros.cpp file.
  33.  
  34. struct  optionDesc
  35. {
  36.     unsigned            odValueOffs :16;
  37.     unsigned            odValueSize :8;
  38.  
  39.     unsigned            odMaxPhase  :8;
  40.  
  41.     int                 odDefault;
  42. };
  43.  
  44. #ifndef __SMC__
  45. extern  optionDesc      optionInfo[CC_COUNT];
  46. #endif
  47.  
  48. /*****************************************************************************/
  49. #endif
  50. /*****************************************************************************/
  51.