Debian Codegraph @

libclamav/nsis/nsis_zutil.h

raw symbols SCIP
1 /*
2 * This file is a part of the zlib compression module for NSIS.
3 *
4 * Copyright and license information can be found below.
5 * Modifications Copyright (C) 1999-2007 Nullsoft and Contributors
6 *
7 * The original zlib source code is available at
8 * http://www.zlib.net/
9 *
10 * This software is provided 'as-is', without any express or implied
11 * warranty.
12 */
13
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.
17 */
18
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.
22 */
23
24 /* @(#) $Id: ZUTIL.H,v 1.6 2007/01/25 18:07:40 kichik Exp $ */
25
26 #ifndef _Z_UTIL_H
27 #define _Z_UTIL_H
28
29 #include "nsis_zlib.h"
30
31 #ifndef local
32 # define local static
33 #endif
34
35 typedef unsigned char uch;
36 typedef uch FAR uchf;
37 typedef unsigned short ush;
38 typedef ush FAR ushf;
39 typedef unsigned long ulg;
40
41 #ifndef DEF_WBITS
42 # define DEF_WBITS MAX_WBITS
43 #endif
44 /* default windowBits for decompression. MAX_WBITS is for compression only */
45
46 #define DEF_MEM_LEVEL MAX_MEM_LEVEL
47
48 #define STORED_BLOCK 0
49 #define STATIC_TREES 1
50 #define DYN_TREES 2
51 /* The three kinds of block type */
52
53 #define MIN_MATCH 3
54 #define MAX_MATCH 258
55 /* The minimum and maximum match lengths */
56
57 #define PRESET_DICT 0x20 /* preset dictionary flag in zlib header */
58
59
60 #define zmemcpy memcpy
61
62 #define Assert(cond,msg)
63 #define Trace(x)
64 #define Tracev(x)
65 #define Tracevv(x)
66 #define Tracec(c,x)
67 #define Tracecv(c,x)
68
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)
73
74 #endif /* _Z_UTIL_H */