mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 08:47:56 +01:00
Generate C code for "var x T = foo?()".
This commit is contained in:
1 parent
f6501ec2d9
commit
e6f5fd7f53
3 files changed
+37
-1
No files matched your search
@@ -285,6 +285,8 @@ puffs_gif_status puffs_gif_decoder_decode(puffs_gif_decoder* self,
|
||||
goto cleanup0;
|
||||
}
|
||||
|
||||
uint8_t v_c;
|
||||
|
||||
if (a_src->ri >= a_src->wi) {
|
||||
status = a_src->closed ? puffs_gif_error_unexpected_eof
|
||||
: puffs_gif_status_short_read;
|
||||
@@ -313,6 +315,27 @@ puffs_gif_status puffs_gif_decoder_decode(puffs_gif_decoder* self,
|
||||
status = puffs_gif_error_bad_gif_header;
|
||||
goto cleanup0;
|
||||
}
|
||||
if (a_src->ri >= a_src->wi) {
|
||||
status = a_src->closed ? puffs_gif_error_unexpected_eof
|
||||
: puffs_gif_status_short_read;
|
||||
goto cleanup0;
|
||||
}
|
||||
uint8_t t_4 = a_src->ptr[a_src->ri++];
|
||||
v_c = t_4;
|
||||
if ((v_c != 55) && (v_c != 57)) {
|
||||
status = puffs_gif_error_bad_gif_header;
|
||||
goto cleanup0;
|
||||
}
|
||||
if (a_src->ri >= a_src->wi) {
|
||||
status = a_src->closed ? puffs_gif_error_unexpected_eof
|
||||
: puffs_gif_status_short_read;
|
||||
goto cleanup0;
|
||||
}
|
||||
uint8_t t_5 = a_src->ptr[a_src->ri++];
|
||||
if (t_5 != 97) {
|
||||
status = puffs_gif_error_bad_gif_header;
|
||||
goto cleanup0;
|
||||
}
|
||||
|
||||
cleanup0:
|
||||
self->private_impl.status = status;
|
||||
|
||||
Reference in new issue
Block a user