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

  1. #ifndef CMDOPT
  2. #error  Need to define CMDOPT before including this file!
  3. #endif
  4.  
  5. //     basename     type           max. phase   default
  6.  
  7. CMDOPT(Quiet      , bool         , CPH_NONE   , false      )// -q     quiet    mode
  8. CMDOPT(SafeMode   , bool         , CPH_NONE   , false      )// -S     typesafe mode
  9. CMDOPT(Pedantic   , bool         , CPH_NONE   , false      )// -P     pedantic mode
  10. CMDOPT(ChkUseDef  , bool         , CPH_NONE   , true       )// -U     flag unitialized local variable use
  11.  
  12. CMDOPT(BaseLibs   , const char * , CPH_NONE   , ""         )// -s     import MSCORLIB.DLL metadata
  13. CMDOPT(SuckList   , StrList      , CPH_NONE   , NULL       )// -mname import additional   metadata
  14. CMDOPT(SuckLast   , StrList      , CPH_NONE   , NULL       )// -mname import additional   metadata
  15. CMDOPT(PathList   , StrList      , CPH_NONE   , NULL       )// -spath additional path to search for MD
  16. CMDOPT(PathLast   , StrList      , CPH_NONE   , NULL       )// -spath additional path to search for MD
  17.  
  18. CMDOPT(OutBase    , unsigned     , CPH_NONE   , 0          )// -b     output file virtual addr base
  19. CMDOPT(OutSize    , unsigned     , CPH_NONE   , 0          )// -b@xxx output file max. size
  20. CMDOPT(OutDLL     , bool         , CPH_NONE   , false      )// -d     output a DLL (not an EXE)
  21.  
  22. CMDOPT(Subsystem  , unsigned     , CPH_NONE   , IMAGE_SUBSYSTEM_WINDOWS_CUI)// -W Windows subsystem.
  23.  
  24. CMDOPT(NoDefines  , bool         , CPH_NONE   , false      )// -u     ignore #define directives
  25. CMDOPT(MacList    , StrList      , CPH_NONE   , NULL       )// -M     macro definition(s) - list head
  26. CMDOPT(MacLast    , StrList      , CPH_NONE   , NULL       )// -M     macro definition(s) - list tail
  27.  
  28. CMDOPT(StrValCmp  , bool         , CPH_PARSING, false      )// -r     string value compares
  29.  
  30. CMDOPT(OldStyle   , bool         , CPH_PARSING, false      )// -c     default to old-style declararions
  31.  
  32. CMDOPT(NewMDnames , bool         , CPH_NONE   , true       )// -N     new metadata naming convention
  33.  
  34. CMDOPT(Asserts    , unsigned char, CPH_NONE   , 0          )// -A     enable asserts
  35.  
  36. CMDOPT(AlignVal   , unsigned char, CPH_NONE   , sizeof(int))// -a#    default alignment
  37.  
  38. CMDOPT(GenDebug   , bool         , CPH_NONE   , false      )// -Zi    generate full debug info
  39. CMDOPT(LineNums   , bool         , CPH_NONE   , false      )// -Zl    generate line# info
  40. CMDOPT(ParamNames , bool         , CPH_NONE   , false      )// -Zn    generate parameter names
  41.  
  42. CMDOPT(OutFileName, const char * , CPH_NONE   , NULL       )// -O     output file name
  43.  
  44. #ifdef  DEBUG
  45. CMDOPT(Verbose    , int          , CPH_NONE   , false      )// -v     verbose
  46. CMDOPT(DispCode   , bool         , CPH_NONE   , false      )// -p     display generated IL code
  47. CMDOPT(DispILcd   , bool         , CPH_NONE   , false      )// -pd    display generated IL code (detailed)
  48. #endif
  49.  
  50. CMDOPT(OutGUID    , GUID         , CPH_NONE   , NULL       )// -CG    PE image GUID
  51. CMDOPT(OutName    , const char * , CPH_NONE   , NULL       )// -CN    PE image name
  52. CMDOPT(RCfile     , const char * , CPH_NONE   , NULL       )// -CR    RC file to be added
  53. CMDOPT(MainCls    , const char * , CPH_NONE   , NULL       )// -CM    name of class with main method
  54. CMDOPT(SkipATC    , bool         , CPH_NONE   , false      )// -CS    ignore "@" comments
  55.  
  56. CMDOPT(ModList    , StrList      , CPH_NONE   , NULL       )// -zm    add module   to manifest
  57. CMDOPT(ModLast    , StrList      , CPH_NONE   , NULL       )// -zm    add module   to manifest
  58.  
  59. CMDOPT(MRIlist    , StrList      , CPH_NONE   , NULL       )// -zr    add resource to manifest
  60. CMDOPT(MRIlast    , StrList      , CPH_NONE   , NULL       )// -zr    add resource to manifest
  61.  
  62. #ifdef  OLD_IL
  63. CMDOPT(OILgen     , bool         , CPH_NONE   , false      )// -o     generate old IL
  64. CMDOPT(OILlink    , bool         , CPH_NONE   , true       )// -ol    generate old IL and link the result
  65. CMDOPT(OILkeep    , bool         , CPH_NONE   , false      )// -ok    generate old IL: keep the temp files
  66. CMDOPT(OILopt     , bool         , CPH_NONE   , false      )// -ox    generate old IL: max. opt for speed
  67. CMDOPT(OILopts    , bool         , CPH_NONE   , false      )// -os    generate old IL: max. opt for size
  68. CMDOPT(OILasm     , bool         , CPH_NONE   , false      )// -oa    generate old IL: create .asm file
  69. CMDOPT(OILcod     , bool         , CPH_NONE   , false      )// -oc    generate old IL: create .cod file
  70. CMDOPT(OILcgen    , const char * , CPH_NONE   , NULL       )// -og    path to  old IL code generator
  71. #endif
  72.  
  73. CMDOPT(RecDir     , bool         , CPH_NONE   , false      )// -R     recurse into source dirs
  74.  
  75. CMDOPT(WarnLvl    , signed char  , CPH_NONE   , 1          )// -w     warning level
  76. CMDOPT(WarnErr    , bool         , CPH_NONE   , false      )// -wx    warnings -> errors
  77.  
  78. CMDOPT(MaxErrs    , unsigned     , CPH_NONE   , 50         )// -n     max # of errors
  79.  
  80. CMDOPT(Assembly   , bool         , CPH_NONE   , true       )// -z     generate assembly
  81. CMDOPT(AsmNoPubTp , bool         , CPH_PARSING, false      )// -zt    don't include types in assembly
  82. CMDOPT(AsmNonCLS  , bool         , CPH_PARSING, false      )// -zn    assembly is non-compliant
  83.  
  84. CMDOPT(AmbigHack  , bool         , CPH_NONE   , false      )// -X     don't flag ambiguous using lookups
  85.  
  86. CMDOPT(AsynchIO   , bool         , CPH_NONE   , false      )// -i     overlapped file input
  87.  
  88. CMDOPT(Tgt64bit   , bool         , CPH_NONE   , false      )// -6     target 64-bit architecture
  89. CMDOPT(IntEnums   , bool         , CPH_NONE   , false      )// -e     map enums to ints
  90.  
  91. CMDOPT(TestMask   , unsigned     , CPH_PARSING, 0          )// -T     compiler testing
  92.  
  93. #undef  CMDOPT
  94.