Beispiel #1
0
func (pac *Package) newArray(t *gcc.ArrayType) Conv {
	elem := pac.getNamer(t.ElementType())
	return Value{namer{
		goName:  sprint("[", t.Len(), "]", elem.GoName()),
		cgoName: sprint("[", t.Len(), "]", elem.CgoName()),
	}}
}
Beispiel #2
0
func (pac *Package) newArray(t *gcc.ArrayType) EqualType {
	return &Array{pac.declareEqualType(t.ElementType()), t.Len()}
}