zstdlib 0.4.0-x64-mingw32 → 0.5.0-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +6 -1
- data/README.md +1 -1
- data/ext/zstdlib/extconf.rb +2 -2
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/bitstream.h +3 -2
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/compiler.h +14 -2
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/cpu.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/debug.c +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/debug.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/entropy_common.c +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/error_private.c +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/error_private.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/fse.h +1 -1
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/fse_decompress.c +2 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/huf.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/mem.h +73 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/pool.c +7 -3
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/pool.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/threading.c +46 -1
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/threading.h +32 -1
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/xxhash.c +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/xxhash.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/zstd_common.c +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/zstd_errors.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/common/zstd_internal.h +32 -55
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/fse_compress.c +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/hist.c +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/hist.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/huf_compress.c +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/zstd_compress.c +633 -436
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/zstd_compress_internal.h +54 -12
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/zstd_compress_literals.c +10 -5
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/zstd_compress_literals.h +1 -1
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/zstd_compress_sequences.c +3 -3
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/zstd_compress_sequences.h +1 -1
- data/ext/zstdlib/zstd-1.4.4/lib/compress/zstd_cwksp.h +535 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/zstd_double_fast.c +9 -9
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/zstd_double_fast.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/zstd_fast.c +30 -39
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/zstd_fast.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/zstd_lazy.c +5 -5
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/zstd_lazy.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/zstd_ldm.c +4 -4
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/zstd_ldm.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/zstd_opt.c +1 -1
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/zstd_opt.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/zstdmt_compress.c +32 -26
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/compress/zstdmt_compress.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/decompress/huf_decompress.c +2 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/decompress/zstd_ddict.c +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/decompress/zstd_ddict.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/decompress/zstd_decompress.c +14 -16
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/decompress/zstd_decompress_block.c +144 -146
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/decompress/zstd_decompress_block.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/decompress/zstd_decompress_internal.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/lib/zstd.h +161 -59
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/zlibWrapper/gzclose.c +1 -1
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/zlibWrapper/gzcompatibility.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/zlibWrapper/gzguts.h +0 -0
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/zlibWrapper/gzlib.c +9 -9
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/zlibWrapper/gzread.c +16 -8
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/zlibWrapper/gzwrite.c +8 -8
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/zlibWrapper/zstd_zlibwrapper.c +15 -11
- data/ext/zstdlib/{zstd-1.4.3 → zstd-1.4.4}/zlibWrapper/zstd_zlibwrapper.h +0 -0
- data/lib/2.2/zstdlib.so +0 -0
- data/lib/2.3/zstdlib.so +0 -0
- data/lib/2.4/zstdlib.so +0 -0
- data/lib/2.5/zstdlib.so +0 -0
- data/lib/2.6/zstdlib.so +0 -0
- metadata +62 -61
File without changes
|
File without changes
|
@@ -216,7 +216,7 @@ local gzFile gz_open(path, fd, mode)
|
|
216
216
|
#if !defined(NO_snprintf) && !defined(NO_vsnprintf)
|
217
217
|
(void)snprintf(state.state->path, len + 1, "%s", (const char *)path);
|
218
218
|
#else
|
219
|
-
strcpy(state.state->path, path);
|
219
|
+
strcpy(state.state->path, (const char*)path);
|
220
220
|
#endif
|
221
221
|
|
222
222
|
/* compute the flags for open() */
|
@@ -325,7 +325,7 @@ int ZEXPORT gzbuffer(file, size)
|
|
325
325
|
/* get internal structure and check integrity */
|
326
326
|
if (file == NULL)
|
327
327
|
return -1;
|
328
|
-
state =
|
328
|
+
state.file = file;
|
329
329
|
if (state.state->mode != GZ_READ && state.state->mode != GZ_WRITE)
|
330
330
|
return -1;
|
331
331
|
|
@@ -351,7 +351,7 @@ int ZEXPORT gzrewind(file)
|
|
351
351
|
/* get internal structure */
|
352
352
|
if (file == NULL)
|
353
353
|
return -1;
|
354
|
-
state =
|
354
|
+
state.file = file;
|
355
355
|
|
356
356
|
/* check that we're reading and that there's no error */
|
357
357
|
if (state.state->mode != GZ_READ ||
|
@@ -378,7 +378,7 @@ z_off64_t ZEXPORT gzseek64(file, offset, whence)
|
|
378
378
|
/* get internal structure and check integrity */
|
379
379
|
if (file == NULL)
|
380
380
|
return -1;
|
381
|
-
state =
|
381
|
+
state.file = file;
|
382
382
|
if (state.state->mode != GZ_READ && state.state->mode != GZ_WRITE)
|
383
383
|
return -1;
|
384
384
|
|
@@ -463,7 +463,7 @@ z_off64_t ZEXPORT gztell64(file)
|
|
463
463
|
/* get internal structure and check integrity */
|
464
464
|
if (file == NULL)
|
465
465
|
return -1;
|
466
|
-
state =
|
466
|
+
state.file = file;
|
467
467
|
if (state.state->mode != GZ_READ && state.state->mode != GZ_WRITE)
|
468
468
|
return -1;
|
469
469
|
|
@@ -491,7 +491,7 @@ z_off64_t ZEXPORT gzoffset64(file)
|
|
491
491
|
/* get internal structure and check integrity */
|
492
492
|
if (file == NULL)
|
493
493
|
return -1;
|
494
|
-
state =
|
494
|
+
state.file = file;
|
495
495
|
if (state.state->mode != GZ_READ && state.state->mode != GZ_WRITE)
|
496
496
|
return -1;
|
497
497
|
|
@@ -523,7 +523,7 @@ int ZEXPORT gzeof(file)
|
|
523
523
|
/* get internal structure and check integrity */
|
524
524
|
if (file == NULL)
|
525
525
|
return 0;
|
526
|
-
state =
|
526
|
+
state.file = file;
|
527
527
|
if (state.state->mode != GZ_READ && state.state->mode != GZ_WRITE)
|
528
528
|
return 0;
|
529
529
|
|
@@ -541,7 +541,7 @@ const char * ZEXPORT gzerror(file, errnum)
|
|
541
541
|
/* get internal structure and check integrity */
|
542
542
|
if (file == NULL)
|
543
543
|
return NULL;
|
544
|
-
state =
|
544
|
+
state.file = file;
|
545
545
|
if (state.state->mode != GZ_READ && state.state->mode != GZ_WRITE)
|
546
546
|
return NULL;
|
547
547
|
|
@@ -561,7 +561,7 @@ void ZEXPORT gzclearerr(file)
|
|
561
561
|
/* get internal structure and check integrity */
|
562
562
|
if (file == NULL)
|
563
563
|
return;
|
564
|
-
state =
|
564
|
+
state.file = file;
|
565
565
|
if (state.state->mode != GZ_READ && state.state->mode != GZ_WRITE)
|
566
566
|
return;
|
567
567
|
|
@@ -8,6 +8,14 @@
|
|
8
8
|
|
9
9
|
#include "gzguts.h"
|
10
10
|
|
11
|
+
/* fix for Visual Studio, which doesn't support ssize_t type.
|
12
|
+
* see https://github.com/facebook/zstd/issues/1800#issuecomment-545945050 */
|
13
|
+
#if defined(_MSC_VER) && !defined(ssize_t)
|
14
|
+
# include <BaseTsd.h>
|
15
|
+
typedef SSIZE_T ssize_t;
|
16
|
+
#endif
|
17
|
+
|
18
|
+
|
11
19
|
/* Local functions */
|
12
20
|
local int gz_load OF((gz_statep, unsigned char *, unsigned, unsigned *));
|
13
21
|
local int gz_avail OF((gz_statep));
|
@@ -386,7 +394,7 @@ int ZEXPORT gzread(file, buf, len)
|
|
386
394
|
/* get internal structure */
|
387
395
|
if (file == NULL)
|
388
396
|
return -1;
|
389
|
-
state =
|
397
|
+
state.file = file;
|
390
398
|
|
391
399
|
/* check that we're reading and that there's no (serious) error */
|
392
400
|
if (state.state->mode != GZ_READ ||
|
@@ -424,7 +432,7 @@ z_size_t ZEXPORT gzfread(buf, size, nitems, file)
|
|
424
432
|
/* get internal structure */
|
425
433
|
if (file == NULL)
|
426
434
|
return 0;
|
427
|
-
state =
|
435
|
+
state.file = file;
|
428
436
|
|
429
437
|
/* check that we're reading and that there's no (serious) error */
|
430
438
|
if (state.state->mode != GZ_READ ||
|
@@ -470,7 +478,7 @@ int ZEXPORT gzgetc(file)
|
|
470
478
|
/* get internal structure */
|
471
479
|
if (file == NULL)
|
472
480
|
return -1;
|
473
|
-
state =
|
481
|
+
state.file = file;
|
474
482
|
|
475
483
|
/* check that we're reading and that there's no (serious) error */
|
476
484
|
if (state.state->mode != GZ_READ ||
|
@@ -485,7 +493,7 @@ int ZEXPORT gzgetc(file)
|
|
485
493
|
}
|
486
494
|
|
487
495
|
/* nothing there -- try gz_read() */
|
488
|
-
ret = (
|
496
|
+
ret = (int)gz_read(state, buf, 1);
|
489
497
|
return ret < 1 ? -1 : buf[0];
|
490
498
|
}
|
491
499
|
|
@@ -505,7 +513,7 @@ int ZEXPORT gzungetc(c, file)
|
|
505
513
|
/* get internal structure */
|
506
514
|
if (file == NULL)
|
507
515
|
return -1;
|
508
|
-
state =
|
516
|
+
state.file = file;
|
509
517
|
|
510
518
|
/* check that we're reading and that there's no (serious) error */
|
511
519
|
if (state.state->mode != GZ_READ ||
|
@@ -569,7 +577,7 @@ char * ZEXPORT gzgets(file, buf, len)
|
|
569
577
|
/* check parameters and get internal structure */
|
570
578
|
if (file == NULL || buf == NULL || len < 1)
|
571
579
|
return NULL;
|
572
|
-
state =
|
580
|
+
state.file = file;
|
573
581
|
|
574
582
|
/* check that we're reading and that there's no (serious) error */
|
575
583
|
if (state.state->mode != GZ_READ ||
|
@@ -628,7 +636,7 @@ int ZEXPORT gzdirect(file)
|
|
628
636
|
/* get internal structure */
|
629
637
|
if (file == NULL)
|
630
638
|
return 0;
|
631
|
-
state =
|
639
|
+
state.file = file;
|
632
640
|
|
633
641
|
/* if the state is not known, but we can find out, then do so (this is
|
634
642
|
mainly for right after a gzopen() or gzdopen()) */
|
@@ -649,7 +657,7 @@ int ZEXPORT gzclose_r(file)
|
|
649
657
|
/* get internal structure */
|
650
658
|
if (file == NULL)
|
651
659
|
return Z_STREAM_ERROR;
|
652
|
-
state =
|
660
|
+
state.file = file;
|
653
661
|
|
654
662
|
/* check that we're reading */
|
655
663
|
if (state.state->mode != GZ_READ)
|
@@ -258,7 +258,7 @@ int ZEXPORT gzwrite(file, buf, len)
|
|
258
258
|
/* get internal structure */
|
259
259
|
if (file == NULL)
|
260
260
|
return 0;
|
261
|
-
state =
|
261
|
+
state.file = file;
|
262
262
|
|
263
263
|
/* check that we're writing and that there's no error */
|
264
264
|
if (state.state->mode != GZ_WRITE || state.state->err != Z_OK)
|
@@ -289,7 +289,7 @@ z_size_t ZEXPORT gzfwrite(buf, size, nitems, file)
|
|
289
289
|
assert(size != 0);
|
290
290
|
if (file == NULL)
|
291
291
|
return 0;
|
292
|
-
state =
|
292
|
+
state.file = file;
|
293
293
|
|
294
294
|
/* check that we're writing and that there's no error */
|
295
295
|
if (state.state->mode != GZ_WRITE || state.state->err != Z_OK)
|
@@ -319,7 +319,7 @@ int ZEXPORT gzputc(file, c)
|
|
319
319
|
/* get internal structure */
|
320
320
|
if (file == NULL)
|
321
321
|
return -1;
|
322
|
-
state =
|
322
|
+
state.file = file;
|
323
323
|
strm = &(state.state->strm);
|
324
324
|
|
325
325
|
/* check that we're writing and that there's no error */
|
@@ -366,7 +366,7 @@ int ZEXPORT gzputs(file, str)
|
|
366
366
|
/* get internal structure */
|
367
367
|
if (file == NULL)
|
368
368
|
return -1;
|
369
|
-
state =
|
369
|
+
state.file = file;
|
370
370
|
|
371
371
|
/* check that we're writing and that there's no error */
|
372
372
|
if (state.state->mode != GZ_WRITE || state.state->err != Z_OK)
|
@@ -393,7 +393,7 @@ int ZEXPORTVA gzvprintf(gzFile file, const char *format, va_list va)
|
|
393
393
|
/* get internal structure */
|
394
394
|
if (file == NULL)
|
395
395
|
return Z_STREAM_ERROR;
|
396
|
-
state =
|
396
|
+
state.file = file;
|
397
397
|
strm = &(state.state->strm);
|
398
398
|
|
399
399
|
/* check that we're writing and that there's no error */
|
@@ -565,7 +565,7 @@ int ZEXPORT gzflush(file, flush)
|
|
565
565
|
/* get internal structure */
|
566
566
|
if (file == NULL)
|
567
567
|
return Z_STREAM_ERROR;
|
568
|
-
state =
|
568
|
+
state.file = file;
|
569
569
|
|
570
570
|
/* check that we're writing and that there's no error */
|
571
571
|
if (state.state->mode != GZ_WRITE || state.state->err != Z_OK)
|
@@ -599,7 +599,7 @@ int ZEXPORT gzsetparams(file, level, strategy)
|
|
599
599
|
/* get internal structure */
|
600
600
|
if (file == NULL)
|
601
601
|
return Z_STREAM_ERROR;
|
602
|
-
state =
|
602
|
+
state.file = file;
|
603
603
|
strm = &(state.state->strm);
|
604
604
|
|
605
605
|
/* check that we're writing and that there's no error */
|
@@ -639,7 +639,7 @@ int ZEXPORT gzclose_w(file)
|
|
639
639
|
/* get internal structure */
|
640
640
|
if (file == NULL)
|
641
641
|
return Z_STREAM_ERROR;
|
642
|
-
state =
|
642
|
+
state.file = file;
|
643
643
|
|
644
644
|
/* check that we're writing */
|
645
645
|
if (state.state->mode != GZ_WRITE)
|
@@ -31,7 +31,7 @@
|
|
31
31
|
/* === Constants === */
|
32
32
|
#define Z_INFLATE_SYNC 8
|
33
33
|
#define ZLIB_HEADERSIZE 4
|
34
|
-
#define ZSTD_HEADERSIZE ZSTD_FRAMEHEADERSIZE_MIN
|
34
|
+
#define ZSTD_HEADERSIZE ZSTD_FRAMEHEADERSIZE_MIN(ZSTD_f_zstd1)
|
35
35
|
#define ZWRAP_DEFAULT_CLEVEL 3 /* Z_DEFAULT_COMPRESSION is translated to ZWRAP_DEFAULT_CLEVEL for zstd */
|
36
36
|
|
37
37
|
|
@@ -54,7 +54,7 @@ int ZWRAP_isUsingZSTDcompression(void) { return g_ZWRAP_useZSTDcompression; }
|
|
54
54
|
|
55
55
|
static ZWRAP_decompress_type g_ZWRAPdecompressionType = ZWRAP_AUTO;
|
56
56
|
|
57
|
-
void ZWRAP_setDecompressionType(ZWRAP_decompress_type type) { g_ZWRAPdecompressionType = type; }
|
57
|
+
void ZWRAP_setDecompressionType(ZWRAP_decompress_type type) { g_ZWRAPdecompressionType = type; }
|
58
58
|
|
59
59
|
ZWRAP_decompress_type ZWRAP_getDecompressionType(void) { return g_ZWRAPdecompressionType; }
|
60
60
|
|
@@ -99,7 +99,7 @@ typedef struct {
|
|
99
99
|
unsigned long long pledgedSrcSize;
|
100
100
|
} ZWRAP_CCtx;
|
101
101
|
|
102
|
-
typedef ZWRAP_CCtx internal_state;
|
102
|
+
/* typedef ZWRAP_CCtx internal_state; */
|
103
103
|
|
104
104
|
|
105
105
|
|
@@ -121,8 +121,10 @@ static ZWRAP_CCtx* ZWRAP_createCCtx(z_streamp strm)
|
|
121
121
|
if (zwc==NULL) return NULL;
|
122
122
|
memset(zwc, 0, sizeof(ZWRAP_CCtx));
|
123
123
|
memcpy(&zwc->allocFunc, strm, sizeof(z_stream));
|
124
|
-
{
|
125
|
-
|
124
|
+
{ ZSTD_customMem ZWRAP_customMem = { ZWRAP_allocFunction, ZWRAP_freeFunction, NULL };
|
125
|
+
ZWRAP_customMem.opaque = &zwc->allocFunc;
|
126
|
+
zwc->customMem = ZWRAP_customMem;
|
127
|
+
}
|
126
128
|
} else {
|
127
129
|
zwc = (ZWRAP_CCtx*)calloc(1, sizeof(*zwc));
|
128
130
|
if (zwc==NULL) return NULL;
|
@@ -455,15 +457,17 @@ static void ZWRAP_initDCtx(ZWRAP_DCtx* zwd)
|
|
455
457
|
static ZWRAP_DCtx* ZWRAP_createDCtx(z_streamp strm)
|
456
458
|
{
|
457
459
|
ZWRAP_DCtx* zwd;
|
458
|
-
MEM_STATIC_ASSERT(sizeof(zwd->headerBuf) >=
|
460
|
+
MEM_STATIC_ASSERT(sizeof(zwd->headerBuf) >= ZSTD_HEADERSIZE); /* check static buffer size condition */
|
459
461
|
|
460
462
|
if (strm->zalloc && strm->zfree) {
|
461
463
|
zwd = (ZWRAP_DCtx*)strm->zalloc(strm->opaque, 1, sizeof(ZWRAP_DCtx));
|
462
464
|
if (zwd==NULL) return NULL;
|
463
465
|
memset(zwd, 0, sizeof(ZWRAP_DCtx));
|
464
466
|
zwd->allocFunc = *strm; /* just to copy zalloc, zfree & opaque */
|
465
|
-
{
|
466
|
-
|
467
|
+
{ ZSTD_customMem ZWRAP_customMem = { ZWRAP_allocFunction, ZWRAP_freeFunction, NULL };
|
468
|
+
ZWRAP_customMem.opaque = &zwd->allocFunc;
|
469
|
+
zwd->customMem = ZWRAP_customMem;
|
470
|
+
}
|
467
471
|
} else {
|
468
472
|
zwd = (ZWRAP_DCtx*)calloc(1, sizeof(*zwd));
|
469
473
|
if (zwd==NULL) return NULL;
|
@@ -509,7 +513,7 @@ static int ZWRAPD_finishWithErrorMsg(z_streamp strm, char* message)
|
|
509
513
|
|
510
514
|
|
511
515
|
ZEXTERN int ZEXPORT z_inflateInit_ OF((z_streamp strm,
|
512
|
-
const char
|
516
|
+
const char* version, int stream_size))
|
513
517
|
{
|
514
518
|
if (g_ZWRAPdecompressionType == ZWRAP_FORCE_ZLIB) {
|
515
519
|
strm->reserved = ZWRAP_ZLIB_STREAM;
|
@@ -520,7 +524,7 @@ ZEXTERN int ZEXPORT z_inflateInit_ OF((z_streamp strm,
|
|
520
524
|
LOG_WRAPPERD("- inflateInit\n");
|
521
525
|
if (zwd == NULL) return ZWRAPD_finishWithError(zwd, strm, 0);
|
522
526
|
|
523
|
-
zwd->version = ZSTD_malloc(strlen(version)+1, zwd->customMem);
|
527
|
+
zwd->version = (char*)ZSTD_malloc(strlen(version)+1, zwd->customMem);
|
524
528
|
if (zwd->version == NULL) return ZWRAPD_finishWithError(zwd, strm, 0);
|
525
529
|
strcpy(zwd->version, version);
|
526
530
|
|
@@ -1003,7 +1007,7 @@ ZEXTERN int ZEXPORT z_inflateBackEnd OF((z_streamp strm))
|
|
1003
1007
|
}
|
1004
1008
|
|
1005
1009
|
|
1006
|
-
ZEXTERN uLong ZEXPORT z_zlibCompileFlags OF((void)) { return zlibCompileFlags(); }
|
1010
|
+
ZEXTERN uLong ZEXPORT z_zlibCompileFlags OF((void)) { return zlibCompileFlags(); }
|
1007
1011
|
|
1008
1012
|
|
1009
1013
|
|
File without changes
|
data/lib/2.2/zstdlib.so
CHANGED
Binary file
|
data/lib/2.3/zstdlib.so
CHANGED
Binary file
|
data/lib/2.4/zstdlib.so
CHANGED
Binary file
|
data/lib/2.5/zstdlib.so
CHANGED
Binary file
|
data/lib/2.6/zstdlib.so
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zstdlib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Oleg A. Khlybov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -127,65 +127,66 @@ files:
|
|
127
127
|
- ext/zstdlib/zlib.mk
|
128
128
|
- ext/zstdlib/zlibwrapper.mk
|
129
129
|
- ext/zstdlib/zlibwrapper/zlibwrapper.c
|
130
|
-
- ext/zstdlib/zstd-1.4.
|
131
|
-
- ext/zstdlib/zstd-1.4.
|
132
|
-
- ext/zstdlib/zstd-1.4.
|
133
|
-
- ext/zstdlib/zstd-1.4.
|
134
|
-
- ext/zstdlib/zstd-1.4.
|
135
|
-
- ext/zstdlib/zstd-1.4.
|
136
|
-
- ext/zstdlib/zstd-1.4.
|
137
|
-
- ext/zstdlib/zstd-1.4.
|
138
|
-
- ext/zstdlib/zstd-1.4.
|
139
|
-
- ext/zstdlib/zstd-1.4.
|
140
|
-
- ext/zstdlib/zstd-1.4.
|
141
|
-
- ext/zstdlib/zstd-1.4.
|
142
|
-
- ext/zstdlib/zstd-1.4.
|
143
|
-
- ext/zstdlib/zstd-1.4.
|
144
|
-
- ext/zstdlib/zstd-1.4.
|
145
|
-
- ext/zstdlib/zstd-1.4.
|
146
|
-
- ext/zstdlib/zstd-1.4.
|
147
|
-
- ext/zstdlib/zstd-1.4.
|
148
|
-
- ext/zstdlib/zstd-1.4.
|
149
|
-
- ext/zstdlib/zstd-1.4.
|
150
|
-
- ext/zstdlib/zstd-1.4.
|
151
|
-
- ext/zstdlib/zstd-1.4.
|
152
|
-
- ext/zstdlib/zstd-1.4.
|
153
|
-
- ext/zstdlib/zstd-1.4.
|
154
|
-
- ext/zstdlib/zstd-1.4.
|
155
|
-
- ext/zstdlib/zstd-1.4.
|
156
|
-
- ext/zstdlib/zstd-1.4.
|
157
|
-
- ext/zstdlib/zstd-1.4.
|
158
|
-
- ext/zstdlib/zstd-1.4.
|
159
|
-
- ext/zstdlib/zstd-1.4.
|
160
|
-
- ext/zstdlib/zstd-1.4.
|
161
|
-
- ext/zstdlib/zstd-1.4.
|
162
|
-
- ext/zstdlib/zstd-1.4.
|
163
|
-
- ext/zstdlib/zstd-1.4.
|
164
|
-
- ext/zstdlib/zstd-1.4.
|
165
|
-
- ext/zstdlib/zstd-1.4.
|
166
|
-
- ext/zstdlib/zstd-1.4.
|
167
|
-
- ext/zstdlib/zstd-1.4.
|
168
|
-
- ext/zstdlib/zstd-1.4.
|
169
|
-
- ext/zstdlib/zstd-1.4.
|
170
|
-
- ext/zstdlib/zstd-1.4.
|
171
|
-
- ext/zstdlib/zstd-1.4.
|
172
|
-
- ext/zstdlib/zstd-1.4.
|
173
|
-
- ext/zstdlib/zstd-1.4.
|
174
|
-
- ext/zstdlib/zstd-1.4.
|
175
|
-
- ext/zstdlib/zstd-1.4.
|
176
|
-
- ext/zstdlib/zstd-1.4.
|
177
|
-
- ext/zstdlib/zstd-1.4.
|
178
|
-
- ext/zstdlib/zstd-1.4.
|
179
|
-
- ext/zstdlib/zstd-1.4.
|
180
|
-
- ext/zstdlib/zstd-1.4.
|
181
|
-
- ext/zstdlib/zstd-1.4.
|
182
|
-
- ext/zstdlib/zstd-1.4.
|
183
|
-
- ext/zstdlib/zstd-1.4.
|
184
|
-
- ext/zstdlib/zstd-1.4.
|
185
|
-
- ext/zstdlib/zstd-1.4.
|
186
|
-
- ext/zstdlib/zstd-1.4.
|
187
|
-
- ext/zstdlib/zstd-1.4.
|
188
|
-
- ext/zstdlib/zstd-1.4.
|
130
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/bitstream.h
|
131
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/compiler.h
|
132
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/cpu.h
|
133
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/debug.c
|
134
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/debug.h
|
135
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/entropy_common.c
|
136
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/error_private.c
|
137
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/error_private.h
|
138
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/fse.h
|
139
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/fse_decompress.c
|
140
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/huf.h
|
141
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/mem.h
|
142
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/pool.c
|
143
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/pool.h
|
144
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/threading.c
|
145
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/threading.h
|
146
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/xxhash.c
|
147
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/xxhash.h
|
148
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/zstd_common.c
|
149
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/zstd_errors.h
|
150
|
+
- ext/zstdlib/zstd-1.4.4/lib/common/zstd_internal.h
|
151
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/fse_compress.c
|
152
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/hist.c
|
153
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/hist.h
|
154
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/huf_compress.c
|
155
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress.c
|
156
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress_internal.h
|
157
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress_literals.c
|
158
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress_literals.h
|
159
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress_sequences.c
|
160
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstd_compress_sequences.h
|
161
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstd_cwksp.h
|
162
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstd_double_fast.c
|
163
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstd_double_fast.h
|
164
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstd_fast.c
|
165
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstd_fast.h
|
166
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstd_lazy.c
|
167
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstd_lazy.h
|
168
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstd_ldm.c
|
169
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstd_ldm.h
|
170
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstd_opt.c
|
171
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstd_opt.h
|
172
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstdmt_compress.c
|
173
|
+
- ext/zstdlib/zstd-1.4.4/lib/compress/zstdmt_compress.h
|
174
|
+
- ext/zstdlib/zstd-1.4.4/lib/decompress/huf_decompress.c
|
175
|
+
- ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_ddict.c
|
176
|
+
- ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_ddict.h
|
177
|
+
- ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_decompress.c
|
178
|
+
- ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_decompress_block.c
|
179
|
+
- ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_decompress_block.h
|
180
|
+
- ext/zstdlib/zstd-1.4.4/lib/decompress/zstd_decompress_internal.h
|
181
|
+
- ext/zstdlib/zstd-1.4.4/lib/zstd.h
|
182
|
+
- ext/zstdlib/zstd-1.4.4/zlibWrapper/gzclose.c
|
183
|
+
- ext/zstdlib/zstd-1.4.4/zlibWrapper/gzcompatibility.h
|
184
|
+
- ext/zstdlib/zstd-1.4.4/zlibWrapper/gzguts.h
|
185
|
+
- ext/zstdlib/zstd-1.4.4/zlibWrapper/gzlib.c
|
186
|
+
- ext/zstdlib/zstd-1.4.4/zlibWrapper/gzread.c
|
187
|
+
- ext/zstdlib/zstd-1.4.4/zlibWrapper/gzwrite.c
|
188
|
+
- ext/zstdlib/zstd-1.4.4/zlibWrapper/zstd_zlibwrapper.c
|
189
|
+
- ext/zstdlib/zstd-1.4.4/zlibWrapper/zstd_zlibwrapper.h
|
189
190
|
- ext/zstdlib/zstd.mk
|
190
191
|
- lib/2.2/zstdlib.so
|
191
192
|
- lib/2.3/zstdlib.so
|