14 #if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) && !defined(NO_VIZ) 15 # define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) 17 # define ZLIB_INTERNAL 23 # if !(defined(_WIN32_WCE) && defined(_MSC_VER)) 35 typedef unsigned char uch;
37 typedef unsigned short ush;
39 typedef unsigned long ulg;
41 extern const char *
const z_errmsg[10];
44 #define ERR_MSG(err) z_errmsg[Z_NEED_DICT-(err)] 46 #define ERR_RETURN(strm,err) \ 47 return (strm->msg = (char*)ERR_MSG(err), (err)) 53 # define DEF_WBITS MAX_WBITS 57 #if MAX_MEM_LEVEL >= 8 58 # define DEF_MEM_LEVEL 8 60 # define DEF_MEM_LEVEL MAX_MEM_LEVEL 64 #define STORED_BLOCK 0 65 #define STATIC_TREES 1 73 #define PRESET_DICT 0x20 77 #if defined(MSDOS) || (defined(WINDOWS) && !defined(WIN32)) 79 # if defined(__TURBOC__) || defined(__BORLANDC__) 80 # if (__STDC__ == 1) && (defined(__LARGE__) || defined(__COMPACT__)) 82 void _Cdecl farfree(
void *block );
83 void *_Cdecl farmalloc(
unsigned long nbytes );
96 #if defined(VAXC) || defined(VMS) 98 # define F_OPEN(name, mode) \ 99 fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512") 102 #if defined(ATARI) || defined(atarist) 103 # define OS_CODE 0x05 107 # define OS_CODE 0x06 113 #if defined(MACOS) || defined(TARGET_OS_MAC) 114 # define OS_CODE 0x07 115 # if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os 119 # define fdopen(fd,mode) NULL 125 # define OS_CODE 0x0a 130 # define OS_CODE 0x0b 135 # define OS_CODE 0x0f 138 #if defined(_BEOS_) || defined(RISCOS) 139 # define fdopen(fd,mode) NULL 142 #if (defined(_MSC_VER) && (_MSC_VER > 600)) && !defined __INTERIX 143 # if defined(_WIN32_WCE) 144 # define fdopen(fd,mode) NULL 145 # ifndef _PTRDIFF_T_DEFINED 146 typedef int ptrdiff_t;
147 # define _PTRDIFF_T_DEFINED 150 # define fdopen(fd,type) _fdopen(fd,type) 154 #if defined(__BORLANDC__) 161 #if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0 162 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
163 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
169 # define OS_CODE 0x03 173 # define F_OPEN(name, mode) fopen((name), (mode)) 178 #if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550) 179 # ifndef HAVE_VSNPRINTF 180 # define HAVE_VSNPRINTF 183 #if defined(__CYGWIN__) 184 # ifndef HAVE_VSNPRINTF 185 # define HAVE_VSNPRINTF 188 #ifndef HAVE_VSNPRINTF 192 # define NO_vsnprintf 195 # define NO_vsnprintf 199 # if !defined(vsnprintf) && !defined(NO_vsnprintf) 200 # if !defined(_MSC_VER) || ( defined(_MSC_VER) && _MSC_VER < 1500 ) 201 # define vsnprintf _vsnprintf 206 # define NO_vsnprintf 210 # define NO_vsnprintf 216 #if defined(SMALL_MEDIUM) && !defined(_MSC_VER) && !defined(__SC__) 223 #if defined(STDC) && !defined(HAVE_MEMCPY) && !defined(NO_MEMCPY) 228 # define zmemcpy _fmemcpy 229 # define zmemcmp _fmemcmp 230 # define zmemzero(dest, len) _fmemset(dest, 0, len) 232 # define zmemcpy memcpy 233 # define zmemcmp memcmp 234 # define zmemzero(dest, len) memset(dest, 0, len) 237 void ZLIB_INTERNAL zmemcpy OF((Bytef* dest,
const Bytef* source, uInt len));
238 int ZLIB_INTERNAL zmemcmp OF((
const Bytef* s1,
const Bytef* s2, uInt len));
239 void ZLIB_INTERNAL zmemzero OF((Bytef* dest, uInt len));
245 extern int ZLIB_INTERNAL z_verbose;
246 extern void ZLIB_INTERNAL z_error OF((
char *m));
247 # define Assert(cond,msg) {if(!(cond)) z_error(msg);} 248 # define Trace(x) {if (z_verbose>=0) fprintf x ;} 249 # define Tracev(x) {if (z_verbose>0) fprintf x ;} 250 # define Tracevv(x) {if (z_verbose>1) fprintf x ;} 251 # define Tracec(c,x) {if (z_verbose>0 && (c)) fprintf x ;} 252 # define Tracecv(c,x) {if (z_verbose>1 && (c)) fprintf x ;} 254 # define Assert(cond,msg) 259 # define Tracecv(c,x) 263 voidpf ZLIB_INTERNAL zcalloc OF((voidpf
opaque,
unsigned items,
265 void ZLIB_INTERNAL zcfree OF((voidpf
opaque, voidpf ptr));
267 #define ZALLOC(strm, items, size) \ 268 (*((strm)->zalloc))((strm)->opaque, (items), (size)) 269 #define ZFREE(strm, addr) (*((strm)->zfree))((strm)->opaque, (voidpf)(addr)) 270 #define TRY_FREE(s, p) {if (p) ZFREE(s, p);}
unsigned size
Definition: tte.h:74