Push std/png decoder.tell_me_more goto_done later

This commit is contained in:
Nigel Tao committed 2021-11-26 19:46:36 +11:00
1 parent 5d1473a2ca
commit 38b101d170
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -40946,9 +40946,6 @@ wuffs_png__decoder__tell_me_more(
} }
} }
label__loop__break:; label__loop__break:;
goto label__goto_done__break;
}
label__goto_done__break:;
if (self->private_impl.f_metadata_fourcc == 1263947851) { if (self->private_impl.f_metadata_fourcc == 1263947851) {
self->private_impl.f_metadata_fourcc = 1263947862; self->private_impl.f_metadata_fourcc = 1263947862;
if (self->private_impl.f_chunk_type == 1951945833) { if (self->private_impl.f_chunk_type == 1951945833) {
@@ -41036,6 +41033,9 @@ wuffs_png__decoder__tell_me_more(
status = wuffs_base__make_status(NULL); status = wuffs_base__make_status(NULL);
goto ok; goto ok;
} }
goto label__goto_done__break;
}
label__goto_done__break:;
if (self->private_impl.f_chunk_length != 0) { if (self->private_impl.f_chunk_length != 0) {
status = wuffs_base__make_status(wuffs_png__error__bad_chunk); status = wuffs_base__make_status(wuffs_png__error__bad_chunk);
goto exit; goto exit;
+2 -2
View File
@@ -1596,8 +1596,6 @@ pub func decoder.tell_me_more?(dst: base.io_writer, minfo: nptr base.more_inform
} endwhile } endwhile
} }
} endwhile.loop } endwhile.loop
break.goto_done
}} endwhile.goto_done
// Key-value pairs come in... pairs. // Key-value pairs come in... pairs.
if this.metadata_fourcc == 'KVPK'be { if this.metadata_fourcc == 'KVPK'be {
@@ -1654,6 +1652,8 @@ pub func decoder.tell_me_more?(dst: base.io_writer, minfo: nptr base.more_inform
this.call_sequence = 2 this.call_sequence = 2
return ok return ok
} }
break.goto_done
}} endwhile.goto_done
if this.chunk_length <> 0 { if this.chunk_length <> 0 {
return "#bad chunk" return "#bad chunk"