Rename PUFFS to WUFFS, part 7 of N

This commit is contained in:
Nigel Tao committed 2017-11-30 18:02:59 +11:00
1 parent eda3130628
commit 3c708dfe59
23 files changed
+1610 -1610

No files matched your search

+1 -1
View File
@@ -421,7 +421,7 @@ pri func flate_decoder.init_dynamic_huffman?(src reader1)() {
// TODO: make named constants for 15, 19, 319, etc.
// TODO: skip generating PUFFS_COROUTINE_SUSPENSION_POINTs for *callers* of
// TODO: skip generating WUFFS_COROUTINE_SUSPENSION_POINTs for *callers* of
// this function, as it can only return errors, not suspensions.
pri func flate_decoder.init_huff?(which u32[..1], n_codes0 u32[..320], n_codes1 u32[..320], base_symbol u32)() {
+1 -1
View File
@@ -17,7 +17,7 @@
pri func flate_decoder.decode_huffman_fast?(dst writer1, src reader1)() {
// When editing this function, consider making the equivalent change to the
// decode_huffman_slow function. Keep the diff between the two
// decode_huffman_*.puffs files as small as possible, while retaining both
// decode_huffman_*.wuffs files as small as possible, while retaining both
// correctness and performance.
// TODO: make this a func pre-condition.
+1 -1
View File
@@ -15,7 +15,7 @@
pri func flate_decoder.decode_huffman_slow?(dst writer1, src reader1)() {
// When editing this function, consider making the equivalent change to the
// decode_huffman_fast function. Keep the diff between the two
// decode_huffman_*.puffs files as small as possible, while retaining both
// decode_huffman_*.wuffs files as small as possible, while retaining both
// correctness and performance.
if (this.n_bits >= 8) or ((this.bits >> this.n_bits) != 0) {
+2 -2
View File
@@ -21,7 +21,7 @@ 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
// "puffs_flate__flate_decoder".
// "wuffs_flate__flate_decoder".
//
// Would we then need to somehow share code between test/c/std/{flate,gzip}.c?
@@ -61,7 +61,7 @@ pub func zlib_decoder.decode?(dst writer1, src reader1)() {
}
}
// TODO: drop the '?' but still generate puffs_flate_adler_initialize?
// TODO: drop the '?' but still generate wuffs_flate_adler_initialize?
pri struct adler32?(
state u32 = 1,
)