FirteX-高性能全文索引和检索平台API Documentation |
00001 // 00002 // Copyright(C) 2005--2006 Institute of Computing Tech, Chinese Academy of Sciences. 00003 // All rights reserved. 00004 // This file is part of FirteX (www.firtex.org) 00005 // 00006 // Use of the FirteX is subject to the terms of the software license set forth in 00007 // the LICENSE file included with this software, and also available at 00008 // http://www.firtex.org/license.html 00009 // 00010 // Author : 郭瑞杰(GuoRuijie) 00011 // Email : ruijieguo@software.ict.ac.cn,ruijieguo@gmail.com 00012 // Created : 2006/5/20 00013 // 00014 #ifndef __STDINT_H__ 00015 #define __STDINT_H__ 00016 00017 #include <wchar.h> 00018 00019 #ifndef WIN32 00020 #include <inttypes.h> 00021 00022 typedef uint8_t byte; 00023 00024 #else//for Win32 00025 #include <sys/types.h> 00026 00027 #include <wchar.h> 00028 00029 typedef signed char int8_t; 00030 typedef short int16_t; 00031 typedef long int32_t; 00032 typedef __int64 int64_t; 00033 typedef unsigned char uint8_t; 00034 typedef unsigned short uint16_t; 00035 typedef unsigned long uint32_t; 00036 typedef unsigned __int64 uint64_t; 00037 00038 typedef unsigned char byte; 00039 00040 typedef __int64 intmax_t; 00041 typedef unsigned __int64 uintmax_t; 00042 00043 #endif 00044 00045 typedef int64_t fileoffset_t; 00046 00047 /* LIMIT MACROS */ 00048 #ifndef MAX_UINT64 00049 #define MAX_UINT64 ( ~ ((uint64_t) 0) ) 00050 #endif 00051 00052 #ifndef MAX_INT64 00053 #define MAX_INT64 ( (int64_t) ( MAX_UINT64 >> 1 ) ) 00054 #endif 00055 00056 #ifndef MIN_INT64 00057 #define MIN_INT64 ( (int64_t) ( MAX_UINT64 ^ ( (uint64_t) MAX_INT64 ) ) ) 00058 #endif 00059 00060 #ifndef MAX_UINT32 00061 #define MAX_UINT32 ( ~ ((uint32_t) 0) ) 00062 #endif 00063 00064 #ifndef MAX_INT32 00065 #define MAX_INT32 ( (int32_t) (MAX_UINT32 >> 1) ) 00066 #endif 00067 00068 #ifndef MIN_INT32 00069 #define MIN_INT32 ( (int32_t) ( MAX_UINT32 ^ ( (uint32_t) MAX_INT32 ) ) ) 00070 #endif 00071 00072 00073 #ifndef NULL 00074 #define NULL 0 00075 #endif 00076 00077 #endif /* __STDINT_H__ */
http://www.firtex.org http://www.sourceforge.net/projects/firtex