17# define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
24#if defined(STDC) && !defined(Z_SOLO)
25# if !(defined(_WIN32_WCE) && defined(_MSC_VER))
39typedef unsigned char uch;
41typedef unsigned short ush;
43typedef unsigned long ulg;
45#if !defined(Z_U8) && !defined(Z_SOLO) && defined(STDC)
47# if (ULONG_MAX == 0xffffffffffffffff)
48# define Z_U8 unsigned long
49# elif (ULLONG_MAX == 0xffffffffffffffff)
50# define Z_U8 unsigned long long
51# elif (UINT_MAX == 0xffffffffffffffff)
56extern z_const
char *
const z_errmsg[10];
59#define ERR_MSG(err) z_errmsg[(err) < -6 || (err) > 2 ? 9 : 2 - (err)]
61#define ERR_RETURN(strm,err) \
62 return (strm->msg = ERR_MSG(err), (err))
68# define DEF_WBITS MAX_WBITS
73# define DEF_MEM_LEVEL 8
75# define DEF_MEM_LEVEL MAX_MEM_LEVEL
88#define PRESET_DICT 0x20
92#if defined(MSDOS) || (defined(WINDOWS) && !defined(WIN32))
95# if defined(__TURBOC__) || defined(__BORLANDC__)
96# if (__STDC__ == 1) && (defined(__LARGE__) || defined(__COMPACT__))
98 void _Cdecl farfree(
void *
block );
99 void *_Cdecl farmalloc(
unsigned long nbytes );
113#if defined(VAXC) || defined(VMS)
115# define F_OPEN(name, mode) \
116 fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
120# if __TARGET_LIB__ < 0x20000000
122# elif __TARGET_LIB__ < 0x40000000
129#if defined(ATARI) || defined(atarist)
135# if defined(M_I86) && !defined(Z_SOLO)
144#if defined(WIN32) && !defined(__CYGWIN__)
160#if defined(__BORLANDC__) && !defined(MSDOS)
167#if !defined(_WIN32) && \
168 (!defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0)
181# define F_OPEN(name, mode) fopen((name), (mode))
186#if defined(pyr) || defined(Z_SOLO)
189#if defined(SMALL_MEDIUM) && !defined(_MSC_VER) && !defined(__SC__)
196#if defined(STDC) && !defined(HAVE_MEMCPY) && !defined(NO_MEMCPY)
201# define zmemcpy _fmemcpy
202# define zmemcmp _fmemcmp
203# define zmemzero(dest, len) _fmemset(dest, 0, len)
205# define zmemcpy memcpy
206# define zmemcmp memcmp
207# define zmemzero(dest, len) memset(dest, 0, len)
220# define Assert(cond,msg) {if(!(cond)) z_error(msg);}
221# define Trace(x) {if (z_verbose>=0) fprintf x ;}
222# define Tracev(x) {if (z_verbose>0) fprintf x ;}
223# define Tracevv(x) {if (z_verbose>1) fprintf x ;}
224# define Tracec(c,x) {if (z_verbose>0 && (c)) fprintf x ;}
225# define Tracecv(c,x) {if (z_verbose>1 && (c)) fprintf x ;}
227# define Assert(cond,msg)
241#define ZALLOC(strm, items, size) \
242 (*((strm)->zalloc))((strm)->opaque, (items), (size))
243#define ZFREE(strm, addr) (*((strm)->zfree))((strm)->opaque, (voidpf)(addr))
244#define TRY_FREE(s, p) {if (p) ZFREE(s, p);}
247#define ZSWAP32(q) ((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \
248 (((q) & 0xff00) << 8) + (((q) & 0xff) << 24))
void ZLIB_INTERNAL zcfree(voidpf opaque, voidpf ptr)
voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, unsigned items, unsigned size)
z_const char *const z_errmsg[10]
ZEXTERN uLong ZEXPORT crc32_combine64(uLong, uLong, z_off_t)
void ZLIB_INTERNAL zmemzero(Bytef *dest, uInt len)
int ZLIB_INTERNAL zmemcmp(const Bytef *s1, const Bytef *s2, uInt len)
void ZLIB_INTERNAL zmemcpy(Bytef *dest, const Bytef *source, uInt len)
ZEXTERN uLong ZEXPORT crc32_combine_gen64(z_off_t)
ZEXTERN uLong ZEXPORT adler32_combine64(uLong, uLong, z_off_t)