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