mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
Rename "yield foo" to "yield? foo"
This commit is contained in:
1 parent
045f180a6c
commit
931fdce475
8 files changed
+21
-13
No files matched your search
@@ -188,7 +188,7 @@ pub func decoder.decode_io_writer?(dst base.io_writer, src base.io_reader, workb
|
||||
this.history_index = (this.history_index & 0x7FFF) + ((n_copied & 0x7FFF) as base.u32) + already_full
|
||||
}
|
||||
}
|
||||
yield status
|
||||
yield? status
|
||||
}
|
||||
}
|
||||
|
||||
@@ -275,9 +275,9 @@ pri func decoder.decode_uncompressed?(dst base.io_writer, src base.io_reader) {
|
||||
}
|
||||
length -= n_copied
|
||||
if args.dst.available() == 0 {
|
||||
yield base."$short write"
|
||||
yield? base."$short write"
|
||||
} else {
|
||||
yield base."$short read"
|
||||
yield? base."$short read"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -248,7 +248,7 @@ pri func decoder.decode_huffman_slow?(dst base.io_writer, src base.io_reader) {
|
||||
break
|
||||
}
|
||||
}
|
||||
yield base."$short write"
|
||||
yield? base."$short write"
|
||||
}
|
||||
// Copy from the start of this.history, if we wrapped around.
|
||||
if hlen > 0 {
|
||||
@@ -261,7 +261,7 @@ pri func decoder.decode_huffman_slow?(dst base.io_writer, src base.io_reader) {
|
||||
}
|
||||
hlen -= n_copied
|
||||
hdist ~mod+= n_copied
|
||||
yield base."$short write"
|
||||
yield? base."$short write"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -278,7 +278,7 @@ pri func decoder.decode_huffman_slow?(dst base.io_writer, src base.io_reader) {
|
||||
break
|
||||
}
|
||||
length -= n_copied
|
||||
yield base."$short write"
|
||||
yield? base."$short write"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user