mirror of https://github.com/go-python/gopy.git
bind: streamline func-name registration
This commit is contained in:
parent
87098469c8
commit
8408276038
|
@ -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 {
|
||||
|
|
|
@ -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(),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue