?? lzodefs.h
字號:
/* lzodefs.h -- architecture, OS and compiler specific defines This file is part of the LZO real-time data compression library. Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer Copyright (C) 2006 Markus Franz Xaver Johannes Oberhumer Copyright (C) 2005 Markus Franz Xaver Johannes Oberhumer Copyright (C) 2004 Markus Franz Xaver Johannes Oberhumer Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer All Rights Reserved. The LZO library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The LZO library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with the LZO library; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Markus F.X.J. Oberhumer <markus@oberhumer.com> http://www.oberhumer.com/opensource/lzo/ */#ifndef __LZODEFS_H_INCLUDED#define __LZODEFS_H_INCLUDED 1#if defined(__CYGWIN32__) && !defined(__CYGWIN__)# define __CYGWIN__ __CYGWIN32__#endif#if defined(__IBMCPP__) && !defined(__IBMC__)# define __IBMC__ __IBMCPP__#endif#if defined(__ICL) && defined(_WIN32) && !defined(__INTEL_COMPILER)# define __INTEL_COMPILER __ICL#endif#if 1 && defined(__INTERIX) && defined(__GNUC__) && !defined(_ALL_SOURCE)# define _ALL_SOURCE 1#endif#if defined(__mips__) && defined(__R5900__)# if !defined(__LONG_MAX__)# define __LONG_MAX__ 9223372036854775807L# endif#endif#if defined(__INTEL_COMPILER) && defined(__linux__)# pragma warning(disable: 193)#endif#if defined(__KEIL__) && defined(__C166__)# pragma warning disable = 322#elif 0 && defined(__C251__)# pragma warning disable = 322#endif#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) && !defined(__MWERKS__)# if (_MSC_VER >= 1300)# pragma warning(disable: 4668)# endif#endif#if 0 && defined(__WATCOMC__)# if (__WATCOMC__ >= 1050) && (__WATCOMC__ < 1060)# pragma warning 203 9# endif#endif#if defined(__BORLANDC__) && defined(__MSDOS__) && !defined(__FLAT__)# pragma option -h#endif#if 0#define LZO_0xffffL 0xfffful#define LZO_0xffffffffL 0xfffffffful#else#define LZO_0xffffL 65535ul#define LZO_0xffffffffL 4294967295ul#endif#if (LZO_0xffffL == LZO_0xffffffffL)# error "your preprocessor is broken 1"#endif#if (16ul * 16384ul != 262144ul)# error "your preprocessor is broken 2"#endif#if 0#if (32767 >= 4294967295ul)# error "your preprocessor is broken 3"#endif#if (65535u >= 4294967295ul)# error "your preprocessor is broken 4"#endif#endif#if (UINT_MAX == LZO_0xffffL)#if defined(__ZTC__) && defined(__I86__) && !defined(__OS2__)# if !defined(MSDOS)# define MSDOS 1# endif# if !defined(_MSDOS)# define _MSDOS 1# endif#elif 0 && defined(__VERSION) && defined(MB_LEN_MAX)# if (__VERSION == 520) && (MB_LEN_MAX == 1)# if !defined(__AZTEC_C__)# define __AZTEC_C__ __VERSION# endif# if !defined(__DOS__)# define __DOS__ 1# endif# endif#endif#endif#if defined(_MSC_VER) && defined(M_I86HM) && (UINT_MAX == LZO_0xffffL)# define ptrdiff_t long# define _PTRDIFF_T_DEFINED#endif#if (UINT_MAX == LZO_0xffffL)# undef __LZO_RENAME_A# undef __LZO_RENAME_B# if defined(__AZTEC_C__) && defined(__DOS__)# define __LZO_RENAME_A 1# elif defined(_MSC_VER) && defined(MSDOS)# if (_MSC_VER < 600)# define __LZO_RENAME_A 1# elif (_MSC_VER < 700)# define __LZO_RENAME_B 1# endif# elif defined(__TSC__) && defined(__OS2__)# define __LZO_RENAME_A 1# elif defined(__MSDOS__) && defined(__TURBOC__) && (__TURBOC__ < 0x0410)# define __LZO_RENAME_A 1# elif defined(__PACIFIC__) && defined(DOS)# if !defined(__far)# define __far far# endif# if !defined(__near)# define __near near# endif# endif# if defined(__LZO_RENAME_A)# if !defined(__cdecl)# define __cdecl cdecl# endif# if !defined(__far)# define __far far# endif# if !defined(__huge)# define __huge huge# endif# if !defined(__near)# define __near near# endif# if !defined(__pascal)# define __pascal pascal# endif# if !defined(__huge)# define __huge huge# endif# elif defined(__LZO_RENAME_B)# if !defined(__cdecl)# define __cdecl _cdecl# endif# if !defined(__far)# define __far _far# endif# if !defined(__huge)# define __huge _huge# endif# if !defined(__near)# define __near _near# endif# if !defined(__pascal)# define __pascal _pascal# endif# elif (defined(__PUREC__) || defined(__TURBOC__)) && defined(__TOS__)# if !defined(__cdecl)# define __cdecl cdecl# endif# if !defined(__pascal)# define __pascal pascal# endif# endif# undef __LZO_RENAME_A# undef __LZO_RENAME_B#endif#if (UINT_MAX == LZO_0xffffL)#if defined(__AZTEC_C__) && defined(__DOS__)# define LZO_BROKEN_CDECL_ALT_SYNTAX 1#elif defined(_MSC_VER) && defined(MSDOS)# if (_MSC_VER < 600)# define LZO_BROKEN_INTEGRAL_CONSTANTS 1# endif# if (_MSC_VER < 700)# define LZO_BROKEN_INTEGRAL_PROMOTION 1# define LZO_BROKEN_SIZEOF 1# endif#elif defined(__PACIFIC__) && defined(DOS)# define LZO_BROKEN_INTEGRAL_CONSTANTS 1#elif defined(__TURBOC__) && defined(__MSDOS__)# if (__TURBOC__ < 0x0150)# define LZO_BROKEN_CDECL_ALT_SYNTAX 1# define LZO_BROKEN_INTEGRAL_CONSTANTS 1# define LZO_BROKEN_INTEGRAL_PROMOTION 1# endif# if (__TURBOC__ < 0x0200)# define LZO_BROKEN_SIZEOF 1# endif# if (__TURBOC__ < 0x0400) && defined(__cplusplus)# define LZO_BROKEN_CDECL_ALT_SYNTAX 1# endif#elif (defined(__PUREC__) || defined(__TURBOC__)) && defined(__TOS__)# define LZO_BROKEN_CDECL_ALT_SYNTAX 1# define LZO_BROKEN_SIZEOF 1#endif#endif#if defined(__WATCOMC__) && (__WATCOMC__ < 900)# define LZO_BROKEN_INTEGRAL_CONSTANTS 1#endif#if defined(_CRAY) && defined(_CRAY1)# define LZO_BROKEN_SIGNED_RIGHT_SHIFT 1#endif#define LZO_PP_STRINGIZE(x) #x#define LZO_PP_MACRO_EXPAND(x) LZO_PP_STRINGIZE(x)#define LZO_PP_CONCAT2(a,b) a ## b#define LZO_PP_CONCAT3(a,b,c) a ## b ## c#define LZO_PP_CONCAT4(a,b,c,d) a ## b ## c ## d#define LZO_PP_CONCAT5(a,b,c,d,e) a ## b ## c ## d ## e#define LZO_PP_ECONCAT2(a,b) LZO_PP_CONCAT2(a,b)#define LZO_PP_ECONCAT3(a,b,c) LZO_PP_CONCAT3(a,b,c)#define LZO_PP_ECONCAT4(a,b,c,d) LZO_PP_CONCAT4(a,b,c,d)#define LZO_PP_ECONCAT5(a,b,c,d,e) LZO_PP_CONCAT5(a,b,c,d,e)#if 1#define LZO_CPP_STRINGIZE(x) #x#define LZO_CPP_MACRO_EXPAND(x) LZO_CPP_STRINGIZE(x)#define LZO_CPP_CONCAT2(a,b) a ## b#define LZO_CPP_CONCAT3(a,b,c) a ## b ## c#define LZO_CPP_CONCAT4(a,b,c,d) a ## b ## c ## d#define LZO_CPP_CONCAT5(a,b,c,d,e) a ## b ## c ## d ## e#define LZO_CPP_ECONCAT2(a,b) LZO_CPP_CONCAT2(a,b)#define LZO_CPP_ECONCAT3(a,b,c) LZO_CPP_CONCAT3(a,b,c)#define LZO_CPP_ECONCAT4(a,b,c,d) LZO_CPP_CONCAT4(a,b,c,d)#define LZO_CPP_ECONCAT5(a,b,c,d,e) LZO_CPP_CONCAT5(a,b,c,d,e)#endif#define __LZO_MASK_GEN(o,b) (((((o) << ((b)-1)) - (o)) << 1) + (o))#if 1 && defined(__cplusplus)# if !defined(__STDC_CONSTANT_MACROS)# define __STDC_CONSTANT_MACROS 1# endif# if !defined(__STDC_LIMIT_MACROS)# define __STDC_LIMIT_MACROS 1# endif#endif#if defined(__cplusplus)# define LZO_EXTERN_C extern "C"#else# define LZO_EXTERN_C extern#endif#if !defined(__LZO_OS_OVERRIDE)#if defined(LZO_OS_FREESTANDING)# define LZO_INFO_OS "freestanding"#elif defined(LZO_OS_EMBEDDED)# define LZO_INFO_OS "embedded"#elif 1 && defined(__IAR_SYSTEMS_ICC__)# define LZO_OS_EMBEDDED 1# define LZO_INFO_OS "embedded"#elif defined(__CYGWIN__) && defined(__GNUC__)# define LZO_OS_CYGWIN 1# define LZO_INFO_OS "cygwin"#elif defined(__EMX__) && defined(__GNUC__)# define LZO_OS_EMX 1# define LZO_INFO_OS "emx"#elif defined(__BEOS__)# define LZO_OS_BEOS 1# define LZO_INFO_OS "beos"#elif defined(__Lynx__)# define LZO_OS_LYNXOS 1# define LZO_INFO_OS "lynxos"#elif defined(__OS400__)# define LZO_OS_OS400 1# define LZO_INFO_OS "os400"#elif defined(__QNX__)# define LZO_OS_QNX 1# define LZO_INFO_OS "qnx"#elif defined(__BORLANDC__) && defined(__DPMI32__) && (__BORLANDC__ >= 0x0460)# define LZO_OS_DOS32 1# define LZO_INFO_OS "dos32"#elif defined(__BORLANDC__) && defined(__DPMI16__)# define LZO_OS_DOS16 1# define LZO_INFO_OS "dos16"#elif defined(__ZTC__) && defined(DOS386)# define LZO_OS_DOS32 1# define LZO_INFO_OS "dos32"#elif defined(__OS2__) || defined(__OS2V2__)# if (UINT_MAX == LZO_0xffffL)# define LZO_OS_OS216 1# define LZO_INFO_OS "os216"# elif (UINT_MAX == LZO_0xffffffffL)# define LZO_OS_OS2 1# define LZO_INFO_OS "os2"# else# error "check your limits.h header"# endif#elif defined(__WIN64__) || defined(_WIN64) || defined(WIN64)# define LZO_OS_WIN64 1# define LZO_INFO_OS "win64"#elif defined(__WIN32__) || defined(_WIN32) || defined(WIN32) || defined(__WINDOWS_386__)# define LZO_OS_WIN32 1# define LZO_INFO_OS "win32"#elif defined(__MWERKS__) && defined(__INTEL__)# define LZO_OS_WIN32 1# define LZO_INFO_OS "win32"#elif defined(__WINDOWS__) || defined(_WINDOWS) || defined(_Windows)# if (UINT_MAX == LZO_0xffffL)# define LZO_OS_WIN16 1# define LZO_INFO_OS "win16"# elif (UINT_MAX == LZO_0xffffffffL)# define LZO_OS_WIN32 1# define LZO_INFO_OS "win32"# else# error "check your limits.h header"# endif#elif defined(__DOS__) || defined(__MSDOS__) || defined(_MSDOS) || defined(MSDOS) || (defined(__PACIFIC__) && defined(DOS))# if (UINT_MAX == LZO_0xffffL)# define LZO_OS_DOS16 1# define LZO_INFO_OS "dos16"# elif (UINT_MAX == LZO_0xffffffffL)# define LZO_OS_DOS32 1# define LZO_INFO_OS "dos32"# else# error "check your limits.h header"# endif#elif defined(__WATCOMC__)# if defined(__NT__) && (UINT_MAX == LZO_0xffffL)# define LZO_OS_DOS16 1# define LZO_INFO_OS "dos16"# elif defined(__NT__) && (__WATCOMC__ < 1100)# define LZO_OS_WIN32 1# define LZO_INFO_OS "win32"# elif defined(__linux__) || defined(__LINUX__)# define LZO_OS_POSIX 1# define LZO_INFO_OS "posix"# else# error "please specify a target using the -bt compiler option"# endif#elif defined(__palmos__)# define LZO_OS_PALMOS 1# define LZO_INFO_OS "palmos"#elif defined(__TOS__) || defined(__atarist__)# define LZO_OS_TOS 1# define LZO_INFO_OS "tos"#elif defined(macintosh) && !defined(__ppc__)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -