mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
Add an io_writer var to gif's decoder.decode_id
This commit is contained in:
1 parent
0f32650064
commit
2d3b3b1dae
7 files changed
+47
-15
No files matched your search
@@ -282,11 +282,13 @@ func (g *gen) writeResumeSuspend1(b *buffer, n *a.Var, suspend bool, initBoolTyp
|
||||
local := fmt.Sprintf("%s%s", vPrefix, n.Name().Str(g.tm))
|
||||
|
||||
if typ := n.XType(); typ.HasPointers() {
|
||||
// TODO: drop the initBoolTypedVars.
|
||||
if suspend || initBoolTypedVars {
|
||||
return nil
|
||||
}
|
||||
rhs := ""
|
||||
|
||||
// TODO: move this initialization to writeVars?
|
||||
switch typ.Decorator() {
|
||||
case 0:
|
||||
if qid := typ.QID(); qid[0] == t.IDBase {
|
||||
|
||||
Reference in new issue
Block a user