Generate a C placeholder for "in.src.read_u8?()".

This commit is contained in:
Nigel Tao committed 2017-06-03 12:25:31 +10:00
1 parent 0646f4472c
commit 1758637f89
7 files changed
+65 -8

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ pub func lzw_decoder.decode?(dst ptr buf1, src ptr buf1, src_final bool)() {
post n_bits >= width,
{
assert n_bits < 12 via "a < b: a < c; c <= b"(c:width)
bits |= 0 as u32 // TODO
bits |= in.src.read_u8?() as u32 // TODO
n_bits += 8
}
// TODO: var code u32[..4095] = bits.low_bits(width)