00001 /*header file for typedefs*/ 00002 00003 #ifndef _CORE_TYPES_HPP 00004 #define _CORE_TYPES_HPP 00005 00006 /*integer typedefs*/ 00007 typedef unsigned long long uint64; 00008 typedef signed long long sint64; 00009 typedef signed long sint32; 00010 typedef unsigned int uint32; 00011 typedef unsigned short uint16; 00012 typedef unsigned char uint8; 00013 typedef unsigned char uchar; 00014 /*various typedefs*/ 00015 typedef uint32 addr_t; 00016 typedef uint32 size_t; 00017 /*cool typedefs*/ 00018 // struct size_t { uint32 size; }; 00019 00020 /*often-used values*/ 00021 #define bool uint32 00022 #define FALSE false 00023 #define TRUE true 00024 #define NULL 0 00025 00026 00027 #endif