Generate code for "mark in.dst".

The generated code is ugly and the language design is not finalized, but
the flate_backref_crosses_blocks test (testing a correctness bug) now
passes. We can fix the ugliness in subsequent commits.
This commit is contained in:
Nigel Tao committed 2017-10-22 14:44:53 +11:00
1 parent 83c8faef4d
commit 21bbbd422f
11 files changed
+107 -24

No files matched your search

+3
View File
@@ -49,6 +49,9 @@ pub func zlib_decoder.decode?(dst writer1, src reader1)() {
var z status = try this.flate.decode?(dst:in.dst, src:in.src)
// TODO: expose some API to opt out of checksumming, trading off error
// detection for throughput.
//
// TODO: in.dst.slice needs a previous mark statement. Do that, and
// remove the b_wstart_dst derived variables.
checksum = this.adler.update(x:in.dst.slice())
if z.is_ok() {
break