func newExported(t gcc.Named) baseCNamer { return baseCNamer{ id: t.Id(), cName: t.CName(), file: t.File(), } }
// type name that may be declared in this or included packages. func (pac *Package) globalName(o gcc.Named) string { if pac.fileIds.Has(o.File()) && pac.hasPrefix(o.CName()) { return pac.localName(o) } for _, inc := range pac.Included { if goName := inc.globalName(o); goName != "" && !contains(goName, ".") { return joins(inc.PacName, ".", goName) } } return "" }