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