Main Page   File List   Globals  

globals.h

00001 #ifndef GLOBALS_H
00002 #define GLOBALS_H
00003 
00004 #include <stdio.h>
00005 
00006 /* defines for target specific code*/
00007 #ifdef BEOS_TARGET /* BeOS compilation */
00008 
00009 #define TMP_DIR         "/boot/var/tmp/"
00010 #define CONFIG_FILE     "/boot/home/config/settings/RevEng_Settings"
00011 #define HEADER_TARGET   "BeOS target    "
00012 
00013 #else /* Generic compilation */
00014 
00015 #define TMP_DIR         "/boot/var/tmp/"
00016 #define CONFIG_FILE     "/boot/home/config/settings/RevEng_Settings"
00017 #define HEADER_TARGET   "Generic target "
00018 
00019 #endif
00020 
00021 /* end defines for target specific code*/
00022 #define RE_VERSION "0.8.2"
00023 
00024 #define STRING_MAX_SIZE 512     /* max size of a string */
00025 #define REG_MAX_SIZE    16      /* max size of a register label */
00026 #define MAX_SECTIONS    30      /* max sections in the file */
00027 #define MAX_REFERENCES  50      /* max references of an object */
00028 #define MAX_PLT_ENTRIES 1500    /* max plt entries in a file */
00029 #define MAX_PARAMS      25      /* max params in a function */
00030 #define MAX_REG_CNTX    200     /* max registers contexts backup */
00031 
00032 #define RE_DISABLED     0xFFFFFFFF
00033 
00034 /* macros */
00035 #define INT2STR(i)       ((uint32)( ( ((uint32)(i) & 0xFF) << 24) | \
00036                                     ( ((uint32)(i) & 0xFF0000) >> 8) |  \
00037                                     ( ((uint32)(i) & 0xFF00) << 8) | \
00038                                     ( ((uint32)(i) & 0xFF000000) >> 24) ) )
00039 
00040 /* these 2 defines crash with optimization options (don't know why) */
00041 #define STREQ3(s1,s2)    ( ( (*(uint32*)s1) & 0xFFFFFF) == ( (*(uint32*)s2) & 0xFFFFFF) )
00042 #define STREQ4(s1,s2)    ( (*(uint32*)s1) == (*(uint32*)s2) )
00043 
00044 /*#define STREQ3(s1,s2)    (strncmp((char*)(s1),s2,3) == 0)
00045 #define STREQ4(s1,s2)    (strncmp((char*)(s1),s2,4) == 0)*/
00046 
00047 /*globals variables*/
00048 #ifdef FLG_DEBUG
00049 extern FILE *dbgFile; /*debugging file*/
00050 #endif
00051 
00052 #endif

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