⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 miniacc.h

📁 UPX 源代码
💻 H
📖 第 1 页 / 共 5 页
字号:
/* ACC -- Automatic Compiler Configuration   This file is part of the UPX executable compressor.   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.   UPX and the UCL library are free software; you can redistribute them   and/or modify them 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.   This program 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 this program; see the file COPYING.   If not, write to the Free Software Foundation, Inc.,   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.   Markus F.X.J. Oberhumer   <markus@oberhumer.com>   http://www.oberhumer.com/ */#ifndef __ACC_H_INCLUDED#define __ACC_H_INCLUDED 1#define ACC_VERSION     20070113L#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 defined(__POCC__) && defined(_WIN32)#  if (__POCC__ >= 400)#    pragma warn(disable: 2216)#  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 defined(ACC_CFG_NO_CONFIG_HEADER)#elif defined(ACC_CFG_CONFIG_HEADER)#  include ACC_CFG_CONFIG_HEADER#else#endif#if defined(ACC_CFG_NO_LIMITS_H)#elif defined(ACC_LIBC_NAKED) || defined(ACC_BROKEN_LIMITS_H)#ifndef __ACC_FALLBACK_LIMITS_H_INCLUDED#define __ACC_FALLBACK_LIMITS_H_INCLUDED#undef CHAR_BIT#define CHAR_BIT        8#ifndef MB_LEN_MAX#define MB_LEN_MAX      1#endif#ifndef __SCHAR_MAX__#define __SCHAR_MAX__   127#endif#ifndef __SHRT_MAX__#define __SHRT_MAX__    32767#endif#ifndef __INT_MAX__#define __INT_MAX__     2147483647#endif#ifndef __LONG_MAX__#if defined(__alpha__) || defined(_LP64) || defined(__MIPS_PSX2__)#define __LONG_MAX__    9223372036854775807L#else#define __LONG_MAX__    2147483647L#endif#endif#undef SCHAR_MIN#undef SCHAR_MAX#undef UCHAR_MAX#define SCHAR_MIN       (-1 - SCHAR_MAX)#define SCHAR_MAX       (__SCHAR_MAX__)#define UCHAR_MAX       (SCHAR_MAX * 2 + 1)#undef SHRT_MIN#undef SHRT_MAX#undef USHRT_MAX#define SHRT_MIN        (-1 - SHRT_MAX)#define SHRT_MAX        (__SHRT_MAX__)#if ((__INT_MAX__) == (__SHRT_MAX__))#define USHRT_MAX       (SHRT_MAX * 2U + 1U)#else#define USHRT_MAX       (SHRT_MAX * 2 + 1)#endif#undef INT_MIN#undef INT_MAX#undef UINT_MAX#define INT_MIN         (-1 - INT_MAX)#define INT_MAX         (__INT_MAX__)#define UINT_MAX        (INT_MAX * 2U + 1U)#undef LONG_MIN#undef LONG_MAX#undef ULONG_MAX#define LONG_MIN        (-1L - LONG_MAX)#define LONG_MAX        ((__LONG_MAX__) + 0L)#define ULONG_MAX       (LONG_MAX * 2UL + 1UL)#undef CHAR_MIN#undef CHAR_MAX#if defined(__CHAR_UNSIGNED__) || defined(_CHAR_UNSIGNED)#define CHAR_MIN        0#define CHAR_MAX        UCHAR_MAX#else#define CHAR_MIN        SCHAR_MIN#define CHAR_MAX        SCHAR_MAX#endif#endif#else#  include <limits.h>#endif#if 0#define ACC_0xffffL             0xfffful#define ACC_0xffffffffL         0xfffffffful#else#define ACC_0xffffL             65535ul#define ACC_0xffffffffL         4294967295ul#endif#if (ACC_0xffffL == ACC_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 == ACC_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 == ACC_0xffffL)#  define ptrdiff_t long#  define _PTRDIFF_T_DEFINED#endif#if (UINT_MAX == ACC_0xffffL)#  undef __ACC_RENAME_A#  undef __ACC_RENAME_B#  if defined(__AZTEC_C__) && defined(__DOS__)#    define __ACC_RENAME_A 1#  elif defined(_MSC_VER) && defined(MSDOS)#    if (_MSC_VER < 600)#      define __ACC_RENAME_A 1#    elif (_MSC_VER < 700)#      define __ACC_RENAME_B 1#    endif#  elif defined(__TSC__) && defined(__OS2__)#    define __ACC_RENAME_A 1#  elif defined(__MSDOS__) && defined(__TURBOC__) && (__TURBOC__ < 0x0410)#    define __ACC_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(__ACC_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(__ACC_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 __ACC_RENAME_A#  undef __ACC_RENAME_B#endif#if (UINT_MAX == ACC_0xffffL)#if defined(__AZTEC_C__) && defined(__DOS__)#  define ACC_BROKEN_CDECL_ALT_SYNTAX 1#elif defined(_MSC_VER) && defined(MSDOS)#  if (_MSC_VER < 600)#    define ACC_BROKEN_INTEGRAL_CONSTANTS 1#  endif#  if (_MSC_VER < 700)#    define ACC_BROKEN_INTEGRAL_PROMOTION 1#    define ACC_BROKEN_SIZEOF 1#  endif#elif defined(__PACIFIC__) && defined(DOS)#  define ACC_BROKEN_INTEGRAL_CONSTANTS 1#elif defined(__TURBOC__) && defined(__MSDOS__)#  if (__TURBOC__ < 0x0150)#    define ACC_BROKEN_CDECL_ALT_SYNTAX 1#    define ACC_BROKEN_INTEGRAL_CONSTANTS 1#    define ACC_BROKEN_INTEGRAL_PROMOTION 1#  endif#  if (__TURBOC__ < 0x0200)#    define ACC_BROKEN_SIZEOF 1#  endif#  if (__TURBOC__ < 0x0400) && defined(__cplusplus)#    define ACC_BROKEN_CDECL_ALT_SYNTAX 1#  endif#elif (defined(__PUREC__) || defined(__TURBOC__)) && defined(__TOS__)#  define ACC_BROKEN_CDECL_ALT_SYNTAX 1#  define ACC_BROKEN_SIZEOF 1#endif#endif#if defined(__WATCOMC__) && (__WATCOMC__ < 900)#  define ACC_BROKEN_INTEGRAL_CONSTANTS 1#endif#if defined(_CRAY) && defined(_CRAY1)#  define ACC_BROKEN_SIGNED_RIGHT_SHIFT 1#endif#define ACC_PP_STRINGIZE(x)             #x#define ACC_PP_MACRO_EXPAND(x)          ACC_PP_STRINGIZE(x)#define ACC_PP_CONCAT2(a,b)             a ## b#define ACC_PP_CONCAT3(a,b,c)           a ## b ## c#define ACC_PP_CONCAT4(a,b,c,d)         a ## b ## c ## d#define ACC_PP_CONCAT5(a,b,c,d,e)       a ## b ## c ## d ## e#define ACC_PP_ECONCAT2(a,b)            ACC_PP_CONCAT2(a,b)#define ACC_PP_ECONCAT3(a,b,c)          ACC_PP_CONCAT3(a,b,c)#define ACC_PP_ECONCAT4(a,b,c,d)        ACC_PP_CONCAT4(a,b,c,d)#define ACC_PP_ECONCAT5(a,b,c,d,e)      ACC_PP_CONCAT5(a,b,c,d,e)#if 1#define ACC_CPP_STRINGIZE(x)            #x#define ACC_CPP_MACRO_EXPAND(x)         ACC_CPP_STRINGIZE(x)#define ACC_CPP_CONCAT2(a,b)            a ## b#define ACC_CPP_CONCAT3(a,b,c)          a ## b ## c#define ACC_CPP_CONCAT4(a,b,c,d)        a ## b ## c ## d#define ACC_CPP_CONCAT5(a,b,c,d,e)      a ## b ## c ## d ## e#define ACC_CPP_ECONCAT2(a,b)           ACC_CPP_CONCAT2(a,b)#define ACC_CPP_ECONCAT3(a,b,c)         ACC_CPP_CONCAT3(a,b,c)#define ACC_CPP_ECONCAT4(a,b,c,d)       ACC_CPP_CONCAT4(a,b,c,d)#define ACC_CPP_ECONCAT5(a,b,c,d,e)     ACC_CPP_CONCAT5(a,b,c,d,e)#endif#define __ACC_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 ACC_EXTERN_C extern "C"#else#  define ACC_EXTERN_C extern#endif#if !defined(__ACC_OS_OVERRIDE)#if defined(ACC_OS_FREESTANDING)#  define ACC_INFO_OS           "freestanding"#elif defined(ACC_OS_EMBEDDED)#  define ACC_INFO_OS           "embedded"#elif 1 && defined(__IAR_SYSTEMS_ICC__)#  define ACC_OS_EMBEDDED       1#  define ACC_INFO_OS           "embedded"#elif defined(__CYGWIN__) && defined(__GNUC__)#  define ACC_OS_CYGWIN         1#  define ACC_INFO_OS           "cygwin"#elif defined(__EMX__) && defined(__GNUC__)#  define ACC_OS_EMX            1#  define ACC_INFO_OS           "emx"#elif defined(__BEOS__)#  define ACC_OS_BEOS           1#  define ACC_INFO_OS           "beos"#elif defined(__Lynx__)#  define ACC_OS_LYNXOS         1#  define ACC_INFO_OS           "lynxos"#elif defined(__OS400__)#  define ACC_OS_OS400          1#  define ACC_INFO_OS           "os400"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -