Generate C code for "in.dst.write_u8?(x:foo)".

This commit is contained in:
Nigel Tao committed 2017-06-09 16:41:59 +10:00
1 parent c1dff0ca41
commit f5af981f15
7 files changed
+128 -12

No files matched your search

+5
View File
@@ -246,6 +246,11 @@ label_0_continue:;
v_bits >>= v_width;
v_n_bits -= v_width;
if (v_code < v_clear_code) {
if (a_dst->wi >= a_dst->len) {
status = puffs_gif_status_short_write;
goto cleanup0;
}
a_dst->ptr[a_dst->wi++] = ((uint8_t)(v_code));
} else if (v_code == v_clear_code) {
v_use_save_code = false;
v_save_code = v_end_code;