Make your own free website on Tripod.com
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CheckRef Struct Reference

List of all members.

Public Methods

 CheckRef ()
void operator() (const IstrReference &ref)

Public Attributes

int count

Constructor & Destructor Documentation

CheckRef::CheckRef   [inline]
 

Definition at line 73 of file codeprn.cpp.

References count.

00073 :count(0) {};


Member Function Documentation

void CheckRef::operator() const IstrReference   ref [inline]
 

Definition at line 74 of file codeprn.cpp.

References count, IstrReference::direct, FLOW_CALL, FLOW_CJUMP, FLOW_JUMP, StartBeginComment(), StartComment(), IstrReference::to, and IstrReference::type.

00075   {
00076     if (!ref.direct)
00077     {
00078       if (count==0)
00079       {
00080         StartBeginComment();
00081         printf("Referenced by a (U)nconditional or (C)onditional Jump "
00082                "or (c)all at Address:");
00083       }
00084       char type = '?';
00085       switch(ref.type)
00086       {
00087       case FLOW_CALL:  type = 'c'; break;
00088       case FLOW_JUMP:  type = 'U'; break;
00089       case FLOW_CJUMP: type = 'C'; break;
00090       }
00091       if ( (count%4) == 0 )
00092         StartComment();
00093       else
00094         printf(",");
00095       printf(" %08X(%c)",ref.to,type);
00096           ++count;
00097     }
00098   }


Member Data Documentation

int CheckRef::count
 

Definition at line 99 of file codeprn.cpp.

Referenced by CheckRef(), and operator()().


The documentation for this struct was generated from the following file:
Generated on Mon Jan 13 22:20:36 2003 for perdr by doxygen1.2.15