mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
Support "0x123" hexadecimal numeric literals.
This commit is contained in:
1 parent
1c2ccee966
commit
f4db300358
4 files changed
+71
-11
No files matched your search
@@ -1,6 +1,15 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be found
|
||||
// in the LICENSE file.
|
||||
|
||||
pub error "bad GIF header"
|
||||
|
||||
pub struct decoder?(
|
||||
lzw lzw_decoder,
|
||||
temporary_hack u32,
|
||||
)
|
||||
|
||||
pub func decoder.decode?(dst ptr buf1, src ptr buf1)() {
|
||||
if this.temporary_hack != 0x47 {
|
||||
return error "bad GIF header"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user