diff options
author | Eli Bendersky <eliben@gmail.com> | 2014-01-25 06:30:53 -0800 |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2014-01-25 06:30:53 -0800 |
commit | 8aad3186f39127ec9544f2b8c412de2bb7300fd4 (patch) | |
tree | 45152d3bced1a5344ba36c8839fd5a164ce52af3 /pycparser/c_ast.py | |
parent | e7c55cfb19f420e2407c8ffbffd6b335a5d370dc (diff) | |
download | pycparser-8aad3186f39127ec9544f2b8c412de2bb7300fd4.tar.gz |
Fuller support for qualifiers in array dimensions.
Added a field to the ArrayDecl node and modified tests
Diffstat (limited to 'pycparser/c_ast.py')
-rw-r--r-- | pycparser/c_ast.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pycparser/c_ast.py b/pycparser/c_ast.py index e6c6574..212019a 100644 --- a/pycparser/c_ast.py +++ b/pycparser/c_ast.py @@ -127,9 +127,10 @@ class NodeVisitor(object): class ArrayDecl(Node): - def __init__(self, type, dim, coord=None): + def __init__(self, type, dim, dim_quals, coord=None): self.type = type self.dim = dim + self.dim_quals = dim_quals self.coord = coord def children(self): @@ -138,7 +139,7 @@ class ArrayDecl(Node): if self.dim is not None: nodelist.append(("dim", self.dim)) return tuple(nodelist) - attr_names = () + attr_names = ('dim_quals',) class ArrayRef(Node): def __init__(self, name, subscript, coord=None): |