Skip to content

Commit 57d6f78

Browse files
authored
Merge pull request #18923 from ianic/add_flate
add deflate implemented from first principles
2 parents 7204ecc + 99cb201 commit 57d6f78

File tree

146 files changed

+5622
-8719
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+5622
-8719
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
langref.html.in text eol=lf
55
lib/std/compress/testdata/** binary
66
lib/std/compress/deflate/testdata/** binary
7+
lib/std/compress/flate/testdata/** binary
78

89
lib/include/** linguist-vendored
910
lib/libc/** linguist-vendored

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ pub fn build(b: *std.Build) !void {
150150
"rfc1951.txt",
151151
"rfc1952.txt",
152152
"rfc8478.txt",
153-
// exclude files from lib/std/compress/deflate/testdata
153+
// exclude files from lib/std/compress/flate/testdata
154154
".expect",
155155
".expect-noinput",
156156
".golden",

lib/std/compress.zig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
const std = @import("std.zig");
22

3-
pub const deflate = @import("compress/deflate.zig");
3+
pub const flate = @import("compress/flate.zig");
44
pub const gzip = @import("compress/gzip.zig");
5+
pub const zlib = @import("compress/zlib.zig");
56
pub const lzma = @import("compress/lzma.zig");
67
pub const lzma2 = @import("compress/lzma2.zig");
78
pub const xz = @import("compress/xz.zig");
8-
pub const zlib = @import("compress/zlib.zig");
99
pub const zstd = @import("compress/zstandard.zig");
1010

1111
pub fn HashedReader(
@@ -69,11 +69,11 @@ pub fn hashedWriter(
6969
}
7070

7171
test {
72-
_ = deflate;
73-
_ = gzip;
7472
_ = lzma;
7573
_ = lzma2;
7674
_ = xz;
77-
_ = zlib;
7875
_ = zstd;
76+
_ = flate;
77+
_ = gzip;
78+
_ = zlib;
7979
}

lib/std/compress/deflate.zig

Lines changed: 0 additions & 44 deletions
This file was deleted.

lib/std/compress/deflate/bits_utils.zig

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)