Add a placeholder std/zlib package

This commit is contained in:
Nigel Tao committed 2017-12-02 11:21:30 +11:00
1 parent 855ec85e29
commit dd3f0b9ed4
9 files changed
+876 -7

No files matched your search

+9
View File
@@ -14,6 +14,15 @@
packageid "flte"
// TODO: rename "struct flate_decoder" to just "struct decoder", to avoid
// stutter in the fully qualified C name such as "wuffs_flate__flate_decoder".
//
// TODO: delete std/flate/decode_zlib.wuffs, and update std/flate/README.md.
//
// Would we then need to somehow share code between test/c/std/{flate,gzip}.c?
// TODO: rename flate to deflate, since that's what RFC 1951 calls it.
pub error "bad Huffman code (over-subscribed)"
pub error "bad Huffman code (under-subscribed)"
pub error "bad Huffman code length count"
-7
View File
@@ -18,13 +18,6 @@ pub error "invalid zlib parity check"
pub error "TODO: unsupported zlib preset dictionary"
// TODO: move this file from std/flate to std/zlib? In doing so, we could
// rename both of "struct flate_decoder" and "struct zlib_decoder" to just
// "struct decoder", to avoid stutter in the fully qualified C name such as
// "wuffs_flate__flate_decoder".
//
// Would we then need to somehow share code between test/c/std/{flate,gzip}.c?
pub struct zlib_decoder?(
flate flate_decoder,
adler adler32,