Generate C return's.

This commit is contained in:
Nigel Tao committed 2017-06-08 16:40:01 +10:00
1 parent 2d0f9d7669
commit ec19f601d5
3 files changed
+30 -10

No files matched your search

+6
View File
@@ -210,12 +210,14 @@ puffs_gif_status puffs_gif_lzw_decoder_decode(puffs_gif_lzw_decoder* self,
uint32_t v_bits;
uint32_t v_n_bits;
uint32_t v_clear_code;
uint32_t v_end_code;
uint32_t v_width;
uint32_t v_code;
v_bits = 0;
v_n_bits = 0;
v_clear_code = (((uint32_t)(1)) << self->f_literal_width);
v_end_code = (v_clear_code + 1);
v_width = (self->f_literal_width + 1);
label_0_continue:;
while (1) {
@@ -234,7 +236,11 @@ label_0_continue:;
if (v_code < v_clear_code) {
goto label_0_break;
} else if (v_code == v_clear_code) {
v_width = (self->f_literal_width + 1);
goto label_0_continue;
} else if (v_code == v_end_code) {
status = puffs_gif_status_ok;
goto cleanup0;
}
goto label_0_break;
}