Generate placeholder code for "mark in.dst".

This commit is contained in:
Nigel Tao committed 2017-10-22 13:57:37 +11:00
1 parent bcc7171b5a
commit ac793d33bc
9 files changed
+63 -1

No files matched your search

+5
View File
@@ -116,6 +116,11 @@ pub struct flate_decoder?(
)
pub func flate_decoder.decode?(dst writer1, src reader1)() {
// TODO: when is the mark undone? Explicitly or implicitly? Right now, we
// just assume that the mark is dropped at function end, since the arg is a
// writer1 not a *writer1. Should we support nested marks? Should this be
// "mark dst { etc }" that has a block and unmarks at the block end?
mark in.dst
while true {
var z status = try this.decode_blocks?(dst:in.dst, src:in.src)
if not z.is_suspension() {