misc.c File Reference

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

Defines

#define SPACE_STRING_SIZE   1024

Functions

int32 RE_GetHeader (uint8 *sz_Buffer)
 Copies the header of reveng in the buffer sz_Buffer.
int32 FILE_GetStringAt (FILE *f_File, uint32 i_Addr, uint8 *sz_String)
 Reads a string in the file f_File at offset i_Addr.
int32 RE_ReadString (uint8 *sz_DestString, uint32 i_Size, FILE *f_file)
 Reads a string in the file and stops if there is a '<' in it.
char * RE_GetLevelStr (uint16 i_Level)
int32 RE_InitRegisters (Register *registers, uint8 b_ResetAll)
 Initialiszes all registers. "registers" must be ab array of REG_MAX Register struct.
int32 RE_SetNextCntx (RegisterContext *context)
int32 RE_AddCntx (RegisterContext *context, Register *registers, uint32 i_Addr)
int32 RE_FreeCntx (RegisterContext *context, uint32 i_CntxIndex)
int32 RE_EmptyCntx (RegisterContext *context)
int32 RE_GetParameters (uint8 *sz_Function, Function_Params *parameters, LIST_Mapping *ParamsList)
 Get parameters offsets and labels of the function.
uint8 RE_GetParamIndex (Function_Params *parameters, uint16 i_Offset)
 Get parameters offsets and labels of the function.
uint8 RE_ParamIsMessage (Function_Params *parameters, uint8 i_Index)
 Tells if a parameter is a message or not.

Variables

static char gsz_SpaceString [SPACE_STRING_SIZE]

Define Documentation

#define SPACE_STRING_SIZE   1024
 


Function Documentation

int32 FILE_GetStringAt FILE *  f_File,
uint32  i_Addr,
uint8 sz_String
 

Reads a string in the file f_File at offset i_Addr.

int32 RE_GetHeader uint8 sz_Buffer  ) 
 

Copies the header of reveng in the buffer sz_Buffer.

char* RE_GetLevelStr uint16  i_Level  ) 
 

int32 RE_ReadString uint8 sz_DestString,
uint32  i_Size,
FILE *  f_file
 

Reads a string in the file and stops if there is a '<' in it.


Variable Documentation

char gsz_SpaceString[SPACE_STRING_SIZE] [static]
 


Generated on Tue Nov 29 20:13:16 2005 for REVENG by  doxygen 1.4.5