This commit is contained in:
xushiwei
2024-05-15 08:54:29 +08:00
parent 56269bd52b
commit 7881f3a53b

View File

@@ -130,7 +130,7 @@ type aProgram struct {
voidPtr Type
boolTy Type
cstrTy Type
cintTy Type
//cintTy Type
stringTy Type
uintptrTy Type
intTy Type
@@ -335,12 +335,14 @@ func (p Program) Any() Type {
return p.anyTy
}
/*
func (p Program) CInt() Type {
if p.cintTy == nil { // C.int
p.cintTy = p.rawType(types.Typ[types.Int32]) // TODO(xsw): support 64-bit
}
return p.cintTy
}
*/
// Int returns int type.
func (p Program) Int() Type {