X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Fstdapi.py;h=c2a154db0f19936b4048ac2609886ea223340e2a;hb=62bce80269d08b94315ce5ca13ed0431137eeef9;hp=88711e1af10f713ad0f02c8f8e7d542e70701301;hpb=7a0de29433983f36e612da08c0b1b9519df993a8;p=apitrace diff --git a/specs/stdapi.py b/specs/stdapi.py index 88711e1..c2a154d 100644 --- a/specs/stdapi.py +++ b/specs/stdapi.py @@ -272,13 +272,9 @@ class Array(Type): 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