X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Fstdapi.py;h=1988c6588068389304a2dcf6d22488959782a049;hb=77c10d8849459dbf7484fbc75eabe26cb401bb5a;hp=5cf1a37def1295c08620014332487f5539298876;hpb=b4fb7a4628a0c14b8124dbcd1f97749c0276bf81;p=apitrace diff --git a/specs/stdapi.py b/specs/stdapi.py index 5cf1a37..1988c65 100644 --- a/specs/stdapi.py +++ b/specs/stdapi.py @@ -272,15 +272,12 @@ 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 + def __init__(self, baseType, valueTypes, isConst = True, terminator = '0'): + self.baseType = baseType if isConst: Type.__init__(self, (Pointer(Const(self.baseType))).expr) else: Type.__init__(self, (Pointer(self.baseType)).expr) - self.keyType = keyType self.valueTypes = valueTypes self.terminator = terminator self.hasKeysWithoutValues = False