mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 16:32:11 +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
@@ -8,7 +8,9 @@ pub struct decoder?(
|
||||
)
|
||||
|
||||
pub func decoder.decode?(dst ptr buf1, src ptr buf1)() {
|
||||
if (in.src.read_u8?() != 0x47) or (in.src.read_u8?() != 0x49) {
|
||||
// Read either "GIF87a" or "GIF89a".
|
||||
if (in.src.read_u8?() != 0x47) or (in.src.read_u8?() != 0x49) or
|
||||
(in.src.read_u8?() != 0x46) or (in.src.read_u8?() != 0x38) {
|
||||
return error "bad GIF header"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user