- def __init__(self, keyType, valueTypes):
- Type.__init__(self, (Pointer(Const(Int))).expr)
- self.type = (Pointer(Const(Int))) # for function prototypes and such
+ def __init__(self, keyType, valueTypes, isConst = True, punType = None, terminator = '0'):
+ self.baseType = Int
+ if punType is not None:
+ self.baseType = punType
+ if isConst:
+ Type.__init__(self, (Pointer(Const(self.baseType))).expr)
+ else:
+ Type.__init__(self, (Pointer(self.baseType)).expr)