Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

perdroption.cpp File Reference

#include "global.h"
#include "options.h"
#include "perdroptions.h"

Go to the source code of this file.

Functions

int ReadOptions (int argc, char **argv)

Variables

PeRdrOption options
option allOptions []


Function Documentation

int ReadOptions int    argc,
char **    argv
 

Definition at line 72 of file perdroption.cpp.

References PeRdrOption::disable3DNow, PeRdrOption::disableEnh3DNow, get_options(), PeRdrOption::showCode, PeRdrOption::showExports, PeRdrOption::showHeaders, PeRdrOption::showImports, PeRdrOption::showRelocations, and PeRdrOption::showResources.

Referenced by main().

00073 {
00074   // !!! use GNU getopt_long instead !!!
00075   int res = get_options(argc,argv,allOptions);
00076 
00077   // adjust option
00078   if (options.disable3DNow)
00079     options.disableEnh3DNow = true;
00080 
00081   if (!options.showHeaders && !options.showImports && !options.showRelocations 
00082                   && !options.showExports && !options.showCode
00083                   && !options.showResources)
00084   {
00085     options.showHeaders = true;
00086     options.showImports = true;
00087     options.showRelocations = true;
00088     options.showExports = true;
00089     options.showCode = true;
00090     options.showResources = true;
00091   }
00092             
00093   return res;
00094 }


Variable Documentation

option allOptions[] [static]
 

Initial value:

{
  { "b\0bytes\0",                &options.showBytes,       optionBool },
  { "\0disable-3dnow\0",         &options.disable3DNow,    optionBool },
  { "\0disable-enh3dnow\0",      &options.disableEnh3DNow, optionBool },
  { "\0disable-pentium3\0",      &options.disableP3,       optionBool },
  { "\0disable-athlon\0",        &options.disableAthlon,   optionBool },
  { "\0version\0",               &options.showVersion,     optionBool },
  { "\0help\0",                  &options.showHelp,        optionBool },
  { "\0show-priority\0",         &options.showPriority,    optionBool },
  { "\0raw-dump\0",              &options.rawDumping,      optionBool },
  { "\0extract-icon-resource\0", &options.extractIconRes,  optionBool },
  { "\0show-headers\0",          &options.showHeaders,     optionBool },
  { "\0show-imports\0",          &options.showImports,     optionBool },
  { "\0show-relocations\0",      &options.showRelocations, optionBool },
  { "\0show-exports\0",          &options.showExports,     optionBool },
  { "\0show-resources\0",        &options.showResources,   optionBool },
  { "\0show-code\0",             &options.showCode,        optionBool },
  { NULL,                        NULL,                     optionBool }
}

Definition at line 51 of file perdroption.cpp.

PeRdrOption options
 

Initial value:

 {
  false, 
  false, 
  false, 
  false, 
  false, 
  false, 
  false, 
  false, 
  false, 
  false, 
  false, 
  false, 
  false, 
  false, 
  false  
}

Definition at line 33 of file perdroption.cpp.


Generated on Mon Jan 13 22:20:35 2003 for perdr by doxygen1.2.15