ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

zconf.h
Go to the documentation of this file.
00001 /* zconf.h -- configuration of the zlib compression library
00002  * Copyright (C) 1995-2002 Jean-loup Gailly.
00003  * For conditions of distribution and use, see copyright notice in zlib.h
00004  */
00005 
00006 /* @(#) $Id$ */
00007 
00008 #ifndef _ZCONF_H
00009 #define _ZCONF_H
00010 
00011 /*
00012  * If you *really* need a unique prefix for all types and library functions,
00013  * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
00014  */
00015 #ifdef Z_PREFIX
00016 #  define deflateInit_         z_deflateInit_
00017 #  define deflate              z_deflate
00018 #  define deflateEnd           z_deflateEnd
00019 #  define inflateInit_         z_inflateInit_
00020 #  define inflate              z_inflate
00021 #  define inflateEnd           z_inflateEnd
00022 #  define deflateInit2_        z_deflateInit2_
00023 #  define deflateSetDictionary z_deflateSetDictionary
00024 #  define deflateCopy          z_deflateCopy
00025 #  define deflateReset         z_deflateReset
00026 #  define deflateParams        z_deflateParams
00027 #  define inflateInit2_        z_inflateInit2_
00028 #  define inflateSetDictionary z_inflateSetDictionary
00029 #  define inflateSync          z_inflateSync
00030 #  define inflateSyncPoint     z_inflateSyncPoint
00031 #  define inflateReset         z_inflateReset
00032 #  define compress             z_compress
00033 #  define compress2            z_compress2
00034 #  define uncompress           z_uncompress
00035 #  define adler32              z_adler32
00036 #  define crc32                z_crc32
00037 #  define get_crc_table        z_get_crc_table
00038 
00039 #  define Byte   z_Byte
00040 #  define uInt   z_uInt
00041 #  define uLong  z_uLong
00042 #  define Bytef  z_Bytef
00043 #  define charf  z_charf
00044 #  define intf   z_intf
00045 #  define uIntf  z_uIntf
00046 #  define uLongf z_uLongf
00047 #  define voidpf z_voidpf
00048 #  define voidp  z_voidp
00049 #endif
00050 
00051 #if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
00052 #  define WIN32
00053 #endif
00054 #if defined(__GNUC__) || defined(WIN32) || defined(__386__) || defined(i386)
00055 #  ifndef __32BIT__
00056 #    define __32BIT__
00057 #  endif
00058 #endif
00059 #if defined(__MSDOS__) && !defined(MSDOS)
00060 #  define MSDOS
00061 #endif
00062 
00063 /* WinCE doesn't have errno.h */
00064 #ifdef _WIN32_WCE
00065 #  define NO_ERRNO_H
00066 #endif
00067 
00068 
00069 /*
00070  * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
00071  * than 64k bytes at a time (needed on systems with 16-bit int).
00072  */
00073 #if defined(MSDOS) && !defined(__32BIT__)
00074 #  define MAXSEG_64K
00075 #endif
00076 #ifdef MSDOS
00077 #  define UNALIGNED_OK
00078 #endif
00079 
00080 #if (defined(MSDOS) || defined(_WINDOWS) || defined(WIN32))  && !defined(STDC)
00081 #  define STDC
00082 #endif
00083 #if defined(__STDC__) || defined(__cplusplus) || defined(__OS2__)
00084 #  ifndef STDC
00085 #    define STDC
00086 #  endif
00087 #endif
00088 
00089 #ifndef STDC
00090 #  ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
00091 #    define const
00092 #  endif
00093 #endif
00094 
00095 /* Some Mac compilers merge all .h files incorrectly: */
00096 #if defined(__MWERKS__) || defined(applec) ||defined(THINK_C) ||defined(__SC__)
00097 #  define NO_DUMMY_DECL
00098 #endif
00099 
00100 /* Old Borland C and LCC incorrectly complains about missing returns: */
00101 #if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
00102 #  define NEED_DUMMY_RETURN
00103 #endif
00104 
00105 #if defined(__LCC__)
00106 #  define  NEED_DUMMY_RETURN
00107 #endif
00108 
00109 /* Maximum value for memLevel in deflateInit2 */
00110 #ifndef MAX_MEM_LEVEL
00111 #  ifdef MAXSEG_64K
00112 #    define MAX_MEM_LEVEL 8
00113 #  else
00114 #    define MAX_MEM_LEVEL 9
00115 #  endif
00116 #endif
00117 
00118 /* Maximum value for windowBits in deflateInit2 and inflateInit2.
00119  * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
00120  * created by gzip. (Files created by minigzip can still be extracted by
00121  * gzip.)
00122  */
00123 #ifndef MAX_WBITS
00124 #  define MAX_WBITS   15 /* 32K LZ77 window */
00125 #endif
00126 
00127 /* The memory requirements for deflate are (in bytes):
00128             (1 << (windowBits+2)) +  (1 << (memLevel+9))
00129  that is: 128K for windowBits=15  +  128K for memLevel = 8  (default values)
00130  plus a few kilobytes for small objects. For example, if you want to reduce
00131  the default memory requirements from 256K to 128K, compile with
00132      make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
00133  Of course this will generally degrade compression (there's no free lunch).
00134 
00135    The memory requirements for inflate are (in bytes) 1 << windowBits
00136  that is, 32K for windowBits=15 (default value) plus a few kilobytes
00137  for small objects.
00138 */
00139 
00140                         /* Type declarations */
00141 
00142 #ifndef OF /* function prototypes */
00143 #  ifdef STDC
00144 #    define OF(args)  args
00145 #  else
00146 #    define OF(args)  ()
00147 #  endif
00148 #endif
00149 
00150 /* The following definitions for FAR are needed only for MSDOS mixed
00151  * model programming (small or medium model with some far allocations).
00152  * This was tested only with MSC; for other MSDOS compilers you may have
00153  * to define NO_MEMCPY in zutil.h.  If you don't need the mixed model,
00154  * just define FAR to be empty.
00155  */
00156 #if (defined(M_I86SM) || defined(M_I86MM)) && !defined(__32BIT__)
00157    /* MSC small or medium model */
00158 #  define SMALL_MEDIUM
00159 #  ifdef _MSC_VER
00160 #    define FAR _far
00161 #  else
00162 #    define FAR far
00163 #  endif
00164 #endif
00165 #if defined(__BORLANDC__) && (defined(__SMALL__) || defined(__MEDIUM__))
00166 #  ifndef __32BIT__
00167 #    define SMALL_MEDIUM
00168 #    define FAR _far
00169 #  endif
00170 #endif
00171 
00172 /* Compile with -DZLIB_DLL for Windows DLL support */
00173 #if defined(ZLIB_DLL)
00174 #  if defined(_WINDOWS) || defined(WINDOWS)
00175 #    ifdef FAR
00176 #      undef FAR
00177 #    endif
00178 #    include <windows.h>
00179 #    define ZEXPORT(x)  x WINAPI
00180 #    ifdef WIN32
00181 #      define ZEXPORTVA(x)  x WINAPIV
00182 #    else
00183 #      define ZEXPORTVA(x)  x FAR _cdecl _export
00184 #    endif
00185 #  endif
00186 #  if defined (__BORLANDC__)
00187 #    if (__BORLANDC__ >= 0x0500) && defined (WIN32)
00188 #      include <windows.h>
00189 #      define ZEXPORT(x) x __declspec(dllexport) WINAPI
00190 #      define ZEXPORTRVA(x)  x __declspec(dllexport) WINAPIV
00191 #    else
00192 #      if defined (_Windows) && defined (__DLL__)
00193 #        define ZEXPORT(x) x _export
00194 #        define ZEXPORTVA(x) x _export
00195 #      endif
00196 #    endif
00197 #  endif
00198 #endif
00199 
00200 
00201 #ifndef ZEXPORT
00202 #  define ZEXPORT(x)   static x
00203 #endif
00204 #ifndef ZEXPORTVA
00205 #  define ZEXPORTVA(x)   static x
00206 #endif
00207 #ifndef ZEXTERN
00208 #  define ZEXTERN(x) static x
00209 #endif
00210 #ifndef ZEXTERNDEF
00211 #  define ZEXTERNDEF(x)  static x
00212 #endif
00213 
00214 #ifndef FAR
00215 #   define FAR
00216 #endif
00217 
00218 #if !defined(MACOS) && !defined(TARGET_OS_MAC)
00219 typedef unsigned char  Byte;  /* 8 bits */
00220 #endif
00221 typedef unsigned int   uInt;  /* 16 bits or more */
00222 typedef unsigned long  uLong; /* 32 bits or more */
00223 
00224 #ifdef SMALL_MEDIUM
00225    /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
00226 #  define Bytef Byte FAR
00227 #else
00228    typedef Byte  FAR Bytef;
00229 #endif
00230 typedef char  FAR charf;
00231 typedef int   FAR intf;
00232 typedef uInt  FAR uIntf;
00233 typedef uLong FAR uLongf;
00234 
00235 #ifdef STDC
00236    typedef void FAR *voidpf;
00237    typedef void     *voidp;
00238 #else
00239    typedef Byte FAR *voidpf;
00240    typedef Byte     *voidp;
00241 #endif
00242 
00243 #ifdef HAVE_UNISTD_H
00244 #  include <sys/types.h> /* for off_t */
00245 #  include <unistd.h>    /* for SEEK_* and off_t */
00246 #  define z_off_t  off_t
00247 #endif
00248 #ifndef SEEK_SET
00249 #  define SEEK_SET        0       /* Seek from beginning of file.  */
00250 #  define SEEK_CUR        1       /* Seek from current position.  */
00251 #  define SEEK_END        2       /* Set file pointer to EOF plus "offset" */
00252 #endif
00253 #ifndef z_off_t
00254 #  define  z_off_t long
00255 #endif
00256 
00257 /* MVS linker does not support external names larger than 8 bytes */
00258 #if defined(__MVS__)
00259 #   pragma map(deflateInit_,"DEIN")
00260 #   pragma map(deflateInit2_,"DEIN2")
00261 #   pragma map(deflateEnd,"DEEND")
00262 #   pragma map(inflateInit_,"ININ")
00263 #   pragma map(inflateInit2_,"ININ2")
00264 #   pragma map(inflateEnd,"INEND")
00265 #   pragma map(inflateSync,"INSY")
00266 #   pragma map(inflateSetDictionary,"INSEDI")
00267 #   pragma map(inflate_blocks,"INBL")
00268 #   pragma map(inflate_blocks_new,"INBLNE")
00269 #   pragma map(inflate_blocks_free,"INBLFR")
00270 #   pragma map(inflate_blocks_reset,"INBLRE")
00271 #   pragma map(inflate_codes_free,"INCOFR")
00272 #   pragma map(inflate_codes,"INCO")
00273 #   pragma map(inflate_fast,"INFA")
00274 #   pragma map(inflate_flush,"INFLU")
00275 #   pragma map(inflate_mask,"INMA")
00276 #   pragma map(inflate_set_dictionary,"INSEDI2")
00277 #   pragma map(inflate_copyright,"INCOPY")
00278 #   pragma map(inflate_trees_bits,"INTRBI")
00279 #   pragma map(inflate_trees_dynamic,"INTRDY")
00280 #   pragma map(inflate_trees_fixed,"INTRFI")
00281 #   pragma map(inflate_trees_free,"INTRFR")
00282 #endif
00283 
00284 #endif /* _ZCONF_H */

Generated on Sun May 27 2012 04:33:17 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.