OLD | NEW |
1 /* zutil.h -- internal interface and configuration of the compression library | 1 /* zutil.h -- internal interface and configuration of the compression library |
2 * Copyright (C) 1995-2013 Jean-loup Gailly. | 2 * Copyright (C) 1995-2013 Jean-loup Gailly. |
3 * For conditions of distribution and use, see copyright notice in zlib.h | 3 * For conditions of distribution and use, see copyright notice in zlib.h |
4 */ | 4 */ |
5 | 5 |
6 /* WARNING: this file should *not* be used by applications. It is | 6 /* WARNING: this file should *not* be used by applications. It is |
7 part of the implementation of the compression library and is | 7 part of the implementation of the compression library and is |
8 subject to change. Applications should only use zlib.h. | 8 subject to change. Applications should only use zlib.h. |
9 */ | 9 */ |
10 | 10 |
11 /* @(#) $Id$ */ | 11 /* @(#) $Id$ */ |
12 | 12 |
13 #ifndef ZUTIL_H | 13 #ifndef ZUTIL_H |
14 #define ZUTIL_H | 14 #define ZUTIL_H |
15 | 15 |
16 #include "../../core/include/fxcrt/fx_system.h"»» /* XYQ 2007-5-22 */ | 16 #include "core/include/fxcrt/fx_system.h" |
17 | 17 |
18 #ifdef HAVE_HIDDEN | 18 #ifdef HAVE_HIDDEN |
19 # define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) | 19 # define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) |
20 #else | 20 #else |
21 # define ZLIB_INTERNAL | 21 # define ZLIB_INTERNAL |
22 #endif | 22 #endif |
23 | 23 |
24 #include "zlib.h" | 24 #include "zlib.h" |
25 | 25 |
26 #if defined(STDC) && !defined(Z_SOLO) | 26 #if defined(STDC) && !defined(Z_SOLO) |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 #define ZALLOC(strm, items, size) \ | 246 #define ZALLOC(strm, items, size) \ |
247 (*((strm)->zalloc))((strm)->opaque, (items), (size)) | 247 (*((strm)->zalloc))((strm)->opaque, (items), (size)) |
248 #define ZFREE(strm, addr) (*((strm)->zfree))((strm)->opaque, (voidpf)(addr)) | 248 #define ZFREE(strm, addr) (*((strm)->zfree))((strm)->opaque, (voidpf)(addr)) |
249 #define TRY_FREE(s, p) {if (p) ZFREE(s, p);} | 249 #define TRY_FREE(s, p) {if (p) ZFREE(s, p);} |
250 | 250 |
251 /* Reverse the bytes in a 32-bit value */ | 251 /* Reverse the bytes in a 32-bit value */ |
252 #define ZSWAP32(q) ((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \ | 252 #define ZSWAP32(q) ((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \ |
253 (((q) & 0xff00) << 8) + (((q) & 0xff) << 24)) | 253 (((q) & 0xff00) << 8) + (((q) & 0xff) << 24)) |
254 | 254 |
255 #endif /* ZUTIL_H */ | 255 #endif /* ZUTIL_H */ |
OLD | NEW |