summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/build/pidl/smb_interfaces.yp9
1 files changed, 5 insertions, 4 deletions
diff --git a/source4/build/pidl/smb_interfaces.yp b/source4/build/pidl/smb_interfaces.yp
index b84ed1c1c1..bfb5dc7ed7 100644
--- a/source4/build/pidl/smb_interfaces.yp
+++ b/source4/build/pidl/smb_interfaces.yp
@@ -70,7 +70,7 @@ element:
| union
| STRUCT IDENTIFIER pointers IDENTIFIER ';'
{{
- "NAME" => $_[2],
+ "NAME" => [$_[2]],
"POINTERS" => $_[3],
"TYPE" => "struct $_[2]",
}}
@@ -82,20 +82,21 @@ element:
}}
| CONST type pointers IDENTIFIER array ';'
{{
- "NAME" => $_[4],
+ "NAME" => [$_[4]],
"TYPE" => $_[2],
"POINTERS" => $_[3],
}}
| type pointers IDENTIFIER array ';'
{{
- "NAME" => $_[3],
+ "NAME" => [$_[3]],
"TYPE" => $_[1],
"POINTERS" => $_[2],
+ "ARRAY_LENGTH" => $_[4]
}}
;
array: #empty
- | '[' CONSTANT ']'
+ | '[' CONSTANT ']' { int($_[2]) }
;
type: IDENTIFIER