mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 09:01:35 +01:00
lang: remove endwhile keyword
This commit is contained in:
1 parent
6c8a43390b
commit
aae5997e12
56 files changed
+578
-590
No files matched your search
@@ -105,7 +105,7 @@ pri func decoder.decode_mcu_progressive_ac_low_bit!(workbuf: slice base.u8, mx:
|
||||
ac_symbol = 0
|
||||
break
|
||||
}
|
||||
} endwhile
|
||||
}
|
||||
}
|
||||
|
||||
// Split the 8-bit ac_symbol into two 4-bit halves, per section
|
||||
@@ -169,7 +169,7 @@ pri func decoder.decode_mcu_progressive_ac_low_bit!(workbuf: slice base.u8, mx:
|
||||
}
|
||||
assert this.mcu_zig_index < 63 via "a < b: a < c; c <= b"(c: (this.scan_se as base.u32))
|
||||
this.mcu_zig_index += 1
|
||||
} endwhile.refine_non_zeroes
|
||||
}.refine_non_zeroes
|
||||
|
||||
if ac_value <> 0 {
|
||||
this.mcu_blocks[0][UNZIG[1 + this.mcu_zig_index]] = ac_value
|
||||
@@ -180,10 +180,10 @@ pri func decoder.decode_mcu_progressive_ac_low_bit!(workbuf: slice base.u8, mx:
|
||||
}
|
||||
assert this.mcu_zig_index < 63 via "a < b: a < c; c <= b"(c: (this.scan_se as base.u32))
|
||||
this.mcu_zig_index += 1
|
||||
} endwhile.ac_components
|
||||
}.ac_components
|
||||
|
||||
break.block
|
||||
}} endwhile.goto_do_eob
|
||||
}}.goto_do_eob
|
||||
|
||||
if this.eob_run <= 0 {
|
||||
ret = 2 // Internal error.
|
||||
@@ -222,15 +222,15 @@ pri func decoder.decode_mcu_progressive_ac_low_bit!(workbuf: slice base.u8, mx:
|
||||
}
|
||||
assert this.mcu_zig_index < 63 via "a < b: a < c; c <= b"(c: (this.scan_se as base.u32))
|
||||
this.mcu_zig_index += 1
|
||||
} endwhile.refine_eob_non_zeroes
|
||||
}.refine_eob_non_zeroes
|
||||
|
||||
this.eob_run -= 1
|
||||
|
||||
break.block
|
||||
} endwhile.block
|
||||
}.block
|
||||
|
||||
break.goto_done
|
||||
}} endwhile.goto_done
|
||||
}}.goto_done
|
||||
|
||||
pos = (r.position() & 0xFFFF_FFFF) as base.u32
|
||||
if pos > this.bitstream_wi {
|
||||
|
||||
Reference in new issue
Block a user