X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Fstdapi.py;h=c2a154db0f19936b4048ac2609886ea223340e2a;hb=cad5d619dcb5e1c6349bfff69176660668402622;hp=5cf1a37def1295c08620014332487f5539298876;hpb=edea899194c441353943c22577bc22bf0e64d187;p=apitrace diff --git a/specs/stdapi.py b/specs/stdapi.py index 5cf1a37..c2a154d 100644 --- a/specs/stdapi.py +++ b/specs/stdapi.py @@ -272,15 +272,9 @@ class Array(Type): class AttribArray(Type): - 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) - 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