bind: streamline func-name registration

This commit is contained in:
Sebastien Binet 2016-01-05 15:17:02 +01:00
parent 87098469c8
commit 8408276038
2 changed files with 4 additions and 4 deletions

View File

@ -285,8 +285,8 @@ func (g *cpyGen) genFuncBody(f Func) {
}
g.impl.Printf("cgopy_seq_send(%q, %d, ibuf->buf, ibuf->len, &obuf->buf, &obuf->len);\n\n",
g.pkg.ImportPath()+"."+f.GoName(),
uhash(f.GoName()),
f.Package().ImportPath()+"."+f.GoName(),
uhash(f.ID()),
)
if len(res) <= 0 {

View File

@ -163,8 +163,8 @@ func cgo_func_%[1]s(out, in *seq.Buffer) {
g.Printf("}\n\n")
g.regs = append(g.regs, goReg{
Descriptor: g.pkg.ImportPath() + "." + f.GoName(),
ID: uhash(f.GoName()),
Descriptor: f.Package().ImportPath() + "." + f.GoName(),
ID: uhash(f.ID()),
Func: f.ID(),
})
}