Main Page   File List   Globals  

init.c File Reference

This file contains initialisation functions. More...

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

Functions

int32 RE_ReadCmdLine (int16 argc, int8 *argv[], Settings *projectSettings)
 Reads the command line. More...

int32 RE_ReadConfigFile (LIST_Mapping *globalMapping)
 Reads the configuration file. More...

int32 RE_ReadMessages (FILE *f_ConfigFile, LIST_Mapping *messagesList)
 Reads messages codes in the configuration file. More...

int32 RE_ReadParams (FILE *f_ConfigFile, LIST_Mapping *ParamsList)
 Reads parameters size in the configuration file. More...


Detailed Description

This file contains initialisation functions.


Function Documentation

int32 RE_ReadCmdLine int16   argc,
int8 *   argv[],
Settings *   projectSettings
 

Reads the command line.

Reads the command line parameters passed to RevEng. The following option are available:

  • -split : This will create 1 file for symbols and 1 for disassembly.
  • -plt : plt section will be printed in the output file.

    NOTE: To debug with bdb, define RE_BDB_ is necessary. It replaces the command line with other values (see in code).

int32 RE_ReadConfigFile LIST_Mapping *   globalMapping
 

Reads the configuration file.

Reads the configuration file and fills some parts of the globalMapping variable.

  • Reads messages codes.
  • This is where params size will be read when implemented.

int32 RE_ReadMessages FILE *   f_ConfigFile,
LIST_Mapping *   messagesList
 

Reads messages codes in the configuration file.

int32 RE_ReadParams FILE *   f_ConfigFile,
LIST_Mapping *   ParamsList
 

Reads parameters size in the configuration file.


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