Main Page   File List   Globals  

output.c File Reference

This is where output files are generated. More...

#include <types.h>
#include "globals.h"
#include "structs.h"
#include "reveng_errors.h"
#include <zem_errors.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "misc.h"
#include "output.h"
#include "chainlist.h"

Functions

int32 RE_PrintHelp (void)
 Printf RevEng help on stdout. More...

int32 RE_CreateOutputFile (Settings *projectSettings, LIST_Mapping *globalMapping)
 Creates the output file(s). More...

int32 RE_PrintHeader (FILE *f_OutputFile)
 Prints RevEng's banner in a file. More...

int32 RE_PrintSections (FILE *f_OutputFile, Settings *projectSettings)
 print sections list in a file. More...

int32 RE_PrintCode (FILE *f_OutputFile, Settings *projectSettings, LIST_Mapping *globalMapping)
 Prints the code of the target in a file. More...

int32 RE_PrintStrings (FILE *f_OutputFile, Settings *projectSettings, LIST_Mapping *stringsMapping)
 prints strings list in a file. More...

int32 RE_PrintClasses (FILE *f_OutputFile, Settings *projectSettings, LIST_Mapping *projectMapping)
 Prints classes list in a file. More...

int32 RE_PrintFunctions (FILE *f_OutputFile, LIST_Mapping *projectMapping)
 Prints functions of the target in a file. More...


Detailed Description

This is where output files are generated.


Function Documentation

int32 RE_CreateOutputFile Settings *   projectSettings,
LIST_Mapping *   globalMapping
 

Creates the output file(s).

This is the function that is called to create the output files. It calls all other functions that print specific parts of the target:

  • If split option is enabled then creates 2 files.
  • Prints RevEng banner.
  • Prints all strings referenced in the target.
  • Prints all classes prototypes of the target.
  • Prints all functions names of the target.
  • Finally prints the code of the target.

int32 RE_PrintClasses FILE *   f_OutputFile,
Settings *   projectSettings,
LIST_Mapping *   projectMapping
 

Prints classes list in a file.

This function prints all classes in alphabetical order, and all methods of each class in alphabetical order.

int32 RE_PrintCode FILE *   f_OutputFile,
Settings *   projectSettings,
LIST_Mapping *   globalMapping
 

Prints the code of the target in a file.

This function prints the code of the target with sections names, functions names, objects and jumps references.

int32 RE_PrintFunctions FILE *   f_OutputFile,
LIST_Mapping *   projectMapping
 

Prints functions of the target in a file.

This function prints all functions name of the target in a file in alphabetical order.

int32 RE_PrintHeader FILE *   f_OutputFile
 

Prints RevEng's banner in a file.

int32 RE_PrintHelp void  
 

Printf RevEng help on stdout.

int32 RE_PrintSections FILE *   f_OutputFile,
Settings *   projectSettings
 

print sections list in a file.

This function is not yet implemented.

int32 RE_PrintStrings FILE *   f_OutputFile,
Settings *   projectSettings,
LIST_Mapping *   stringsMapping
 

prints strings list in a file.

This function prints all strings referenced in the target. Strings are printed in alphabetical order.


Generated at Thu Oct 4 21:55:48 2001 for RevEng, The Reversing Engine by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001