2
* This file is a part of the zlib compression module for NSIS.
4
* Copyright and license information can be found below.
5
* Modifications Copyright (C) 1999-2007 Nullsoft and Contributors
7
* The original zlib source code is available at
10
* This software is provided 'as-is', without any express or implied
14
/* zutil.h -- internal interface and configuration of the compression library
15
* Copyright (C) 1995-1998 Jean-loup Gailly.
16
* For conditions of distribution and use, see copyright notice in COPYING.nsis.
19
/* WARNING: this file should *not* be used by applications. It is
20
part of the implementation of the compression library and is
21
subject to change. Applications should only use zlib.h.
24
/* @(#) $Id: ZUTIL.H,v 1.6 2007/01/25 18:07:40 kichik Exp $ */
29
#include "nsis_zlib.h"
35
typedef unsigned char uch;
37
typedef unsigned short ush;
39
typedef unsigned long ulg;
42
# define DEF_WBITS MAX_WBITS
44
/* default windowBits for decompression. MAX_WBITS is for compression only */
46
#define DEF_MEM_LEVEL MAX_MEM_LEVEL
48
#define STORED_BLOCK 0
49
#define STATIC_TREES 1
51
/* The three kinds of block type */
55
/* The minimum and maximum match lengths */
57
#define PRESET_DICT 0x20 /* preset dictionary flag in zlib header */
60
#define zmemcpy memcpy
62
#define Assert(cond,msg)
69
#define ZALLOC(strm, items, size) malloc((items)*(size))
70
#define ZFREE(strm, addr) { if (addr) free(addr); }
71
#define TRY_FREE(s, p) { ZFREE(s, p); }
72
#define ERR_RETURN(strm,err) return (err)
74
#endif /* _Z_UTIL_H */