Support "0x123" hexadecimal numeric literals.

This commit is contained in:
Nigel Tao committed 2017-06-16 11:57:02 +10:00
1 parent 1c2ccee966
commit f4db300358
4 files changed
+71 -11

No files matched your search

+9
View File
@@ -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"
}
}