Have std/gif pass through an intermediary

This commit is contained in:
Nigel Tao committed 2018-05-13 15:50:51 +10:00
1 parent ed1a8b4057
commit f10ff8c896
5 files changed
+32 -28

No files matched your search

+3 -3
View File
@@ -801,10 +801,10 @@ func (g *gen) writeCallSuspendibles(b *buffer, n *a.Expr, depth uint32) error {
temp := g.currFunk.tempW
g.currFunk.tempW++
// TODO: don't hard-code a_dst or a_src.
b.printf("%sstatus %s%d = %slzw_decoder__decode(&self->private_impl.f_lzw, %sdst, %ssrc);\n",
// TODO: don't hard-code v_w or a_src.
b.printf("%sstatus %s%d = %slzw_decoder__decode(&self->private_impl.f_lzw, %sw, %ssrc);\n",
g.pkgPrefix, tPrefix, temp,
g.pkgPrefix, aPrefix, aPrefix)
g.pkgPrefix, vPrefix, aPrefix)
if err := g.writeLoadExprDerivedVars(b, n); err != nil {
return err
}