mirror of https://github.com/go-python/gopy.git
bind/vars: update naming scheme
This commit is contained in:
parent
43f0028eb5
commit
e4f3f1d4fd
|
@ -40,9 +40,12 @@ func getTypedesc(t types.Type) typedesc {
|
||||||
case *types.Named:
|
case *types.Named:
|
||||||
switch typ.Underlying().(type) {
|
switch typ.Underlying().(type) {
|
||||||
case *types.Struct:
|
case *types.Struct:
|
||||||
|
obj := typ.Obj()
|
||||||
|
pkgname := obj.Pkg().Name()
|
||||||
|
id := pkgname + "_" + obj.Name()
|
||||||
return typedesc{
|
return typedesc{
|
||||||
ctype: "GoPy_" + typ.Obj().Name(),
|
ctype: "GoPy_" + id,
|
||||||
cgotype: "GoPy_" + typ.Obj().Name(),
|
cgotype: "GoPy_" + id,
|
||||||
pyfmt: "N",
|
pyfmt: "N",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue