zstdlib 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +10 -0
- data/README.md +7 -1
- data/Rakefile +38 -8
- data/ext/{zstdlib → zstdlib_c}/extconf.rb +10 -5
- data/ext/{zstdlib → zstdlib_c}/ruby/zlib-2.2/zstdlib.c +2 -2
- data/ext/{zstdlib → zstdlib_c}/ruby/zlib-2.3/zstdlib.c +2 -2
- data/ext/{zstdlib → zstdlib_c}/ruby/zlib-2.4/zstdlib.c +2 -2
- data/ext/{zstdlib → zstdlib_c}/ruby/zlib-2.5/zstdlib.c +2 -2
- data/ext/{zstdlib → zstdlib_c}/ruby/zlib-2.6/zstdlib.c +2 -2
- data/ext/{zstdlib → zstdlib_c}/ruby/zlib-2.7/zstdlib.c +2 -2
- data/ext/{zstdlib → zstdlib_c}/ruby/zlib-3.0/zstdlib.c +2 -2
- data/ext/zstdlib_c/ruby/zlib-3.1/zstdlib.c +5076 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/adler32.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/compress.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/crc32.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/crc32.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/deflate.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/deflate.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/gzclose.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/gzguts.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/gzlib.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/gzread.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/gzwrite.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/infback.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inffast.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inffast.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inffixed.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inflate.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inflate.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inftrees.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/inftrees.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/trees.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/trees.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/uncompr.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/zconf.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/zlib.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/zutil.c +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib-1.2.11/zutil.h +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlib.mk +0 -0
- data/ext/{zstdlib → zstdlib_c}/zlibwrapper/zlibwrapper.c +1 -5
- data/ext/{zstdlib → zstdlib_c}/zlibwrapper.mk +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/bitstream.h +24 -9
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/compiler.h +89 -43
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/cpu.h +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/debug.c +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/debug.h +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/entropy_common.c +11 -5
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/error_private.c +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/error_private.h +79 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/fse.h +2 -1
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/fse_decompress.c +1 -1
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/huf.h +24 -22
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/mem.h +18 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/pool.c +11 -6
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/pool.h +2 -2
- data/ext/zstdlib_c/zstd-1.5.2/lib/common/portability_macros.h +137 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/threading.c +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/threading.h +0 -0
- data/ext/zstdlib_c/zstd-1.5.2/lib/common/xxhash.c +24 -0
- data/ext/zstdlib_c/zstd-1.5.2/lib/common/xxhash.h +5686 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/zstd_common.c +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/zstd_deps.h +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/zstd_internal.h +95 -92
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/common/zstd_trace.h +12 -3
- data/ext/zstdlib_c/zstd-1.5.2/lib/compress/clevels.h +134 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/fse_compress.c +63 -27
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/hist.c +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/hist.h +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/huf_compress.c +537 -104
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_compress.c +307 -373
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_compress_internal.h +174 -83
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_compress_literals.c +4 -3
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_compress_literals.h +3 -1
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_compress_sequences.c +15 -14
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_compress_sequences.h +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_compress_superblock.c +4 -3
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_compress_superblock.h +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_cwksp.h +41 -27
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_double_fast.c +295 -120
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_double_fast.h +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_fast.c +309 -130
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_fast.h +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_lazy.c +482 -562
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_lazy.h +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_ldm.c +9 -7
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_ldm.h +1 -1
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_ldm_geartab.h +4 -1
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_opt.c +249 -148
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstd_opt.h +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstdmt_compress.c +76 -38
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/compress/zstdmt_compress.h +4 -1
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/decompress/huf_decompress.c +727 -189
- data/ext/zstdlib_c/zstd-1.5.2/lib/decompress/huf_decompress_amd64.S +585 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/decompress/zstd_ddict.c +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/decompress/zstd_ddict.h +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/decompress/zstd_decompress.c +85 -22
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/decompress/zstd_decompress_block.c +744 -220
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/decompress/zstd_decompress_block.h +8 -2
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/decompress/zstd_decompress_internal.h +34 -3
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/zdict.h +4 -4
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/zstd.h +179 -136
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/lib/zstd_errors.h +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/zlibWrapper/gzclose.c +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/zlibWrapper/gzcompatibility.h +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/zlibWrapper/gzguts.h +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/zlibWrapper/gzlib.c +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/zlibWrapper/gzread.c +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/zlibWrapper/gzwrite.c +0 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/zlibWrapper/zstd_zlibwrapper.c +7 -0
- data/ext/{zstdlib/zstd-1.5.0 → zstdlib_c/zstd-1.5.2}/zlibWrapper/zstd_zlibwrapper.h +0 -0
- data/ext/zstdlib_c/zstd.mk +15 -0
- data/lib/zstdlib.rb +2 -2
- metadata +118 -114
- data/ext/zstdlib/zstd-1.5.0/lib/common/xxhash.c +0 -824
- data/ext/zstdlib/zstd-1.5.0/lib/common/xxhash.h +0 -285
- data/ext/zstdlib/zstd.mk +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2976ec1d48890e3d065192896c2322912e61eb88c2d1aa445c19ddd7536de81f
|
4
|
+
data.tar.gz: 6ca5cfeb403df3cc60609bd9acfd225364e2d247ea9095d8727c9b539de2a10b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cdaaa65adb75bf14513e5dea37801d0fe6c11e9c39e7964e46e72fe9a604fc7e8aca0d66e8d7d1d696d0bb697f161e435419aab758b5dc04841daed60f4dd30
|
7
|
+
data.tar.gz: 4995f810d803aa6a9d468b431e0a0acea7ab9dd5a07245c5769dd1b44722cd08c029036c76bb84d9923fed26ec16abb3c159a212378b5fcb5c4186fa6104b1e5
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
# 0.9.0
|
2
|
+
|
3
|
+
Updated Zstd to `1.5.2`
|
4
|
+
|
5
|
+
Added support for MRI Ruby versions `3.0-3.1`
|
6
|
+
|
7
|
+
Upgraded rake-compiler-dock to `1.2.0`
|
8
|
+
|
9
|
+
Implemented deployment of system-specific compiled gems for for x32/x64 Windows and x64/ARM64 MacOS platforms
|
10
|
+
|
1
11
|
# 0.8.0
|
2
12
|
|
3
13
|
Zstd version update to `1.5.0`
|
data/README.md
CHANGED
@@ -77,7 +77,13 @@ The `BEST_SPEED` constant remains unchanged.
|
|
77
77
|
|
78
78
|
_zstdlib_ home page on [GitHub](https://github.com/okhlybov/zstdlib).
|
79
79
|
|
80
|
-
Source code and
|
80
|
+
Source code and system-specific compiled gems can be obtained from [rubygems.org](https://rubygems.org/gems/zstdlib).
|
81
|
+
|
82
|
+
The system-specific gems are currently provided for x32/x64 Windows and x64/ARM64 MacOS platforms.
|
83
|
+
|
84
|
+
Note that these gems are built with the [rake-compiler-dock](https://github.com/rake-compiler/rake-compiler-dock)
|
85
|
+
infrastructure the minimum supported Ruby version is raised to 2.4.
|
86
|
+
All other installations including Linux will use the source gem and hence require the compilation step with locally installed development tools.
|
81
87
|
|
82
88
|
## Release history
|
83
89
|
|
data/Rakefile
CHANGED
@@ -1,18 +1,49 @@
|
|
1
1
|
require 'rake/testtask'
|
2
2
|
require 'bundler/gem_tasks'
|
3
3
|
require 'rake/extensiontask'
|
4
|
+
require 'rake_compiler_dock'
|
4
5
|
|
5
6
|
|
6
7
|
spec = Gem::Specification.load('zstdlib.gemspec')
|
7
8
|
|
8
9
|
|
9
|
-
|
10
|
+
platforms = %w[x86-mingw32 x64-mingw-ucrt x64-mingw32 x86_64-darwin arm64-darwin]
|
11
|
+
|
12
|
+
|
13
|
+
Rake::ExtensionTask.new('zstdlib_c', spec) do |t|
|
10
14
|
t.cross_compile = true
|
11
|
-
t.cross_platform =
|
15
|
+
t.cross_platform = platforms
|
16
|
+
t.cross_config_options << '--enable-cross-build'
|
12
17
|
end
|
13
18
|
|
14
19
|
|
15
|
-
|
20
|
+
namespace "gem" do
|
21
|
+
platforms.each do |platform|
|
22
|
+
desc "build native gem for #{platform}"
|
23
|
+
# This runs on a host
|
24
|
+
task platform do
|
25
|
+
RakeCompilerDock.sh(<<~EOF, platform: platform)
|
26
|
+
gem install bundler --no-document &&
|
27
|
+
bundle &&
|
28
|
+
bundle exec rake gem:#{platform}:buildit
|
29
|
+
EOF
|
30
|
+
end
|
31
|
+
|
32
|
+
namespace platform do
|
33
|
+
# This runs in the rake-compiler-dock docker container
|
34
|
+
task "buildit" do
|
35
|
+
# Use Task#invoke because the pkg/*gem task is defined at runtime
|
36
|
+
Rake::Task["native:#{platform}"].invoke
|
37
|
+
Rake::Task["pkg/#{spec.full_name}-#{Gem::Platform.new(platform)}.gem"].invoke
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
desc "build native gem for all platforms"
|
44
|
+
multitask 'all' => platforms
|
45
|
+
|
46
|
+
end
|
16
47
|
|
17
48
|
|
18
49
|
Rake::TestTask.new(:test) do |t|
|
@@ -22,8 +53,7 @@ Rake::TestTask.new(:test) do |t|
|
|
22
53
|
end
|
23
54
|
|
24
55
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
end
|
56
|
+
Gem::PackageTask.new(spec)
|
57
|
+
|
58
|
+
|
59
|
+
# Build system explained: https://github.com/flavorjones/ruby-c-extensions-explained/tree/main/precompiled
|
@@ -6,10 +6,15 @@ require 'fileutils'
|
|
6
6
|
include RbConfig
|
7
7
|
include FileUtils
|
8
8
|
|
9
|
-
ZSTD_VERSION = '1.5.
|
9
|
+
ZSTD_VERSION = '1.5.2'
|
10
10
|
ZLIB_VERSION = '1.2.11'
|
11
|
+
|
11
12
|
RB_VERSION = CONFIG['MAJOR']+'.'+CONFIG['MINOR']
|
12
|
-
ZMOD_VERSION = RB_VERSION >= '2.3' ? '
|
13
|
+
ZMOD_VERSION = RB_VERSION >= '2.3' ? '3.1' : RB_VERSION # Review requirements with every new zlib module release!
|
14
|
+
|
15
|
+
# For cross compiling
|
16
|
+
ENV['CC'] = RbConfig::CONFIG['CC']
|
17
|
+
ENV['LD'] = RbConfig::CONFIG['LD']
|
13
18
|
|
14
19
|
root = File.dirname(__FILE__)
|
15
20
|
|
@@ -23,16 +28,16 @@ cp "#{zmod}/zstdlib.c", 'zstdlib.c'
|
|
23
28
|
$srcs = ['zstdlib.c']
|
24
29
|
|
25
30
|
$CFLAGS += ' -fomit-frame-pointer -ffast-math -O3'
|
26
|
-
$CPPFLAGS += " -I#{zlib} -I#{zlibwrapper} -I#{zstd} -DZWRAP_USE_ZSTD=1 -DGZIP_SUPPORT=
|
31
|
+
$CPPFLAGS += " -I#{zlib} -I#{zlibwrapper} -I#{zstd} -DZWRAP_USE_ZSTD=1 -DGZIP_SUPPORT=1"
|
27
32
|
$LDFLAGS += ' -s'
|
28
33
|
$LOCAL_LIBS += ' libzlibwrapper.a libz.a libzstd.a'
|
29
34
|
|
30
|
-
create_makefile('
|
35
|
+
create_makefile('zstdlib_c')
|
31
36
|
|
32
37
|
File.open('Makefile', 'a') do |file|
|
33
38
|
file << %~
|
34
39
|
|
35
|
-
export CC AR CFLAGS CPPFLAGS
|
40
|
+
export CC LD AR CFLAGS CPPFLAGS
|
36
41
|
|
37
42
|
$(DLLIB) : libz.a libzstd.a libzlibwrapper.a
|
38
43
|
|
@@ -293,7 +293,7 @@ static VALUE rb_gzreader_readlines(int, VALUE*, VALUE);
|
|
293
293
|
* - Zstdlib::GzipFile::NoFooter
|
294
294
|
*
|
295
295
|
*/
|
296
|
-
void
|
296
|
+
void Init_zstdlib_c(void);
|
297
297
|
|
298
298
|
/*--------- Exceptions --------*/
|
299
299
|
|
@@ -4250,7 +4250,7 @@ rb_gzreader_readlines(int argc, VALUE *argv, VALUE obj)
|
|
4250
4250
|
#endif /* GZIP_SUPPORT */
|
4251
4251
|
|
4252
4252
|
void
|
4253
|
-
|
4253
|
+
Init_zstdlib_c(void)
|
4254
4254
|
{
|
4255
4255
|
VALUE mZlib, cZStream, cDeflate, cInflate;
|
4256
4256
|
#if GZIP_SUPPORT
|
@@ -293,7 +293,7 @@ static VALUE rb_gzreader_readlines(int, VALUE*, VALUE);
|
|
293
293
|
* - Zstdlib::GzipFile::NoFooter
|
294
294
|
*
|
295
295
|
*/
|
296
|
-
void
|
296
|
+
void Init_zstdlib_c(void);
|
297
297
|
|
298
298
|
/*--------- Exceptions --------*/
|
299
299
|
|
@@ -4276,7 +4276,7 @@ rb_gzreader_external_encoding(VALUE self)
|
|
4276
4276
|
#endif /* GZIP_SUPPORT */
|
4277
4277
|
|
4278
4278
|
void
|
4279
|
-
|
4279
|
+
Init_zstdlib_c(void)
|
4280
4280
|
{
|
4281
4281
|
VALUE mZlib, cZStream, cDeflate, cInflate;
|
4282
4282
|
#if GZIP_SUPPORT
|
@@ -292,7 +292,7 @@ static VALUE rb_gzreader_readlines(int, VALUE*, VALUE);
|
|
292
292
|
* - Zstdlib::GzipFile::NoFooter
|
293
293
|
*
|
294
294
|
*/
|
295
|
-
void
|
295
|
+
void Init_zstdlib_c(void);
|
296
296
|
|
297
297
|
/*--------- Exceptions --------*/
|
298
298
|
|
@@ -4428,7 +4428,7 @@ zlib_gunzip_run(VALUE arg)
|
|
4428
4428
|
#endif /* GZIP_SUPPORT */
|
4429
4429
|
|
4430
4430
|
void
|
4431
|
-
|
4431
|
+
Init_zstdlib_c(void)
|
4432
4432
|
{
|
4433
4433
|
VALUE mZlib, cZStream, cDeflate, cInflate;
|
4434
4434
|
#if GZIP_SUPPORT
|
@@ -292,7 +292,7 @@ static VALUE rb_gzreader_readlines(int, VALUE*, VALUE);
|
|
292
292
|
* - Zstdlib::GzipFile::NoFooter
|
293
293
|
*
|
294
294
|
*/
|
295
|
-
void
|
295
|
+
void Init_zstdlib_c(void);
|
296
296
|
|
297
297
|
/*--------- Exceptions --------*/
|
298
298
|
|
@@ -4433,7 +4433,7 @@ zlib_gunzip_run(VALUE arg)
|
|
4433
4433
|
#endif /* GZIP_SUPPORT */
|
4434
4434
|
|
4435
4435
|
void
|
4436
|
-
|
4436
|
+
Init_zstdlib_c(void)
|
4437
4437
|
{
|
4438
4438
|
VALUE mZlib, cZStream, cDeflate, cInflate;
|
4439
4439
|
#if GZIP_SUPPORT
|
@@ -292,7 +292,7 @@ static VALUE rb_gzreader_readlines(int, VALUE*, VALUE);
|
|
292
292
|
* - Zstdlib::GzipFile::NoFooter
|
293
293
|
*
|
294
294
|
*/
|
295
|
-
void
|
295
|
+
void Init_zstdlib_c(void);
|
296
296
|
|
297
297
|
/*--------- Exceptions --------*/
|
298
298
|
|
@@ -4474,7 +4474,7 @@ zlib_gunzip_run(VALUE arg)
|
|
4474
4474
|
#endif /* GZIP_SUPPORT */
|
4475
4475
|
|
4476
4476
|
void
|
4477
|
-
|
4477
|
+
Init_zstdlib_c(void)
|
4478
4478
|
{
|
4479
4479
|
#undef rb_intern
|
4480
4480
|
VALUE mZlib, cZStream, cDeflate, cInflate;
|
@@ -297,7 +297,7 @@ static VALUE rb_gzreader_readlines(int, VALUE*, VALUE);
|
|
297
297
|
* - Zstdlib::GzipFile::NoFooter
|
298
298
|
*
|
299
299
|
*/
|
300
|
-
void
|
300
|
+
void Init_zstdlib_c(void);
|
301
301
|
|
302
302
|
/*--------- Exceptions --------*/
|
303
303
|
|
@@ -4465,7 +4465,7 @@ zlib_gunzip_run(VALUE arg)
|
|
4465
4465
|
#endif /* GZIP_SUPPORT */
|
4466
4466
|
|
4467
4467
|
void
|
4468
|
-
|
4468
|
+
Init_zstdlib_c(void)
|
4469
4469
|
{
|
4470
4470
|
#undef rb_intern
|
4471
4471
|
VALUE mZlib, cZStream, cDeflate, cInflate;
|
@@ -300,7 +300,7 @@ static VALUE rb_gzreader_readlines(int, VALUE*, VALUE);
|
|
300
300
|
* - Zstdlib::GzipFile::NoFooter
|
301
301
|
*
|
302
302
|
*/
|
303
|
-
void
|
303
|
+
void Init_zstdlib_c(void);
|
304
304
|
|
305
305
|
/*--------- Exceptions --------*/
|
306
306
|
|
@@ -4560,7 +4560,7 @@ zlib_gunzip_run(VALUE arg)
|
|
4560
4560
|
#endif /* GZIP_SUPPORT */
|
4561
4561
|
|
4562
4562
|
void
|
4563
|
-
|
4563
|
+
Init_zstdlib_c(void)
|
4564
4564
|
{
|
4565
4565
|
#if HAVE_RB_EXT_RACTOR_SAFE
|
4566
4566
|
rb_ext_ractor_safe(true);
|