summaryrefslogtreecommitdiff
path: root/source4/pidl
diff options
context:
space:
mode:
Diffstat (limited to 'source4/pidl')
-rw-r--r--source4/pidl/idl.yp9
1 files changed, 7 insertions, 2 deletions
diff --git a/source4/pidl/idl.yp b/source4/pidl/idl.yp
index 8589982a2c..d557590494 100644
--- a/source4/pidl/idl.yp
+++ b/source4/pidl/idl.yp
@@ -276,11 +276,16 @@ element_list1:
| element_list1 base_element ';' { push(@{$_[1]}, $_[2]); $_[1] }
;
+optional_const:
+ #empty
+ | 'const'
+;
+
element_list2:
#empty
| 'void'
- | base_element { [ $_[1] ] }
- | element_list2 ',' base_element { push(@{$_[1]}, $_[3]); $_[1] }
+ | optional_const base_element { [ $_[2] ] }
+ | element_list2 ',' optional_const base_element { push(@{$_[1]}, $_[4]); $_[1] }
;
array_len: