types.h

Go to the documentation of this file.
00001 #ifndef _TYPES_H
00002 #define _TYPES_H
00003 
00004 #ifndef BEOS_TARGET
00005 #include <inttypes.h>
00006 
00007 typedef uint8_t    uint8;
00008 typedef int8_t     int8;
00009 typedef uint16_t   uint16;
00010 typedef int16_t    int16;
00011 typedef uint32_t   uint32;
00012 typedef int32_t    int32;
00013 typedef uint64_t   uint64;
00014 typedef int64_t    int64;
00015 #else
00016 #include <SupportDefs.h>
00017 #endif
00018 
00019 /* debugging macros */
00020 #ifdef FLG_DEBUG
00021   #define DBG_START    dbgFile = fopen("dbgfile.txt","w+")
00022   #define DBG_PRINT(s) fprintf(dbgFile,s); fflush(NULL)
00023   #define DBG_END      fclose(dbgFile)
00024 #else
00025   #define DBG_START
00026   #define DBG_PRINT(s)
00027   #define DBG_END
00028 #endif
00029 /* end debugging macros */
00030 
00031 /* elf types */
00032 typedef uint32    Elf32_Addr;
00033 typedef uint16    Elf32_Half;
00034 typedef uint32    Elf32_Off;
00035 typedef int32     Elf32_Sword;
00036 typedef uint32    Elf32_Word;
00037 /* end elf types */
00038 
00039 /***************************
00040  *  Generic return values  *
00041  ***************************/ 
00042 #define Z_OK                        0  /*no error*/
00043 #define Z_TRUE                      1
00044 #define Z_FALSE                     0
00045 
00046 #endif

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