Don't resume/suspend vars containing pointers.

This commit is contained in:
Nigel Tao committed 2017-09-23 15:16:43 +10:00
1 parent d5c8e20268
commit 10b7d5a031
7 files changed
+78 -38

No files matched your search

+9
View File
@@ -384,6 +384,15 @@ func (g *gen) writeCTypeName(b *buffer, n *a.TypeExpr, varNamePrefix string, var
return nil
}
var builtInPointerTypes = [...]bool{
t.KeyBuf1: true,
t.KeyBuf1Mark: true,
// TODO: uncomment, after figuring out how limit's should really work.
// t.KeyReader1: true,
t.KeyWriter1: true,
t.KeyBuf2: true,
}
var cTypeNames = [...]string{
t.KeyI8: "int8_t",
t.KeyI16: "int16_t",