react-native-mmkv-dz 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +219 -0
- package/MMKV/CHANGELOG.md +553 -0
- package/MMKV/Core/CMakeLists.txt +153 -0
- package/MMKV/Core/CodedInputData.cpp +228 -0
- package/MMKV/Core/CodedInputData.h +83 -0
- package/MMKV/Core/CodedInputDataCrypt.cpp +280 -0
- package/MMKV/Core/CodedInputDataCrypt.h +87 -0
- package/MMKV/Core/CodedInputDataCrypt_OSX.cpp +62 -0
- package/MMKV/Core/CodedInputData_OSX.cpp +92 -0
- package/MMKV/Core/CodedOutputData.cpp +174 -0
- package/MMKV/Core/CodedOutputData.h +82 -0
- package/MMKV/Core/Core.xcodeproj/project.pbxproj +702 -0
- package/MMKV/Core/Core.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/MMKV/Core/Core.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/MMKV/Core/Core.xcodeproj/xcshareddata/xcschemes/Core.xcscheme +67 -0
- package/MMKV/Core/Core.xcodeproj/xcshareddata/xcschemes/MMKVWatchCore.xcscheme +67 -0
- package/MMKV/Core/InterProcessLock.cpp +186 -0
- package/MMKV/Core/InterProcessLock.h +119 -0
- package/MMKV/Core/InterProcessLock_Android.cpp +103 -0
- package/MMKV/Core/InterProcessLock_Win32.cpp +108 -0
- package/MMKV/Core/KeyValueHolder.cpp +236 -0
- package/MMKV/Core/KeyValueHolder.h +118 -0
- package/MMKV/Core/MMBuffer.cpp +185 -0
- package/MMKV/Core/MMBuffer.h +107 -0
- package/MMKV/Core/MMKV.cpp +1418 -0
- package/MMKV/Core/MMKV.h +386 -0
- package/MMKV/Core/MMKVLog.cpp +127 -0
- package/MMKV/Core/MMKVLog.h +86 -0
- package/MMKV/Core/MMKVLog_Android.cpp +79 -0
- package/MMKV/Core/MMKVMetaInfo.hpp +81 -0
- package/MMKV/Core/MMKVPredef.h +245 -0
- package/MMKV/Core/MMKV_Android.cpp +259 -0
- package/MMKV/Core/MMKV_IO.cpp +1119 -0
- package/MMKV/Core/MMKV_IO.h +57 -0
- package/MMKV/Core/MMKV_OSX.cpp +347 -0
- package/MMKV/Core/MMKV_OSX.h +51 -0
- package/MMKV/Core/MemoryFile.cpp +537 -0
- package/MMKV/Core/MemoryFile.h +182 -0
- package/MMKV/Core/MemoryFile_Android.cpp +211 -0
- package/MMKV/Core/MemoryFile_Linux.cpp +120 -0
- package/MMKV/Core/MemoryFile_OSX.cpp +142 -0
- package/MMKV/Core/MemoryFile_Win32.cpp +536 -0
- package/MMKV/Core/MiniPBCoder.cpp +366 -0
- package/MMKV/Core/MiniPBCoder.h +129 -0
- package/MMKV/Core/MiniPBCoder_OSX.cpp +228 -0
- package/MMKV/Core/PBEncodeItem.hpp +86 -0
- package/MMKV/Core/PBUtility.cpp +61 -0
- package/MMKV/Core/PBUtility.h +153 -0
- package/MMKV/Core/ScopedLock.hpp +69 -0
- package/MMKV/Core/ThreadLock.cpp +68 -0
- package/MMKV/Core/ThreadLock.h +78 -0
- package/MMKV/Core/ThreadLock_Win32.cpp +89 -0
- package/MMKV/Core/aes/AESCrypt.cpp +256 -0
- package/MMKV/Core/aes/AESCrypt.h +107 -0
- package/MMKV/Core/aes/openssl/openssl_aes-armv4.S +1231 -0
- package/MMKV/Core/aes/openssl/openssl_aes.h +118 -0
- package/MMKV/Core/aes/openssl/openssl_aes_core.cpp +1044 -0
- package/MMKV/Core/aes/openssl/openssl_aes_locl.h +38 -0
- package/MMKV/Core/aes/openssl/openssl_aesv8-armx.S +308 -0
- package/MMKV/Core/aes/openssl/openssl_arm_arch.h +84 -0
- package/MMKV/Core/aes/openssl/openssl_cfb128.cpp +97 -0
- package/MMKV/Core/aes/openssl/openssl_md32_common.h +254 -0
- package/MMKV/Core/aes/openssl/openssl_md5.h +49 -0
- package/MMKV/Core/aes/openssl/openssl_md5_dgst.cpp +166 -0
- package/MMKV/Core/aes/openssl/openssl_md5_locl.h +75 -0
- package/MMKV/Core/aes/openssl/openssl_md5_one.cpp +30 -0
- package/MMKV/Core/aes/openssl/openssl_opensslconf.h +271 -0
- package/MMKV/Core/core.vcxproj +186 -0
- package/MMKV/Core/core.vcxproj.filters +150 -0
- package/MMKV/Core/crc32/Checksum.h +67 -0
- package/MMKV/Core/crc32/crc32_armv8.cpp +132 -0
- package/MMKV/Core/crc32/zlib/crc32.cpp +55 -0
- package/MMKV/Core/crc32/zlib/crc32.h +48 -0
- package/MMKV/Core/crc32/zlib/zconf.h +380 -0
- package/MMKV/Core/crc32/zlib/zutil.h +25 -0
- package/MMKV/LICENSE.TXT +193 -0
- package/MMKV/README.md +288 -0
- package/README.md +221 -0
- package/android/CMakeLists.txt +71 -0
- package/android/build.gradle +371 -0
- package/android/gradle.properties +4 -0
- package/android/src/main/AndroidManifest.xml +4 -0
- package/android/src/main/cpp/MmkvHostObject.cpp +302 -0
- package/android/src/main/cpp/MmkvHostObject.h +26 -0
- package/android/src/main/cpp/cpp-adapter.cpp +65 -0
- package/android/src/main/java/com/reactnativemmkv/MmkvModule.java +49 -0
- package/android/src/main/java/com/reactnativemmkv/MmkvPackage.java +26 -0
- package/cpp/TypedArray.cpp +341 -0
- package/cpp/TypedArray.h +175 -0
- package/ios/JSIUtils.h +50 -0
- package/ios/JSIUtils.mm +194 -0
- package/ios/Mmkv.xcodeproj/project.pbxproj +291 -0
- package/ios/MmkvHostObject.h +27 -0
- package/ios/MmkvHostObject.mm +299 -0
- package/ios/MmkvModule.h +5 -0
- package/ios/MmkvModule.mm +73 -0
- package/lib/commonjs/MMKV.js +146 -0
- package/lib/commonjs/MMKV.js.map +1 -0
- package/lib/commonjs/PlatformChecker.js +16 -0
- package/lib/commonjs/PlatformChecker.js.map +1 -0
- package/lib/commonjs/createMMKV.js +66 -0
- package/lib/commonjs/createMMKV.js.map +1 -0
- package/lib/commonjs/createMMKV.mock.js +40 -0
- package/lib/commonjs/createMMKV.mock.js.map +1 -0
- package/lib/commonjs/createMMKV.web.js +77 -0
- package/lib/commonjs/createMMKV.web.js.map +1 -0
- package/lib/commonjs/createTextEncoder.js +24 -0
- package/lib/commonjs/createTextEncoder.js.map +1 -0
- package/lib/commonjs/hooks.js +200 -0
- package/lib/commonjs/hooks.js.map +1 -0
- package/lib/commonjs/index.js +32 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/module/MMKV.js +134 -0
- package/lib/module/MMKV.js.map +1 -0
- package/lib/module/PlatformChecker.js +9 -0
- package/lib/module/PlatformChecker.js.map +1 -0
- package/lib/module/createMMKV.js +55 -0
- package/lib/module/createMMKV.js.map +1 -0
- package/lib/module/createMMKV.mock.js +31 -0
- package/lib/module/createMMKV.mock.js.map +1 -0
- package/lib/module/createMMKV.web.js +67 -0
- package/lib/module/createMMKV.web.js.map +1 -0
- package/lib/module/createTextEncoder.js +17 -0
- package/lib/module/createTextEncoder.js.map +1 -0
- package/lib/module/hooks.js +181 -0
- package/lib/module/hooks.js.map +1 -0
- package/lib/module/index.js +3 -0
- package/lib/module/index.js.map +1 -0
- package/lib/typescript/MMKV.d.ts +137 -0
- package/lib/typescript/PlatformChecker.d.ts +1 -0
- package/lib/typescript/createMMKV.d.ts +6 -0
- package/lib/typescript/createMMKV.mock.d.ts +2 -0
- package/lib/typescript/createMMKV.web.d.ts +2 -0
- package/lib/typescript/createTextEncoder.d.ts +1 -0
- package/lib/typescript/hooks.d.ts +81 -0
- package/lib/typescript/index.d.ts +2 -0
- package/package.json +168 -0
- package/react-native-mmkv.podspec +32 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Tencent is pleased to support the open source community by making
|
|
3
|
+
* MMKV available.
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 THL A29 Limited, a Tencent company.
|
|
6
|
+
* All rights reserved.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the BSD 3-Clause License (the "License"); you may not use
|
|
9
|
+
* this file except in compliance with the License. You may obtain a copy of
|
|
10
|
+
* the License at
|
|
11
|
+
*
|
|
12
|
+
* https://opensource.org/licenses/BSD-3-Clause
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
#include "Checksum.h"
|
|
22
|
+
|
|
23
|
+
#ifdef MMKV_USE_ARMV8_CRC32
|
|
24
|
+
|
|
25
|
+
# if MMKV_EMBED_ZLIB
|
|
26
|
+
|
|
27
|
+
static inline uint32_t _crc32Wrap(uint32_t crc, const uint8_t *buf, size_t len) {
|
|
28
|
+
return static_cast<uint32_t>(zlib::crc32(crc, buf, static_cast<uInt>(len)));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
CRC32_Func_t CRC32 = _crc32Wrap;
|
|
32
|
+
|
|
33
|
+
# else
|
|
34
|
+
# include <zlib.h>
|
|
35
|
+
|
|
36
|
+
static inline uint32_t _crc32Wrap(uint32_t crc, const uint8_t *buf, size_t len) {
|
|
37
|
+
return static_cast<uint32_t>(::crc32(crc, buf, static_cast<uInt>(len)));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
CRC32_Func_t CRC32 = _crc32Wrap;
|
|
41
|
+
|
|
42
|
+
# endif
|
|
43
|
+
|
|
44
|
+
// targeting armv8 with crc instruction extension
|
|
45
|
+
#if defined(__GNUC__) && !defined(__clang__)
|
|
46
|
+
# define TARGET_ARM_CRC __attribute__((target("+crc")))
|
|
47
|
+
# define __builtin_arm_crc32b(a, b) __builtin_aarch64_crc32b(a, b)
|
|
48
|
+
# define __builtin_arm_crc32h(a, b) __builtin_aarch64_crc32h(a, b)
|
|
49
|
+
# define __builtin_arm_crc32w(a, b) __builtin_aarch64_crc32w(a, b)
|
|
50
|
+
# define __builtin_arm_crc32d(a, b) __builtin_aarch64_crc32x(a, b)
|
|
51
|
+
#else
|
|
52
|
+
# define TARGET_ARM_CRC __attribute__((target("crc")))
|
|
53
|
+
#endif
|
|
54
|
+
|
|
55
|
+
TARGET_ARM_CRC static inline uint32_t __crc32b(uint32_t a, uint8_t b) {
|
|
56
|
+
return __builtin_arm_crc32b(a, b);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
TARGET_ARM_CRC static inline uint32_t __crc32h(uint32_t a, uint16_t b) {
|
|
60
|
+
return __builtin_arm_crc32h(a, b);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
TARGET_ARM_CRC static inline uint32_t __crc32w(uint32_t a, uint32_t b) {
|
|
64
|
+
return __builtin_arm_crc32w(a, b);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
TARGET_ARM_CRC static inline uint32_t __crc32d(uint32_t a, uint64_t b) {
|
|
68
|
+
return __builtin_arm_crc32d(a, b);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
TARGET_ARM_CRC static inline uint32_t armv8_crc32_small(uint32_t crc, const uint8_t *buf, size_t len) {
|
|
72
|
+
if (len >= sizeof(uint32_t)) {
|
|
73
|
+
crc = __crc32w(crc, *(const uint32_t *) buf);
|
|
74
|
+
buf += sizeof(uint32_t);
|
|
75
|
+
len -= sizeof(uint32_t);
|
|
76
|
+
}
|
|
77
|
+
if (len >= sizeof(uint16_t)) {
|
|
78
|
+
crc = __crc32h(crc, *(const uint16_t *) buf);
|
|
79
|
+
buf += sizeof(uint16_t);
|
|
80
|
+
len -= sizeof(uint16_t);
|
|
81
|
+
}
|
|
82
|
+
if (len >= sizeof(uint8_t)) {
|
|
83
|
+
crc = __crc32b(crc, *(const uint8_t *) buf);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return crc;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
namespace mmkv {
|
|
90
|
+
|
|
91
|
+
TARGET_ARM_CRC uint32_t armv8_crc32(uint32_t crc, const uint8_t *buf, size_t len) {
|
|
92
|
+
|
|
93
|
+
crc = crc ^ 0xffffffffUL;
|
|
94
|
+
|
|
95
|
+
// roundup to 8 byte pointer
|
|
96
|
+
auto offset = std::min(len, (uintptr_t) buf & 7);
|
|
97
|
+
if (offset) {
|
|
98
|
+
crc = armv8_crc32_small(crc, buf, offset);
|
|
99
|
+
buf += offset;
|
|
100
|
+
len -= offset;
|
|
101
|
+
}
|
|
102
|
+
if (!len) {
|
|
103
|
+
return crc ^ 0xffffffffUL;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// unroll to 8 * 8 byte per loop
|
|
107
|
+
auto ptr64 = (const uint64_t *) buf;
|
|
108
|
+
for (constexpr auto step = 8 * sizeof(uint64_t); len >= step; len -= step) {
|
|
109
|
+
crc = __crc32d(crc, *ptr64++);
|
|
110
|
+
crc = __crc32d(crc, *ptr64++);
|
|
111
|
+
crc = __crc32d(crc, *ptr64++);
|
|
112
|
+
crc = __crc32d(crc, *ptr64++);
|
|
113
|
+
crc = __crc32d(crc, *ptr64++);
|
|
114
|
+
crc = __crc32d(crc, *ptr64++);
|
|
115
|
+
crc = __crc32d(crc, *ptr64++);
|
|
116
|
+
crc = __crc32d(crc, *ptr64++);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
for (constexpr auto step = sizeof(uint64_t); len >= step; len -= step) {
|
|
120
|
+
crc = __crc32d(crc, *ptr64++);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (len) {
|
|
124
|
+
crc = armv8_crc32_small(crc, (const uint8_t *) ptr64, len);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return crc ^ 0xffffffffUL;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
} // namespace mmkv
|
|
131
|
+
|
|
132
|
+
#endif // MMKV_USE_ARMV8_CRC32
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* crc32.c -- compute the CRC-32 of a data stream
|
|
2
|
+
* Copyright (C) 1995-2006, 2010, 2011, 2012, 2016 Mark Adler
|
|
3
|
+
* For conditions of distribution and use, see copyright notice in zlib.h
|
|
4
|
+
*
|
|
5
|
+
* Thanks to Rodney Brown <rbrown64@csc.com.au> for his contribution of faster
|
|
6
|
+
* CRC methods: exclusive-oring 32 bits of data at a time, and pre-computing
|
|
7
|
+
* tables for updating the shift register in one step with three exclusive-ors
|
|
8
|
+
* instead of four steps with four exclusive-ors. This results in about a
|
|
9
|
+
* factor of two increase in speed on a Power PC G4 (PPC7455) using gcc -O3.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/* @(#) $Id$ */
|
|
13
|
+
|
|
14
|
+
#include "../../MMKVPredef.h"
|
|
15
|
+
|
|
16
|
+
#if MMKV_EMBED_ZLIB
|
|
17
|
+
|
|
18
|
+
#include "zutil.h" /* for STDC and FAR definitions */
|
|
19
|
+
|
|
20
|
+
#define Z_NULL 0 /* for initializing zalloc, zfree, opaque */
|
|
21
|
+
# define TBLS 1
|
|
22
|
+
|
|
23
|
+
#include "crc32.h"
|
|
24
|
+
|
|
25
|
+
namespace zlib {
|
|
26
|
+
|
|
27
|
+
/* ========================================================================= */
|
|
28
|
+
#define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8)
|
|
29
|
+
#define DO8 DO1; DO1; DO1; DO1; DO1; DO1; DO1; DO1
|
|
30
|
+
|
|
31
|
+
/* ========================================================================= */
|
|
32
|
+
unsigned long local crc32_z(unsigned long crc, const unsigned char FAR *buf, z_size_t len)
|
|
33
|
+
{
|
|
34
|
+
if (buf == Z_NULL) return 0UL;
|
|
35
|
+
|
|
36
|
+
crc = crc ^ 0xffffffffUL;
|
|
37
|
+
while (len >= 8) {
|
|
38
|
+
DO8;
|
|
39
|
+
len -= 8;
|
|
40
|
+
}
|
|
41
|
+
if (len) do {
|
|
42
|
+
DO1;
|
|
43
|
+
} while (--len);
|
|
44
|
+
return crc ^ 0xffffffffUL;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* ========================================================================= */
|
|
48
|
+
|
|
49
|
+
unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char FAR *buf, z_size_t len) {
|
|
50
|
+
return crc32_z(crc, buf, len);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
} // namespace zlib
|
|
54
|
+
|
|
55
|
+
#endif // MMKV_EMBED_ZLIB
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* crc32.h -- tables for rapid CRC calculation
|
|
2
|
+
* Generated automatically by crc32.c
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
local const z_crc_t FAR crc_table[TBLS][256] = {
|
|
6
|
+
{0x00000000UL, 0x77073096UL, 0xee0e612cUL, 0x990951baUL, 0x076dc419UL, 0x706af48fUL,
|
|
7
|
+
0xe963a535UL, 0x9e6495a3UL, 0x0edb8832UL, 0x79dcb8a4UL, 0xe0d5e91eUL, 0x97d2d988UL,
|
|
8
|
+
0x09b64c2bUL, 0x7eb17cbdUL, 0xe7b82d07UL, 0x90bf1d91UL, 0x1db71064UL, 0x6ab020f2UL,
|
|
9
|
+
0xf3b97148UL, 0x84be41deUL, 0x1adad47dUL, 0x6ddde4ebUL, 0xf4d4b551UL, 0x83d385c7UL,
|
|
10
|
+
0x136c9856UL, 0x646ba8c0UL, 0xfd62f97aUL, 0x8a65c9ecUL, 0x14015c4fUL, 0x63066cd9UL,
|
|
11
|
+
0xfa0f3d63UL, 0x8d080df5UL, 0x3b6e20c8UL, 0x4c69105eUL, 0xd56041e4UL, 0xa2677172UL,
|
|
12
|
+
0x3c03e4d1UL, 0x4b04d447UL, 0xd20d85fdUL, 0xa50ab56bUL, 0x35b5a8faUL, 0x42b2986cUL,
|
|
13
|
+
0xdbbbc9d6UL, 0xacbcf940UL, 0x32d86ce3UL, 0x45df5c75UL, 0xdcd60dcfUL, 0xabd13d59UL,
|
|
14
|
+
0x26d930acUL, 0x51de003aUL, 0xc8d75180UL, 0xbfd06116UL, 0x21b4f4b5UL, 0x56b3c423UL,
|
|
15
|
+
0xcfba9599UL, 0xb8bda50fUL, 0x2802b89eUL, 0x5f058808UL, 0xc60cd9b2UL, 0xb10be924UL,
|
|
16
|
+
0x2f6f7c87UL, 0x58684c11UL, 0xc1611dabUL, 0xb6662d3dUL, 0x76dc4190UL, 0x01db7106UL,
|
|
17
|
+
0x98d220bcUL, 0xefd5102aUL, 0x71b18589UL, 0x06b6b51fUL, 0x9fbfe4a5UL, 0xe8b8d433UL,
|
|
18
|
+
0x7807c9a2UL, 0x0f00f934UL, 0x9609a88eUL, 0xe10e9818UL, 0x7f6a0dbbUL, 0x086d3d2dUL,
|
|
19
|
+
0x91646c97UL, 0xe6635c01UL, 0x6b6b51f4UL, 0x1c6c6162UL, 0x856530d8UL, 0xf262004eUL,
|
|
20
|
+
0x6c0695edUL, 0x1b01a57bUL, 0x8208f4c1UL, 0xf50fc457UL, 0x65b0d9c6UL, 0x12b7e950UL,
|
|
21
|
+
0x8bbeb8eaUL, 0xfcb9887cUL, 0x62dd1ddfUL, 0x15da2d49UL, 0x8cd37cf3UL, 0xfbd44c65UL,
|
|
22
|
+
0x4db26158UL, 0x3ab551ceUL, 0xa3bc0074UL, 0xd4bb30e2UL, 0x4adfa541UL, 0x3dd895d7UL,
|
|
23
|
+
0xa4d1c46dUL, 0xd3d6f4fbUL, 0x4369e96aUL, 0x346ed9fcUL, 0xad678846UL, 0xda60b8d0UL,
|
|
24
|
+
0x44042d73UL, 0x33031de5UL, 0xaa0a4c5fUL, 0xdd0d7cc9UL, 0x5005713cUL, 0x270241aaUL,
|
|
25
|
+
0xbe0b1010UL, 0xc90c2086UL, 0x5768b525UL, 0x206f85b3UL, 0xb966d409UL, 0xce61e49fUL,
|
|
26
|
+
0x5edef90eUL, 0x29d9c998UL, 0xb0d09822UL, 0xc7d7a8b4UL, 0x59b33d17UL, 0x2eb40d81UL,
|
|
27
|
+
0xb7bd5c3bUL, 0xc0ba6cadUL, 0xedb88320UL, 0x9abfb3b6UL, 0x03b6e20cUL, 0x74b1d29aUL,
|
|
28
|
+
0xead54739UL, 0x9dd277afUL, 0x04db2615UL, 0x73dc1683UL, 0xe3630b12UL, 0x94643b84UL,
|
|
29
|
+
0x0d6d6a3eUL, 0x7a6a5aa8UL, 0xe40ecf0bUL, 0x9309ff9dUL, 0x0a00ae27UL, 0x7d079eb1UL,
|
|
30
|
+
0xf00f9344UL, 0x8708a3d2UL, 0x1e01f268UL, 0x6906c2feUL, 0xf762575dUL, 0x806567cbUL,
|
|
31
|
+
0x196c3671UL, 0x6e6b06e7UL, 0xfed41b76UL, 0x89d32be0UL, 0x10da7a5aUL, 0x67dd4accUL,
|
|
32
|
+
0xf9b9df6fUL, 0x8ebeeff9UL, 0x17b7be43UL, 0x60b08ed5UL, 0xd6d6a3e8UL, 0xa1d1937eUL,
|
|
33
|
+
0x38d8c2c4UL, 0x4fdff252UL, 0xd1bb67f1UL, 0xa6bc5767UL, 0x3fb506ddUL, 0x48b2364bUL,
|
|
34
|
+
0xd80d2bdaUL, 0xaf0a1b4cUL, 0x36034af6UL, 0x41047a60UL, 0xdf60efc3UL, 0xa867df55UL,
|
|
35
|
+
0x316e8eefUL, 0x4669be79UL, 0xcb61b38cUL, 0xbc66831aUL, 0x256fd2a0UL, 0x5268e236UL,
|
|
36
|
+
0xcc0c7795UL, 0xbb0b4703UL, 0x220216b9UL, 0x5505262fUL, 0xc5ba3bbeUL, 0xb2bd0b28UL,
|
|
37
|
+
0x2bb45a92UL, 0x5cb36a04UL, 0xc2d7ffa7UL, 0xb5d0cf31UL, 0x2cd99e8bUL, 0x5bdeae1dUL,
|
|
38
|
+
0x9b64c2b0UL, 0xec63f226UL, 0x756aa39cUL, 0x026d930aUL, 0x9c0906a9UL, 0xeb0e363fUL,
|
|
39
|
+
0x72076785UL, 0x05005713UL, 0x95bf4a82UL, 0xe2b87a14UL, 0x7bb12baeUL, 0x0cb61b38UL,
|
|
40
|
+
0x92d28e9bUL, 0xe5d5be0dUL, 0x7cdcefb7UL, 0x0bdbdf21UL, 0x86d3d2d4UL, 0xf1d4e242UL,
|
|
41
|
+
0x68ddb3f8UL, 0x1fda836eUL, 0x81be16cdUL, 0xf6b9265bUL, 0x6fb077e1UL, 0x18b74777UL,
|
|
42
|
+
0x88085ae6UL, 0xff0f6a70UL, 0x66063bcaUL, 0x11010b5cUL, 0x8f659effUL, 0xf862ae69UL,
|
|
43
|
+
0x616bffd3UL, 0x166ccf45UL, 0xa00ae278UL, 0xd70dd2eeUL, 0x4e048354UL, 0x3903b3c2UL,
|
|
44
|
+
0xa7672661UL, 0xd06016f7UL, 0x4969474dUL, 0x3e6e77dbUL, 0xaed16a4aUL, 0xd9d65adcUL,
|
|
45
|
+
0x40df0b66UL, 0x37d83bf0UL, 0xa9bcae53UL, 0xdebb9ec5UL, 0x47b2cf7fUL, 0x30b5ffe9UL,
|
|
46
|
+
0xbdbdf21cUL, 0xcabac28aUL, 0x53b39330UL, 0x24b4a3a6UL, 0xbad03605UL, 0xcdd70693UL,
|
|
47
|
+
0x54de5729UL, 0x23d967bfUL, 0xb3667a2eUL, 0xc4614ab8UL, 0x5d681b02UL, 0x2a6f2b94UL,
|
|
48
|
+
0xb40bbe37UL, 0xc30c8ea1UL, 0x5a05df1bUL, 0x2d02ef8dUL}};
|
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
/* zconf.h -- configuration of the zlib compression library
|
|
2
|
+
* Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler
|
|
3
|
+
* For conditions of distribution and use, see copyright notice in zlib.h
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* @(#) $Id$ */
|
|
7
|
+
|
|
8
|
+
#ifndef ZCONF_H
|
|
9
|
+
#define ZCONF_H
|
|
10
|
+
|
|
11
|
+
#define Z_SOLO
|
|
12
|
+
#define Z_NEED_DICT 2
|
|
13
|
+
|
|
14
|
+
#if defined(__MSDOS__) && !defined(MSDOS)
|
|
15
|
+
#define MSDOS
|
|
16
|
+
#endif
|
|
17
|
+
#if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
|
|
18
|
+
#define OS2
|
|
19
|
+
#endif
|
|
20
|
+
#if defined(_WINDOWS) && !defined(WINDOWS)
|
|
21
|
+
#define WINDOWS
|
|
22
|
+
#endif
|
|
23
|
+
#if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
|
|
24
|
+
#ifndef WIN32
|
|
25
|
+
#define WIN32
|
|
26
|
+
#endif
|
|
27
|
+
#endif
|
|
28
|
+
#if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
|
|
29
|
+
#if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
|
|
30
|
+
#ifndef SYS16BIT
|
|
31
|
+
#define SYS16BIT
|
|
32
|
+
#endif
|
|
33
|
+
#endif
|
|
34
|
+
#endif
|
|
35
|
+
|
|
36
|
+
/*
|
|
37
|
+
* Compile with -DMAXSEG_64K if the alloc function cannot allocate more
|
|
38
|
+
* than 64k bytes at a time (needed on systems with 16-bit int).
|
|
39
|
+
*/
|
|
40
|
+
#ifdef SYS16BIT
|
|
41
|
+
#define MAXSEG_64K
|
|
42
|
+
#endif
|
|
43
|
+
#ifdef MSDOS
|
|
44
|
+
#define UNALIGNED_OK
|
|
45
|
+
#endif
|
|
46
|
+
|
|
47
|
+
#ifdef __STDC_VERSION__
|
|
48
|
+
#ifndef STDC
|
|
49
|
+
#define STDC
|
|
50
|
+
#endif
|
|
51
|
+
#if __STDC_VERSION__ >= 199901L
|
|
52
|
+
#ifndef STDC99
|
|
53
|
+
#define STDC99
|
|
54
|
+
#endif
|
|
55
|
+
#endif
|
|
56
|
+
#endif
|
|
57
|
+
#if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
|
|
58
|
+
#define STDC
|
|
59
|
+
#endif
|
|
60
|
+
#if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
|
|
61
|
+
#define STDC
|
|
62
|
+
#endif
|
|
63
|
+
#if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
|
|
64
|
+
#define STDC
|
|
65
|
+
#endif
|
|
66
|
+
#if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
|
|
67
|
+
#define STDC
|
|
68
|
+
#endif
|
|
69
|
+
|
|
70
|
+
#if defined(__OS400__) && !defined(STDC) /* iSeries (formerly AS/400). */
|
|
71
|
+
#define STDC
|
|
72
|
+
#endif
|
|
73
|
+
|
|
74
|
+
#ifndef STDC
|
|
75
|
+
#ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
|
|
76
|
+
#define const /* note: need a more gentle solution here */
|
|
77
|
+
#endif
|
|
78
|
+
#endif
|
|
79
|
+
|
|
80
|
+
#if defined(ZLIB_CONST) && !defined(z_const)
|
|
81
|
+
#define z_const const
|
|
82
|
+
#else
|
|
83
|
+
#define z_const
|
|
84
|
+
#endif
|
|
85
|
+
|
|
86
|
+
#ifdef Z_SOLO
|
|
87
|
+
typedef unsigned long z_size_t;
|
|
88
|
+
#else
|
|
89
|
+
#define z_longlong long long
|
|
90
|
+
#if defined(NO_SIZE_T)
|
|
91
|
+
typedef unsigned NO_SIZE_T z_size_t;
|
|
92
|
+
#elif defined(STDC)
|
|
93
|
+
#include <stddef.h>
|
|
94
|
+
typedef size_t z_size_t;
|
|
95
|
+
#else
|
|
96
|
+
typedef unsigned long z_size_t;
|
|
97
|
+
#endif
|
|
98
|
+
#undef z_longlong
|
|
99
|
+
#endif
|
|
100
|
+
|
|
101
|
+
/* Maximum value for memLevel in deflateInit2 */
|
|
102
|
+
#ifndef MAX_MEM_LEVEL
|
|
103
|
+
#ifdef MAXSEG_64K
|
|
104
|
+
#define MAX_MEM_LEVEL 8
|
|
105
|
+
#else
|
|
106
|
+
#define MAX_MEM_LEVEL 9
|
|
107
|
+
#endif
|
|
108
|
+
#endif
|
|
109
|
+
|
|
110
|
+
/* Maximum value for windowBits in deflateInit2 and inflateInit2.
|
|
111
|
+
* WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
|
|
112
|
+
* created by gzip. (Files created by minigzip can still be extracted by
|
|
113
|
+
* gzip.)
|
|
114
|
+
*/
|
|
115
|
+
#ifndef MAX_WBITS
|
|
116
|
+
#define MAX_WBITS 15 /* 32K LZ77 window */
|
|
117
|
+
#endif
|
|
118
|
+
|
|
119
|
+
/* The memory requirements for deflate are (in bytes):
|
|
120
|
+
(1 << (windowBits+2)) + (1 << (memLevel+9))
|
|
121
|
+
that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values)
|
|
122
|
+
plus a few kilobytes for small objects. For example, if you want to reduce
|
|
123
|
+
the default memory requirements from 256K to 128K, compile with
|
|
124
|
+
make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
|
|
125
|
+
Of course this will generally degrade compression (there's no free lunch).
|
|
126
|
+
|
|
127
|
+
The memory requirements for inflate are (in bytes) 1 << windowBits
|
|
128
|
+
that is, 32K for windowBits=15 (default value) plus about 7 kilobytes
|
|
129
|
+
for small objects.
|
|
130
|
+
*/
|
|
131
|
+
|
|
132
|
+
/* Type declarations */
|
|
133
|
+
|
|
134
|
+
#ifndef OF /* function prototypes */
|
|
135
|
+
#ifdef STDC
|
|
136
|
+
#define OF(args) args
|
|
137
|
+
#else
|
|
138
|
+
#define OF(args) ()
|
|
139
|
+
#endif
|
|
140
|
+
#endif
|
|
141
|
+
|
|
142
|
+
#ifndef Z_ARG /* function prototypes for stdarg */
|
|
143
|
+
#if defined(STDC) || defined(Z_HAVE_STDARG_H)
|
|
144
|
+
#define Z_ARG(args) args
|
|
145
|
+
#else
|
|
146
|
+
#define Z_ARG(args) ()
|
|
147
|
+
#endif
|
|
148
|
+
#endif
|
|
149
|
+
|
|
150
|
+
/* The following definitions for FAR are needed only for MSDOS mixed
|
|
151
|
+
* model programming (small or medium model with some far allocations).
|
|
152
|
+
* This was tested only with MSC; for other MSDOS compilers you may have
|
|
153
|
+
* to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
|
|
154
|
+
* just define FAR to be empty.
|
|
155
|
+
*/
|
|
156
|
+
#ifdef SYS16BIT
|
|
157
|
+
#if defined(M_I86SM) || defined(M_I86MM)
|
|
158
|
+
/* MSC small or medium model */
|
|
159
|
+
#define SMALL_MEDIUM
|
|
160
|
+
#ifdef _MSC_VER
|
|
161
|
+
#define FAR _far
|
|
162
|
+
#else
|
|
163
|
+
#define FAR far
|
|
164
|
+
#endif
|
|
165
|
+
#endif
|
|
166
|
+
#if (defined(__SMALL__) || defined(__MEDIUM__))
|
|
167
|
+
/* Turbo C small or medium model */
|
|
168
|
+
#define SMALL_MEDIUM
|
|
169
|
+
#ifdef __BORLANDC__
|
|
170
|
+
#define FAR _far
|
|
171
|
+
#else
|
|
172
|
+
#define FAR far
|
|
173
|
+
#endif
|
|
174
|
+
#endif
|
|
175
|
+
#endif
|
|
176
|
+
|
|
177
|
+
#if defined(WINDOWS) || defined(WIN32)
|
|
178
|
+
/* If building or using zlib as a DLL, define ZLIB_DLL.
|
|
179
|
+
* This is not mandatory, but it offers a little performance increase.
|
|
180
|
+
*/
|
|
181
|
+
#ifdef ZLIB_DLL
|
|
182
|
+
#if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
|
|
183
|
+
#ifdef ZLIB_INTERNAL
|
|
184
|
+
#define ZEXTERN extern __declspec(dllexport)
|
|
185
|
+
#else
|
|
186
|
+
#define ZEXTERN extern __declspec(dllimport)
|
|
187
|
+
#endif
|
|
188
|
+
#endif
|
|
189
|
+
#endif /* ZLIB_DLL */
|
|
190
|
+
/* If building or using zlib with the WINAPI/WINAPIV calling convention,
|
|
191
|
+
* define ZLIB_WINAPI.
|
|
192
|
+
* Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
|
|
193
|
+
*/
|
|
194
|
+
#ifdef ZLIB_WINAPI
|
|
195
|
+
#ifdef FAR
|
|
196
|
+
#undef FAR
|
|
197
|
+
#endif
|
|
198
|
+
#include <windows.h>
|
|
199
|
+
/* No need for _export, use ZLIB.DEF instead. */
|
|
200
|
+
/* For complete Windows compatibility, use WINAPI, not __stdcall. */
|
|
201
|
+
#define ZEXPORT WINAPI
|
|
202
|
+
#ifdef WIN32
|
|
203
|
+
#define ZEXPORTVA WINAPIV
|
|
204
|
+
#else
|
|
205
|
+
#define ZEXPORTVA FAR CDECL
|
|
206
|
+
#endif
|
|
207
|
+
#endif
|
|
208
|
+
#endif
|
|
209
|
+
|
|
210
|
+
#if defined(__BEOS__)
|
|
211
|
+
#ifdef ZLIB_DLL
|
|
212
|
+
#ifdef ZLIB_INTERNAL
|
|
213
|
+
#define ZEXPORT __declspec(dllexport)
|
|
214
|
+
#define ZEXPORTVA __declspec(dllexport)
|
|
215
|
+
#else
|
|
216
|
+
#define ZEXPORT __declspec(dllimport)
|
|
217
|
+
#define ZEXPORTVA __declspec(dllimport)
|
|
218
|
+
#endif
|
|
219
|
+
#endif
|
|
220
|
+
#endif
|
|
221
|
+
|
|
222
|
+
#ifndef ZEXTERN
|
|
223
|
+
#define ZEXTERN extern
|
|
224
|
+
#endif
|
|
225
|
+
#ifndef ZEXPORT
|
|
226
|
+
#define ZEXPORT
|
|
227
|
+
#endif
|
|
228
|
+
#ifndef ZEXPORTVA
|
|
229
|
+
#define ZEXPORTVA
|
|
230
|
+
#endif
|
|
231
|
+
|
|
232
|
+
#ifndef FAR
|
|
233
|
+
#define FAR
|
|
234
|
+
#endif
|
|
235
|
+
|
|
236
|
+
#if !defined(__MACTYPES__)
|
|
237
|
+
typedef unsigned char Byte; /* 8 bits */
|
|
238
|
+
#endif
|
|
239
|
+
typedef unsigned int uInt; /* 16 bits or more */
|
|
240
|
+
typedef unsigned long uLong; /* 32 bits or more */
|
|
241
|
+
|
|
242
|
+
#ifdef SMALL_MEDIUM
|
|
243
|
+
/* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
|
|
244
|
+
#define Bytef Byte FAR
|
|
245
|
+
#else
|
|
246
|
+
typedef Byte FAR Bytef;
|
|
247
|
+
#endif
|
|
248
|
+
typedef char FAR charf;
|
|
249
|
+
typedef int FAR intf;
|
|
250
|
+
typedef uInt FAR uIntf;
|
|
251
|
+
typedef uLong FAR uLongf;
|
|
252
|
+
|
|
253
|
+
#ifdef STDC
|
|
254
|
+
typedef void const *voidpc;
|
|
255
|
+
typedef void FAR *voidpf;
|
|
256
|
+
typedef void *voidp;
|
|
257
|
+
#else
|
|
258
|
+
typedef Byte const *voidpc;
|
|
259
|
+
typedef Byte FAR *voidpf;
|
|
260
|
+
typedef Byte *voidp;
|
|
261
|
+
#endif
|
|
262
|
+
|
|
263
|
+
#if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC)
|
|
264
|
+
#include <limits.h>
|
|
265
|
+
#if (UINT_MAX == 0xffffffffUL)
|
|
266
|
+
#define Z_U4 unsigned
|
|
267
|
+
#elif (ULONG_MAX == 0xffffffffUL)
|
|
268
|
+
#define Z_U4 unsigned long
|
|
269
|
+
#elif (USHRT_MAX == 0xffffffffUL)
|
|
270
|
+
#define Z_U4 unsigned short
|
|
271
|
+
#endif
|
|
272
|
+
#endif
|
|
273
|
+
|
|
274
|
+
#ifdef Z_U4
|
|
275
|
+
typedef Z_U4 z_crc_t;
|
|
276
|
+
#else
|
|
277
|
+
typedef unsigned long z_crc_t;
|
|
278
|
+
#endif
|
|
279
|
+
|
|
280
|
+
#ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */
|
|
281
|
+
#define Z_HAVE_UNISTD_H
|
|
282
|
+
#endif
|
|
283
|
+
|
|
284
|
+
#ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
|
|
285
|
+
#define Z_HAVE_STDARG_H
|
|
286
|
+
#endif
|
|
287
|
+
|
|
288
|
+
#ifdef STDC
|
|
289
|
+
#ifndef Z_SOLO
|
|
290
|
+
#include <sys/types.h> /* for off_t */
|
|
291
|
+
#endif
|
|
292
|
+
#endif
|
|
293
|
+
|
|
294
|
+
#if defined(STDC) || defined(Z_HAVE_STDARG_H)
|
|
295
|
+
#ifndef Z_SOLO
|
|
296
|
+
#include <stdarg.h> /* for va_list */
|
|
297
|
+
#endif
|
|
298
|
+
#endif
|
|
299
|
+
|
|
300
|
+
#ifdef _WIN32
|
|
301
|
+
#ifndef Z_SOLO
|
|
302
|
+
#include <stddef.h> /* for wchar_t */
|
|
303
|
+
#endif
|
|
304
|
+
#endif
|
|
305
|
+
|
|
306
|
+
/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
|
|
307
|
+
* "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
|
|
308
|
+
* though the former does not conform to the LFS document), but considering
|
|
309
|
+
* both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
|
|
310
|
+
* equivalently requesting no 64-bit operations
|
|
311
|
+
*/
|
|
312
|
+
#if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1
|
|
313
|
+
#undef _LARGEFILE64_SOURCE
|
|
314
|
+
#endif
|
|
315
|
+
|
|
316
|
+
#if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H)
|
|
317
|
+
#define Z_HAVE_UNISTD_H
|
|
318
|
+
#endif
|
|
319
|
+
#ifndef Z_SOLO
|
|
320
|
+
#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
|
|
321
|
+
#include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
|
|
322
|
+
#ifdef VMS
|
|
323
|
+
#include <unixio.h> /* for off_t */
|
|
324
|
+
#endif
|
|
325
|
+
#ifndef z_off_t
|
|
326
|
+
#define z_off_t off_t
|
|
327
|
+
#endif
|
|
328
|
+
#endif
|
|
329
|
+
#endif
|
|
330
|
+
|
|
331
|
+
#if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE - 0
|
|
332
|
+
#define Z_LFS64
|
|
333
|
+
#endif
|
|
334
|
+
|
|
335
|
+
#if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64)
|
|
336
|
+
#define Z_LARGE64
|
|
337
|
+
#endif
|
|
338
|
+
|
|
339
|
+
#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS - 0 == 64 && defined(Z_LFS64)
|
|
340
|
+
#define Z_WANT64
|
|
341
|
+
#endif
|
|
342
|
+
|
|
343
|
+
#if !defined(SEEK_SET) && !defined(Z_SOLO)
|
|
344
|
+
#define SEEK_SET 0 /* Seek from beginning of file. */
|
|
345
|
+
#define SEEK_CUR 1 /* Seek from current position. */
|
|
346
|
+
#define SEEK_END 2 /* Set file pointer to EOF plus "offset" */
|
|
347
|
+
#endif
|
|
348
|
+
|
|
349
|
+
#ifndef z_off_t
|
|
350
|
+
#define z_off_t long
|
|
351
|
+
#endif
|
|
352
|
+
|
|
353
|
+
#if !defined(_WIN32) && defined(Z_LARGE64)
|
|
354
|
+
#define z_off64_t off64_t
|
|
355
|
+
#else
|
|
356
|
+
#if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO)
|
|
357
|
+
#define z_off64_t __int64
|
|
358
|
+
#else
|
|
359
|
+
#define z_off64_t z_off_t
|
|
360
|
+
#endif
|
|
361
|
+
#endif
|
|
362
|
+
|
|
363
|
+
/* MVS linker does not support external names larger than 8 bytes */
|
|
364
|
+
#if defined(__MVS__)
|
|
365
|
+
#pragma map(deflateInit_, "DEIN")
|
|
366
|
+
#pragma map(deflateInit2_, "DEIN2")
|
|
367
|
+
#pragma map(deflateEnd, "DEEND")
|
|
368
|
+
#pragma map(deflateBound, "DEBND")
|
|
369
|
+
#pragma map(inflateInit_, "ININ")
|
|
370
|
+
#pragma map(inflateInit2_, "ININ2")
|
|
371
|
+
#pragma map(inflateEnd, "INEND")
|
|
372
|
+
#pragma map(inflateSync, "INSY")
|
|
373
|
+
#pragma map(inflateSetDictionary, "INSEDI")
|
|
374
|
+
#pragma map(compressBound, "CMBND")
|
|
375
|
+
#pragma map(inflate_table, "INTABL")
|
|
376
|
+
#pragma map(inflate_fast, "INFA")
|
|
377
|
+
#pragma map(inflate_copyright, "INCOPY")
|
|
378
|
+
#endif
|
|
379
|
+
|
|
380
|
+
#endif /* ZCONF_H */
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* zutil.h -- internal interface and configuration of the compression library
|
|
2
|
+
* Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler
|
|
3
|
+
* For conditions of distribution and use, see copyright notice in zlib.h
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* WARNING: this file should *not* be used by applications. It is
|
|
7
|
+
part of the implementation of the compression library and is
|
|
8
|
+
subject to change. Applications should only use zlib.h.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/* @(#) $Id$ */
|
|
12
|
+
|
|
13
|
+
#ifndef ZUTIL_H
|
|
14
|
+
#define ZUTIL_H
|
|
15
|
+
|
|
16
|
+
#include "zconf.h"
|
|
17
|
+
|
|
18
|
+
#ifndef local
|
|
19
|
+
#define local static
|
|
20
|
+
#endif
|
|
21
|
+
/* since "static" is used to mean two completely different things in C, we
|
|
22
|
+
define "local" for the non-static meaning of "static", for readability
|
|
23
|
+
(compile with -Dlocal if your debugger can't find static symbols) */
|
|
24
|
+
|
|
25
|
+
#endif /* ZUTIL_H */
|