X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Fstdapi.py;h=5d5d57004a148d66a0e96885ed16f0dd266a71b6;hb=b936e5593d92cfa559040360a96efb719026523f;hp=795f0cfa2776f7e7f24c7cf0803f85cad2e8f8b8;hpb=54bdb5a0c8b1409f57f330d93c34e4442c4c6ab7;p=apitrace diff --git a/specs/stdapi.py b/specs/stdapi.py index 795f0cf..5d5d570 100644 --- a/specs/stdapi.py +++ b/specs/stdapi.py @@ -272,8 +272,11 @@ class Array(Type): class AttribArray(Type): - def __init__(self, keyType, valueTypes): - Type.__init__(self, (Pointer(Const(Int))).expr) + def __init__(self, keyType, valueTypes, isConst = True): + 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 self.valueTypes = valueTypes