mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 08:47:28 +01:00
Add while/break in anticipation of adding try.
This commit is contained in:
1 parent
51012a0cca
commit
15ded0a6d0
2 files changed
+42
-33
No files matched your search
@@ -160,10 +160,15 @@ pri func decoder.decode_id?(dst writer1, src reader1)() {
|
||||
if block_size == 0 {
|
||||
break
|
||||
}
|
||||
// TODO: how should this reader1-typed variable (which is implemented
|
||||
// by containing pointers) work across resume/suspend? We don't want to
|
||||
// have a dangling pointer to an earlier src buffer.
|
||||
var lzw_src reader1 = limit (block_size) in.src
|
||||
this.lzw.decode?(dst:in.dst, src:lzw_src)
|
||||
while true {
|
||||
// TODO: how should this reader1-typed variable (which is implemented
|
||||
// by containing pointers) work across resume/suspend? We don't want to
|
||||
// have a dangling pointer to an earlier src buffer.
|
||||
var lzw_src reader1 = limit (block_size) in.src
|
||||
this.lzw.decode?(dst:in.dst, src:lzw_src)
|
||||
|
||||
// TODO: add a "try" to the line above, and break *conditionally*.
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user