00001 /* 00002 * Copyright 2006 Sony Computer Entertainment Inc. 00003 * 00004 * Licensed under the MIT Open Source License, for details please see license.txt or the website 00005 * http://www.opensource.org/licenses/mit-license.php 00006 * 00007 */ 00008 00009 #ifndef __DAE_TYPES_H__ 00010 #define __DAE_TYPES_H__ 00011 00012 #include <dae/daePlatform.h> 00013 #include <sys/types.h> 00014 #include <stdio.h> 00015 #include <stdlib.h> 00016 #include <assert.h> 00017 #include <wchar.h> 00018 #include <string.h> 00019 00020 #include <dae/daeError.h> 00021 00022 #define daeOffsetOf(class, member) \ 00023 ((size_t)&(((class*)0x0100)->member) - (size_t)0x0100) 00024 00025 typedef PLATFORM_INT8 daeChar; 00026 typedef PLATFORM_INT16 daeShort; 00027 typedef PLATFORM_INT32 daeInt; 00028 typedef PLATFORM_INT64 daeLong; 00029 typedef PLATFORM_UINT8 daeUChar; 00030 typedef PLATFORM_UINT16 daeUShort; 00031 typedef PLATFORM_UINT32 daeUInt; 00032 typedef PLATFORM_UINT64 daeULong; 00033 typedef PLATFORM_FLOAT32 daeFloat; 00034 typedef PLATFORM_FLOAT64 daeDouble; 00035 00036 // base types 00037 00038 typedef const char* daeString; 00039 typedef bool daeBool; 00040 typedef const void* daeConstRawRef; 00041 typedef void* daeRawRef; 00042 typedef daeInt daeEnum; 00043 typedef daeChar* daeMemoryRef; 00044 00045 typedef daeChar daeFixedName[512]; 00046 00047 #include <dae/daeArray.h> 00048 #include <dae/daeArrayTypes.h> 00049 00050 #endif //__DAE_TYPES_H__