mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
Generate C code for "a or b or c".
This commit is contained in:
1 parent
540274b57d
commit
ce2720fca1
5 files changed
+65
-3
No files matched your search
+13
-1
@@ -297,7 +297,19 @@ puffs_gif_status puffs_gif_decoder_decode(puffs_gif_decoder* self,
|
||||
goto cleanup0;
|
||||
}
|
||||
uint8_t t_1 = a_src->ptr[a_src->ri++];
|
||||
if ((t_0 != 71) || (t_1 != 73)) {
|
||||
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_2 = a_src->ptr[a_src->ri++];
|
||||
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_3 = a_src->ptr[a_src->ri++];
|
||||
if ((t_0 != 71) || (t_1 != 73) || (t_2 != 70) || (t_3 != 56)) {
|
||||
status = puffs_gif_error_bad_gif_header;
|
||||
goto cleanup0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user