react-native-mmkv 3.3.0 → 4.0.0-beta.0
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/android/CMakeLists.txt +18 -9
- package/android/build.gradle +6 -2
- package/cpp/{MMKVManagedBuffer.h → ManagedMMBuffer.h} +6 -6
- package/cpp/MmkvHostObject.cpp +13 -8
- package/cpp/MmkvHostObject.h +1 -2
- package/cpp/MmkvTypes.h +50 -0
- package/cpp/NativeMmkvModule.cpp +3 -3
- package/cpp/NativeMmkvModule.h +1 -8
- package/package.json +22 -23
- package/react-native-mmkv.podspec +3 -9
- package/react-native.config.js +9 -0
- package/MMKV/Core/CMakeLists.txt +0 -172
- package/MMKV/Core/CodedInputData.cpp +0 -252
- package/MMKV/Core/CodedInputData.h +0 -87
- package/MMKV/Core/CodedInputDataCrypt.cpp +0 -280
- package/MMKV/Core/CodedInputDataCrypt.h +0 -87
- package/MMKV/Core/CodedInputDataCrypt_OSX.cpp +0 -62
- package/MMKV/Core/CodedInputData_OSX.cpp +0 -92
- package/MMKV/Core/CodedOutputData.cpp +0 -186
- package/MMKV/Core/CodedOutputData.h +0 -88
- package/MMKV/Core/Core.xcodeproj/project.pbxproj +0 -707
- package/MMKV/Core/Core.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/MMKV/Core/Core.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/MMKV/Core/Core.xcodeproj/xcshareddata/xcschemes/Core.xcscheme +0 -67
- package/MMKV/Core/Core.xcodeproj/xcshareddata/xcschemes/MMKVWatchCore.xcscheme +0 -67
- package/MMKV/Core/InterProcessLock.cpp +0 -186
- package/MMKV/Core/InterProcessLock.h +0 -119
- package/MMKV/Core/InterProcessLock_Android.cpp +0 -103
- package/MMKV/Core/InterProcessLock_Win32.cpp +0 -108
- package/MMKV/Core/KeyValueHolder.cpp +0 -236
- package/MMKV/Core/KeyValueHolder.h +0 -122
- package/MMKV/Core/MMBuffer.cpp +0 -210
- package/MMKV/Core/MMBuffer.h +0 -111
- package/MMKV/Core/MMKV.cpp +0 -1702
- package/MMKV/Core/MMKV.h +0 -595
- package/MMKV/Core/MMKVLog.cpp +0 -127
- package/MMKV/Core/MMKVLog.h +0 -86
- package/MMKV/Core/MMKVLog_Android.cpp +0 -134
- package/MMKV/Core/MMKVMetaInfo.hpp +0 -99
- package/MMKV/Core/MMKVPredef.h +0 -293
- package/MMKV/Core/MMKV_Android.cpp +0 -261
- package/MMKV/Core/MMKV_IO.cpp +0 -1905
- package/MMKV/Core/MMKV_IO.h +0 -57
- package/MMKV/Core/MMKV_OSX.cpp +0 -423
- package/MMKV/Core/MMKV_OSX.h +0 -57
- package/MMKV/Core/MemoryFile.cpp +0 -603
- package/MMKV/Core/MemoryFile.h +0 -194
- package/MMKV/Core/MemoryFile_Android.cpp +0 -236
- package/MMKV/Core/MemoryFile_Linux.cpp +0 -125
- package/MMKV/Core/MemoryFile_OSX.cpp +0 -142
- package/MMKV/Core/MemoryFile_Win32.cpp +0 -554
- package/MMKV/Core/MiniPBCoder.cpp +0 -672
- package/MMKV/Core/MiniPBCoder.h +0 -151
- package/MMKV/Core/MiniPBCoder_OSX.cpp +0 -237
- package/MMKV/Core/PBEncodeItem.hpp +0 -104
- package/MMKV/Core/PBUtility.cpp +0 -61
- package/MMKV/Core/PBUtility.h +0 -148
- package/MMKV/Core/ScopedLock.hpp +0 -69
- package/MMKV/Core/ThreadLock.cpp +0 -75
- package/MMKV/Core/ThreadLock.h +0 -81
- package/MMKV/Core/ThreadLock_Win32.cpp +0 -89
- package/MMKV/Core/aes/AESCrypt.cpp +0 -273
- package/MMKV/Core/aes/AESCrypt.h +0 -112
- package/MMKV/Core/aes/openssl/openssl_aes-armv4.S +0 -1243
- package/MMKV/Core/aes/openssl/openssl_aes.h +0 -130
- package/MMKV/Core/aes/openssl/openssl_aes_core.cpp +0 -1044
- package/MMKV/Core/aes/openssl/openssl_aes_locl.h +0 -38
- package/MMKV/Core/aes/openssl/openssl_aesv8-armx.S +0 -308
- package/MMKV/Core/aes/openssl/openssl_arm_arch.h +0 -84
- package/MMKV/Core/aes/openssl/openssl_cfb128.cpp +0 -97
- package/MMKV/Core/aes/openssl/openssl_md32_common.h +0 -254
- package/MMKV/Core/aes/openssl/openssl_md5.h +0 -49
- package/MMKV/Core/aes/openssl/openssl_md5_dgst.cpp +0 -166
- package/MMKV/Core/aes/openssl/openssl_md5_locl.h +0 -75
- package/MMKV/Core/aes/openssl/openssl_md5_one.cpp +0 -30
- package/MMKV/Core/aes/openssl/openssl_opensslconf.h +0 -271
- package/MMKV/Core/core.vcxproj +0 -288
- package/MMKV/Core/core.vcxproj.filters +0 -150
- package/MMKV/Core/crc32/Checksum.h +0 -75
- package/MMKV/Core/crc32/crc32_armv8.cpp +0 -134
- package/MMKV/Core/crc32/zlib/CMakeLists.txt +0 -60
- package/MMKV/Core/crc32/zlib/crc32.cpp +0 -55
- package/MMKV/Core/crc32/zlib/crc32.h +0 -48
- package/MMKV/Core/crc32/zlib/zconf.h +0 -380
- package/MMKV/Core/crc32/zlib/zutil.h +0 -25
- package/MMKV/LICENSE.TXT +0 -193
- package/MMKV/README.md +0 -354
|
@@ -1,380 +0,0 @@
|
|
|
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 */
|
|
@@ -1,25 +0,0 @@
|
|
|
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 */
|
package/MMKV/LICENSE.TXT
DELETED
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
Tencent is pleased to support the open source community by making MMKV available.
|
|
2
|
-
Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved.
|
|
3
|
-
If you have downloaded a copy of the MMKV binary from Tencent, please note that the MMKV binary is licensed under the BSD 3-Clause License.
|
|
4
|
-
If you have downloaded a copy of the MMKV source code from Tencent, please note that MMKV source code is licensed under the BSD 3-Clause License, except for the third-party components listed below which are subject to different license terms. Your integration of MMKV into your own projects may require compliance with the BSD 3-Clause License, as well as the other licenses applicable to the third-party components included within MMKV.
|
|
5
|
-
A copy of the BSD 3-Clause License is included in this file.
|
|
6
|
-
|
|
7
|
-
Other dependencies and licenses:
|
|
8
|
-
|
|
9
|
-
Open Source Software Licensed Under the OpenSSL License:
|
|
10
|
-
----------------------------------------------------------------------------------------
|
|
11
|
-
1. OpenSSL 1.1.0i
|
|
12
|
-
Copyright (c) 1998-2018 The OpenSSL Project.
|
|
13
|
-
All rights reserved.
|
|
14
|
-
Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
|
|
15
|
-
All rights reserved.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
Terms of the OpenSSL License:
|
|
19
|
-
---------------------------------------------------
|
|
20
|
-
LICENSE ISSUES:
|
|
21
|
-
--------------------------------------------------------------------
|
|
22
|
-
|
|
23
|
-
The OpenSSL toolkit stays under a dual license, i.e. both the conditions of the OpenSSL License and the original SSLeay license apply to the toolkit.
|
|
24
|
-
See below for the actual license texts.
|
|
25
|
-
|
|
26
|
-
OpenSSL License:
|
|
27
|
-
--------------------------------------------------------------------
|
|
28
|
-
Copyright (c) 1998-2018 The OpenSSL Project. All rights reserved.
|
|
29
|
-
|
|
30
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
31
|
-
|
|
32
|
-
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
33
|
-
|
|
34
|
-
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
35
|
-
|
|
36
|
-
3. All advertising materials mentioning features or use of this software must display the following acknowledgment:
|
|
37
|
-
"This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
|
|
38
|
-
|
|
39
|
-
4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact openssl-core@openssl.org.
|
|
40
|
-
|
|
41
|
-
5. Products derived from this software may not be called "OpenSSL" nor may "OpenSSL" appear in their names without prior written permission of the OpenSSL Project.
|
|
42
|
-
|
|
43
|
-
6. Redistributions of any form whatsoever must retain the following acknowledgment: "This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/)"
|
|
44
|
-
|
|
45
|
-
THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
46
|
-
====================================================================
|
|
47
|
-
* This product includes cryptographic software written by Eric Young (eay@cryptsoft.com). This product includes software written by Tim Hudson (tjh@cryptsoft.com).
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
Original SSLeay License:
|
|
51
|
-
--------------------------------------------------------------------
|
|
52
|
-
Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
|
|
53
|
-
All rights reserved.
|
|
54
|
-
|
|
55
|
-
This package is an SSL implementation written by Eric Young (eay@cryptsoft.com).
|
|
56
|
-
The implementation was written so as to conform with Netscapes SSL.
|
|
57
|
-
|
|
58
|
-
This library is free for commercial and non-commercial use as long as the following conditions are aheared to. The following conditions apply to all code found in this distribution, be it the RC4, RSA, lhash, DES, etc., code; not just the SSL code. The SSL documentation included with this distribution is covered by the same copyright terms except that the holder is Tim Hudson (tjh@cryptsoft.com).
|
|
59
|
-
|
|
60
|
-
Copyright remains Eric Young's, and as such any Copyright notices in the code are not to be removed. If this package is used in a product, Eric Young should be given attribution as the author of the parts of the library used. This can be in the form of a textual message at program startup or in documentation (online or textual) provided with the package.
|
|
61
|
-
|
|
62
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
63
|
-
1. Redistributions of source code must retain the copyright notice, this list of conditions and the following disclaimer.
|
|
64
|
-
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
65
|
-
3. All advertising materials mentioning features or use of this software must display the following acknowledgement:" This product includes cryptographic software written by Eric Young (eay@cryptsoft.com)" The word 'cryptographic' can be left out if the rouines from the library being used are not cryptographic related :-).
|
|
66
|
-
4. If you include any Windows specific code (or a derivative thereof) from the apps directory (application code) you must include an acknowledgement: "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
|
|
67
|
-
|
|
68
|
-
THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
69
|
-
|
|
70
|
-
The licence and distribution terms for any publically available version or derivative of this code cannot be changed. i.e. this code cannot simply be copied and put under another distribution licence [including the GNU Public Licence.]
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
Open Source Software Licensed Under the Apache License, Version 2.0:
|
|
75
|
-
The below software in this distribution may have been modified by THL A29 Limited (“Tencent Modifications”). All Tencent Modifications are Copyright (C) 2018 THL A29 Limited.
|
|
76
|
-
----------------------------------------------------------------------------------------
|
|
77
|
-
1. MultiprocessSharedPreferences v1.0
|
|
78
|
-
Copyright (C) 2014 seven456@gmail.com
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
Terms of the Apache License, Version 2.0:
|
|
82
|
-
--------------------------------------------------------------------
|
|
83
|
-
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
|
|
84
|
-
|
|
85
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
86
|
-
|
|
87
|
-
1. Definitions.
|
|
88
|
-
|
|
89
|
-
“License” shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
90
|
-
|
|
91
|
-
“Licensor” shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
92
|
-
|
|
93
|
-
“Legal Entity” shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, “control” means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
94
|
-
|
|
95
|
-
“You” (or “Your”) shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
96
|
-
|
|
97
|
-
“Source” form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
98
|
-
|
|
99
|
-
“Object” form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
100
|
-
|
|
101
|
-
“Work” shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
102
|
-
|
|
103
|
-
“Derivative Works” shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
104
|
-
|
|
105
|
-
“Contribution” shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, “submitted” means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as “Not a Contribution.”
|
|
106
|
-
|
|
107
|
-
“Contributor” shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
108
|
-
|
|
109
|
-
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
110
|
-
|
|
111
|
-
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
112
|
-
|
|
113
|
-
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
114
|
-
|
|
115
|
-
a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
|
116
|
-
|
|
117
|
-
b) You must cause any modified files to carry prominent notices stating that You changed the files; and
|
|
118
|
-
|
|
119
|
-
c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
|
120
|
-
|
|
121
|
-
d) If the Work includes a “NOTICE” text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
124
|
-
|
|
125
|
-
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
126
|
-
|
|
127
|
-
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
128
|
-
|
|
129
|
-
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
130
|
-
|
|
131
|
-
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
132
|
-
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
133
|
-
|
|
134
|
-
END OF TERMS AND CONDITIONS
|
|
135
|
-
|
|
136
|
-
APPENDIX: How to apply the Apache License to your work
|
|
137
|
-
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
|
|
138
|
-
|
|
139
|
-
Copyright [yyyy] [name of copyright owner]
|
|
140
|
-
|
|
141
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
142
|
-
you may not use this file except in compliance with the License.
|
|
143
|
-
You may obtain a copy of the License at
|
|
144
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
145
|
-
Unless required by applicable law or agreed to in writing, software
|
|
146
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
147
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
148
|
-
See the License for the specific language governing permissions and
|
|
149
|
-
limitations under the License.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
Open Source Software Licensed Under the zlib License:
|
|
154
|
-
The below software in this distribution may have been modified by THL A29 Limited (“Tencent Modifications”). All Tencent Modifications are Copyright (C) 2018 THL A29 Limited.
|
|
155
|
-
----------------------------------------------------------------------------------------
|
|
156
|
-
1. zlib v1.2.11
|
|
157
|
-
Copyright (C) 1995-2017 Jean-loup Gailly and Mark Adler
|
|
158
|
-
|
|
159
|
-
Terms of the zlib License:
|
|
160
|
-
--------------------------------------------------------------------
|
|
161
|
-
|
|
162
|
-
This software is provided 'as-is', without any express or implied
|
|
163
|
-
warranty. In no event will the authors be held liable for any damages
|
|
164
|
-
arising from the use of this software.
|
|
165
|
-
|
|
166
|
-
Permission is granted to anyone to use this software for any purpose,
|
|
167
|
-
including commercial applications, and to alter it and redistribute it
|
|
168
|
-
freely, subject to the following restrictions:
|
|
169
|
-
|
|
170
|
-
1. The origin of this software must not be misrepresented; you must not
|
|
171
|
-
claim that you wrote the original software. If you use this software
|
|
172
|
-
in a product, an acknowledgment in the product documentation would be
|
|
173
|
-
appreciated but is not required.
|
|
174
|
-
2. Altered source versions must be plainly marked as such, and must not be
|
|
175
|
-
misrepresented as being the original software.
|
|
176
|
-
3. This notice may not be removed or altered from any source distribution.
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
Open Source Software Licensed Under the BSD 3-Clause License:
|
|
180
|
-
----------------------------------------------------------------------------------------
|
|
181
|
-
1. pybind11 v2.5.0
|
|
182
|
-
Copyright (c) 2016 Wenzel Jakob <wenzel.jakob@epfl.ch>, All rights reserved.
|
|
183
|
-
|
|
184
|
-
Terms of the BSD 3-Clause License:
|
|
185
|
-
--------------------------------------------------------------------
|
|
186
|
-
|
|
187
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
188
|
-
|
|
189
|
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
190
|
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
191
|
-
Neither the name of [copyright holder] nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
192
|
-
|
|
193
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|