Remove the obsolete puffs_base__limit1 concept.

This commit is contained in:
Nigel Tao committed 2017-10-27 07:51:57 +11:00
1 parent e0836d73a8
commit 3485950a3f
10 files changed
+17 -443

No files matched your search

+1 -9
View File
@@ -416,15 +416,7 @@ func (g *gen) writeExprOther(b *buffer, n *a.Expr, rp replacementPolicy, pp pare
return nil
case t.KeyLimit:
// TODO: don't hard code so much detail.
b.writes("(puffs_base__reader1) {")
b.writes(".buf = a_src.buf,")
b.writes(".limit = (puffs_base__limit1) {")
b.printf(".ptr_to_len = &%s%s,", lPrefix, g.currFunk.limitVarName)
b.writes(".next = &a_src.limit,")
b.writes("}}")
g.currFunk.limitVarName = ""
return nil
panic("TODO: delete t.KeyLimit")
}
return fmt.Errorf("unrecognized token.Key (0x%X) for writeExprOther", n.ID0().Key())
}