globals.h

Go to the documentation of this file.
00001 #ifndef GLOBALS_H
00002 #define GLOBALS_H
00003 
00004 #include <stdio.h>
00005 #include "zem_errors.h"
00006 
00007 #ifdef __BEOS__
00008 #define BEOS_TARGET
00009 #endif
00010 
00011 /* defines for target specific code          */
00012 /* HOME is inserted before CONFIG_FILE name  */
00013 #ifdef BEOS_TARGET /* BeOS compilation */
00014 
00015 #define CONFIG_FILE     "/config/settings/RevEng_Settings"
00016 #define HEADER_TARGET   "BeOS target    "
00017 
00018 #else /* Generic compilation */
00019 
00020 #define CONFIG_FILE     "/.revengrc"
00021 #define HEADER_TARGET   "Generic target "
00022 
00023 #endif
00024 /* end defines for target specific code*/
00025 
00026 /* ctag header */
00027 #define CTAG_HEADER  "!_TAG_FILE_FORMAT   1  //\n\
00028 !_TAG_FILE_SORTED 0  //\n\
00029 !_TAG_PROGRAM_AUTHOR Zadig //\n\
00030 !_TAG_PROGRAM_NAME   RevEng   //\n\
00031 !_TAG_PROGRAM_URL http://reveng.cjb.net   //\n\
00032 !_TAG_PROGRAM_VERSION   %s //\n"
00033                     
00034 #define RE_VERSION "1.3.0"
00035 
00036 #define STRING_MAX_SIZE    512      /* max size of a string */
00037 #define REG_MAX_SIZE       16       /* max size of a register label */
00038 #define MAX_SECTIONS       30       /* max sections in the file */
00039 #define MAX_REFERENCES     50       /* max references of an object */
00040 #define MAX_PLT_ENTRIES    1500     /* max plt entries in a file */
00041 #define MAX_PARAMS         25       /* max params in a function */
00042 #define MAX_REG_CNTX       200      /* max registers contexts backup */
00043 
00044 #define RE_COMMENT_ALIGN   5        /* align comments on 5 chars  */
00045 #define RE_COMMENT_MIN     60       /* minimum comment position   */
00046 #define RE_DISABLED        0xFFFFFFFF
00047 
00048 #define RTTI_SYMBOL     "type_info" 
00049 /* macros */
00050 #define INT2STR(i)       ((uint32)( ( ((uint32)(i) & 0xFF) << 24) | \
00051                                     ( ((uint32)(i) & 0xFF0000) >> 8) |  \
00052                                     ( ((uint32)(i) & 0xFF00) << 8) | \
00053                                     ( ((uint32)(i) & 0xFF000000) >> 24) ) )
00054 
00055 /* these 2 defines crash with optimization options (don't know why) */
00056 #define STREQ3(s1,s2)    ( ( (*(uint32*)s1) & 0xFFFFFF) == ( (*(uint32*)s2) & 0xFFFFFF) )
00057 #define STREQ4(s1,s2)    ( (*(uint32*)s1) == (*(uint32*)s2) )
00058 
00059 /*#define STREQ3(s1,s2)    (strncmp((char*)(s1),s2,3) == 0)
00060 #define STREQ4(s1,s2)    (strncmp((char*)(s1),s2,4) == 0)*/
00061 
00062 
00063 /* config file section names */
00064 #define CONF_SECTION_CUST_SYM       "[Custom Symbol Table]"
00065 #define CONF_SECTION_CUST_DYN_SYM   "[Custom Dynamic Symbol Table]"
00066    
00067 /*globals variables*/
00068 #ifdef FLG_DEBUG
00069 extern FILE *dbgFile; /*debugging file*/
00070 #endif
00071 
00072 #endif

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