From 8aad3186f39127ec9544f2b8c412de2bb7300fd4 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Sat, 25 Jan 2014 06:30:53 -0800 Subject: Fuller support for qualifiers in array dimensions. Added a field to the ArrayDecl node and modified tests --- pycparser/_c_ast.cfg | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pycparser/_c_ast.cfg') diff --git a/pycparser/_c_ast.cfg b/pycparser/_c_ast.cfg index 2596de6..b9fce05 100644 --- a/pycparser/_c_ast.cfg +++ b/pycparser/_c_ast.cfg @@ -13,7 +13,11 @@ # License: BSD #----------------------------------------------------------------- -ArrayDecl: [type*, dim*] +# ArrayDecl is a nested declaration of an array with the given type. +# dim: the dimension (for example, constant 42) +# dim_quals: list of dimension qualifiers, to support C99's allowing 'const' +# and 'static' within the array dimension in function declarations. +ArrayDecl: [type*, dim*, dim_quals] ArrayRef: [name*, subscript*] -- cgit v1.2.1