1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/compressionlibs/ziplib/test/oldezlib/inc/OldEZConf.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,310 @@
1.4 +/* zconf.h -- configuration of the zlib compression library
1.5 + * Copyright (C) 1995-1998 Jean-loup Gailly.
1.6 + * For conditions of distribution and use, see copyright notice in zlib.h
1.7 + */
1.8 +
1.9 +/**
1.10 +@file
1.11 +Contains macro definitions for ezlib library (included from EZlib.h)
1.12 +@internalAll
1.13 +*/
1.14 +
1.15 +/* @(#) $Id$ */
1.16 +
1.17 +#ifndef _EZLIB_ZCONF_H
1.18 +#define _EZLIB_ZCONF_H
1.19 +
1.20 +/*
1.21 + * If you *really* need a unique prefix for all types and library functions,
1.22 + * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
1.23 + */
1.24 +#ifdef Z_PREFIX
1.25 +# define deflateInit_ z_deflateInit_
1.26 +# define deflate z_deflate
1.27 +# define deflateEnd z_deflateEnd
1.28 +# define inflateInit_ z_inflateInit_
1.29 +# define inflate z_inflate
1.30 +# define inflateEnd z_inflateEnd
1.31 +# define deflateInit2_ z_deflateInit2_
1.32 +# define deflateSetDictionary z_deflateSetDictionary
1.33 +# define deflateCopy z_deflateCopy
1.34 +# define deflateReset z_deflateReset
1.35 +# define deflateParams z_deflateParams
1.36 +# define inflateInit2_ z_inflateInit2_
1.37 +# define inflateSetDictionary z_inflateSetDictionary
1.38 +# define inflateSync z_inflateSync
1.39 +# define inflateSyncPoint z_inflateSyncPoint
1.40 +# define inflateReset z_inflateReset
1.41 +# define compress z_compress
1.42 +# define compress2 z_compress2
1.43 +# define uncompress z_uncompress
1.44 +# define adler32 z_adler32
1.45 +# define crc32 z_crc32
1.46 +# define get_crc_table z_get_crc_table
1.47 +
1.48 +# define Byte z_Byte
1.49 +# define uInt z_uInt
1.50 +# define uLong z_uLong
1.51 +# define Bytef z_Bytef
1.52 +# define charf z_charf
1.53 +# define intf z_intf
1.54 +# define uIntf z_uIntf
1.55 +# define uLongf z_uLongf
1.56 +# define voidpf z_voidpf
1.57 +# define voidp z_voidp
1.58 +#endif
1.59 +
1.60 +#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
1.61 +# define WIN32
1.62 +#endif
1.63 +#if defined(__GNUC__) || defined(WIN32) || defined(__386__) || defined(i386)
1.64 +# ifndef __32BIT__
1.65 +# define __32BIT__
1.66 +# endif
1.67 +#endif
1.68 +#if defined(__MSDOS__) && !defined(MSDOS)
1.69 +# define MSDOS
1.70 +#endif
1.71 +
1.72 +/*
1.73 + * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
1.74 + * than 64k bytes at a time (needed on systems with 16-bit int).
1.75 + */
1.76 +#if defined(MSDOS) && !defined(__32BIT__)
1.77 +# define MAXSEG_64K
1.78 +#endif
1.79 +#ifdef MSDOS
1.80 +# define UNALIGNED_OK
1.81 +#endif
1.82 +
1.83 +#if (defined(MSDOS) || defined(_WINDOWS) || defined(WIN32)) && !defined(STDC)
1.84 +# define STDC
1.85 +#endif
1.86 +#if defined(__STDC__) || defined(__cplusplus) || defined(__OS2__)
1.87 +# ifndef STDC
1.88 +# define STDC
1.89 +# endif
1.90 +#endif
1.91 +
1.92 +#ifndef STDC
1.93 +# ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
1.94 +# define const
1.95 +# endif
1.96 +#endif
1.97 +
1.98 +/* Some Mac compilers merge all .h files incorrectly: */
1.99 +#if defined(__MWERKS__) || defined(applec) ||defined(THINK_C) ||defined(__SC__)
1.100 +# define NO_DUMMY_DECL
1.101 +#endif
1.102 +
1.103 +/* Old Borland C incorrectly complains about missing returns: */
1.104 +#if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
1.105 +# define NEED_DUMMY_RETURN
1.106 +#endif
1.107 +
1.108 +
1.109 +/* Maximum value for memLevel in deflateInit2 */
1.110 +#ifndef MAX_MEM_LEVEL
1.111 +# ifdef MAXSEG_64K
1.112 +# define MAX_MEM_LEVEL 8
1.113 +# else
1.114 +# define MAX_MEM_LEVEL 9
1.115 +# endif
1.116 +#endif
1.117 +
1.118 +/**
1.119 +Maximum value for windowBits in deflateInit2 and inflateInit2.
1.120 +WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
1.121 +created by gzip. (Files created by minigzip can still be extracted by
1.122 +gzip.)
1.123 +@publishedPartner
1.124 +@externallyDefinedApi
1.125 +*/
1.126 +#ifndef MAX_WBITS
1.127 +# define MAX_WBITS 15 /* 32K LZ77 window */
1.128 +#endif
1.129 +
1.130 +/* The memory requirements for deflate are (in bytes):
1.131 + (1 << (windowBits+2)) + (1 << (memLevel+9))
1.132 + that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values)
1.133 + plus a few kilobytes for small objects. For example, if you want to reduce
1.134 + the default memory requirements from 256K to 128K, compile with
1.135 + make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
1.136 + Of course this will generally degrade compression (there's no free lunch).
1.137 +
1.138 + The memory requirements for inflate are (in bytes) 1 << windowBits
1.139 + that is, 32K for windowBits=15 (default value) plus a few kilobytes
1.140 + for small objects.
1.141 +*/
1.142 +
1.143 + /* Type declarations */
1.144 +
1.145 +#ifndef OF /* function prototypes */
1.146 +# ifdef STDC
1.147 +# define OF(args) args
1.148 +# else
1.149 +# define OF(args) ()
1.150 +# endif
1.151 +#endif
1.152 +
1.153 +/* The following definitions for FAR are needed only for MSDOS mixed
1.154 + * model programming (small or medium model with some far allocations).
1.155 + * This was tested only with MSC; for other MSDOS compilers you may have
1.156 + * to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
1.157 + * just define FAR to be empty.
1.158 + */
1.159 +#if (defined(M_I86SM) || defined(M_I86MM)) && !defined(__32BIT__)
1.160 + /* MSC small or medium model */
1.161 +# define SMALL_MEDIUM
1.162 +# ifdef _MSC_VER
1.163 +# define FAR _far
1.164 +# else
1.165 +# define FAR far
1.166 +# endif
1.167 +#endif
1.168 +#if defined(__BORLANDC__) && (defined(__SMALL__) || defined(__MEDIUM__))
1.169 +# ifndef __32BIT__
1.170 +# define SMALL_MEDIUM
1.171 +# define FAR _far
1.172 +# endif
1.173 +#endif
1.174 +
1.175 +/* Compile with -DZLIB_DLL for Windows DLL support */
1.176 +#if defined(ZLIB_DLL)
1.177 +# if defined(_WINDOWS) || defined(WINDOWS)
1.178 +# ifdef FAR
1.179 +# undef FAR
1.180 +# endif
1.181 +# include <windows.h>
1.182 +# define ZEXPORT WINAPI
1.183 +# ifdef WIN32
1.184 +# define ZEXPORTVA WINAPIV
1.185 +# else
1.186 +# define ZEXPORTVA FAR _cdecl _export
1.187 +# endif
1.188 +# endif
1.189 +# if defined (__BORLANDC__)
1.190 +# if (__BORLANDC__ >= 0x0500) && defined (WIN32)
1.191 +# include <windows.h>
1.192 +# define ZEXPORT __declspec(dllexport) WINAPI
1.193 +# define ZEXPORTRVA __declspec(dllexport) WINAPIV
1.194 +# else
1.195 +# if defined (_Windows) && defined (__DLL__)
1.196 +# define ZEXPORT _export
1.197 +# define ZEXPORTVA _export
1.198 +# endif
1.199 +# endif
1.200 +# endif
1.201 +#endif
1.202 +
1.203 +#if defined (__BEOS__)
1.204 +# if defined (ZLIB_DLL)
1.205 +# define ZEXTERN extern __declspec(dllexport)
1.206 +# else
1.207 +# define ZEXTERN extern __declspec(dllimport)
1.208 +# endif
1.209 +#endif
1.210 +
1.211 +#ifndef ZEXPORT
1.212 +# define ZEXPORT
1.213 +#endif
1.214 +#ifndef ZEXPORTVA
1.215 +# define ZEXPORTVA
1.216 +#endif
1.217 +#ifndef ZEXTERN
1.218 +# ifdef __VC32__
1.219 +# define ZEXTERN extern __declspec(dllexport)
1.220 +# endif
1.221 +# ifdef __CW32__
1.222 +# define ZEXTERN extern __declspec(dllexport)
1.223 +# endif
1.224 +# ifdef __GCC32__
1.225 +# define ZEXTERN extern
1.226 +# endif
1.227 +# ifdef __GCCE__
1.228 +# define ZEXTERN extern
1.229 +# endif
1.230 +# ifdef __ARMCC__
1.231 +# define ZEXTERN extern __declspec(dllimport)
1.232 +# endif
1.233 +#endif
1.234 +#ifndef EXPORT_C
1.235 +# define EXPORT_C __declspec(dllexport)
1.236 +#endif
1.237 +
1.238 +#ifndef FAR
1.239 +# define FAR
1.240 +#endif
1.241 +
1.242 +#if !defined(MACOS) && !defined(TARGET_OS_MAC)
1.243 +typedef unsigned char Byte; /* 8 bits */
1.244 +#endif
1.245 +typedef unsigned int uInt; /* 16 bits or more */
1.246 +/**
1.247 +32-bits or more unsigned integer for use in the zlib.h API.
1.248 +@publishedPartner
1.249 +@externallyDefinedApi
1.250 +*/
1.251 +typedef unsigned long uLong; /* 32 bits or more */
1.252 +
1.253 +#ifdef SMALL_MEDIUM
1.254 + /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
1.255 +# define Bytef Byte FAR
1.256 +#else
1.257 + typedef Byte FAR Bytef;
1.258 +#endif
1.259 +typedef char FAR charf;
1.260 +typedef int FAR intf;
1.261 +typedef uInt FAR uIntf;
1.262 +typedef uLong FAR uLongf;
1.263 +
1.264 +#ifdef STDC
1.265 + typedef void FAR *voidpf;
1.266 + typedef void *voidp;
1.267 +#else
1.268 + typedef Byte FAR *voidpf;
1.269 + typedef Byte *voidp;
1.270 +#endif
1.271 +
1.272 +#ifdef HAVE_UNISTD_H
1.273 +//# include <sys/types.h> /* for off_t */
1.274 +//# include <unistd.h> /* for SEEK_* and off_t */
1.275 +# define z_off_t off_t
1.276 +#endif
1.277 +#ifndef SEEK_SET
1.278 +# define SEEK_SET 0 /* Seek from beginning of file. */
1.279 +# define SEEK_CUR 1 /* Seek from current position. */
1.280 +# define SEEK_END 2 /* Set file pointer to EOF plus "offset" */
1.281 +#endif
1.282 +#ifndef z_off_t
1.283 +# define z_off_t long
1.284 +#endif
1.285 +
1.286 +/* MVS linker does not support external names larger than 8 bytes */
1.287 +#if defined(__MVS__)
1.288 +# pragma map(deflateInit_,"DEIN")
1.289 +# pragma map(deflateInit2_,"DEIN2")
1.290 +# pragma map(deflateEnd,"DEEND")
1.291 +# pragma map(inflateInit_,"ININ")
1.292 +# pragma map(inflateInit2_,"ININ2")
1.293 +# pragma map(inflateEnd,"INEND")
1.294 +# pragma map(inflateSync,"INSY")
1.295 +# pragma map(inflateSetDictionary,"INSEDI")
1.296 +# pragma map(inflate_blocks,"INBL")
1.297 +# pragma map(inflate_blocks_new,"INBLNE")
1.298 +# pragma map(inflate_blocks_free,"INBLFR")
1.299 +# pragma map(inflate_blocks_reset,"INBLRE")
1.300 +# pragma map(inflate_codes_free,"INCOFR")
1.301 +# pragma map(inflate_codes,"INCO")
1.302 +# pragma map(inflate_fast,"INFA")
1.303 +# pragma map(inflate_flush,"INFLU")
1.304 +# pragma map(inflate_mask,"INMA")
1.305 +# pragma map(inflate_set_dictionary,"INSEDI2")
1.306 +# pragma map(inflate_copyright,"INCOPY")
1.307 +# pragma map(inflate_trees_bits,"INTRBI")
1.308 +# pragma map(inflate_trees_dynamic,"INTRDY")
1.309 +# pragma map(inflate_trees_fixed,"INTRFI")
1.310 +# pragma map(inflate_trees_free,"INTRFR")
1.311 +#endif
1.312 +
1.313 +#endif /* _EZLIB_ZCONF_H */