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

codeprn.cpp File Reference

#include "global.h"
#include "module.h"
#include "code.h"
#include "codeglob.h"
#include "perdroptions.h"

Go to the source code of this file.

Compounds

struct  CheckRef

Functions

void StartBeginComment ()
void StartComment ()
void EndComment ()
void WritePriority (ByteInfo::TPriority priority)

Variables

bool commentBeginned = false


Function Documentation

void EndComment   [static]
 

Definition at line 61 of file codeprn.cpp.

References commentBeginned.

Referenced by CodeParser::WriteBegin(), and CodeParser::WriteString().

00062 {
00063   if (commentBeginned)
00064   {
00065     printf("\n|\n");
00066     commentBeginned = false;
00067   }
00068 }

void StartBeginComment   [static]
 

Definition at line 41 of file codeprn.cpp.

References commentBeginned.

Referenced by CodeParser::CheckJumpReference(), CodeParser::CheckReference(), CheckRef::operator()(), StartComment(), CodeParser::WriteCode(), and WritePriority().

00042 {
00043   // scrivi inizio commento
00044   if (!commentBeginned)
00045     printf("\n");
00046   else
00047     printf("\n|\n");
00048   commentBeginned = true;
00049 
00050   printf("* ");
00051 }

void StartComment   [static]
 

Definition at line 53 of file codeprn.cpp.

References commentBeginned, and StartBeginComment().

Referenced by CheckRef::operator()().

00054 {
00055   if (!commentBeginned)
00056     StartBeginComment();
00057   else
00058     printf("\n|");
00059 }

void WritePriority ByteInfo::TPriority    priority [static]
 

Definition at line 241 of file codeprn.cpp.

References ByteInfo::priApi, ByteInfo::priCheckOnly, ByteInfo::priConstant, ByteInfo::priEntryPoint, ByteInfo::priExport, ByteInfo::priFiller, ByteInfo::priHeuristics, ByteInfo::priNone, ByteInfo::priSafeExport, ByteInfo::priSafeHeuristics, StartBeginComment(), and ByteInfo::TPriority.

Referenced by CodeParser::WriteCode().

00242 {
00243   const char *s = "unknown";
00244   switch (priority)
00245   {
00246   case ByteInfo::priNone:
00247     s = "none"; break;
00248   case ByteInfo::priCheckOnly:
00249     s = "check only"; break;
00250   case ByteInfo::priFiller:
00251     s = "filler"; break;
00252   case ByteInfo::priConstant:
00253     s = "constant"; break;
00254   case ByteInfo::priApi:
00255     s = "api"; break;
00256   case ByteInfo::priExport:
00257     s = "export"; break;
00258   case ByteInfo::priHeuristics:
00259     s = "heuristics"; break;
00260   case ByteInfo::priSafeHeuristics:
00261     s = "safe heuristics"; break;
00262   case ByteInfo::priSafeExport:
00263     s = "safe export"; break;
00264   case ByteInfo::priEntryPoint:
00265     s = "entry point"; break;
00266   }
00267   StartBeginComment();
00268   printf("Current priority: %s",s);
00269 }


Variable Documentation

bool commentBeginned = false [static]
 

Definition at line 38 of file codeprn.cpp.

Referenced by EndComment(), StartBeginComment(), and StartComment().


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