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