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

perdroptions.h File Reference

Go to the source code of this file.

Compounds

struct  PeRdrOption

Functions

int ReadOptions (int argc, char **argv)

Variables

PeRdrOption options


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

PeRdrOption options
 

Definition at line 30 of file perdroptions.h.


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