summaryrefslogtreecommitdiff
path: root/source4/build/pidl/idl.yp
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-11-29 11:08:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:12 -0500
commitee0d68dc30a18b86a9d56e41e84903c2750c0173 (patch)
treee6744949756a3b427f9e8e96a042a3074d3143ca /source4/build/pidl/idl.yp
parent3558d8b40dd2b24a74192bc5fba5312104efe7cd (diff)
downloadsamba-ee0d68dc30a18b86a9d56e41e84903c2750c0173.tar.gz
samba-ee0d68dc30a18b86a9d56e41e84903c2750c0173.tar.bz2
samba-ee0d68dc30a18b86a9d56e41e84903c2750c0173.zip
r3998: allow const arrays (see next commit to drsuapi.idl)
metze (This used to be commit 7264a2227d7a1881db01964d0d713c144eb77152)
Diffstat (limited to 'source4/build/pidl/idl.yp')
-rw-r--r--source4/build/pidl/idl.yp9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/build/pidl/idl.yp b/source4/build/pidl/idl.yp
index 24f88dd531..fb2433ee72 100644
--- a/source4/build/pidl/idl.yp
+++ b/source4/build/pidl/idl.yp
@@ -65,6 +65,14 @@ const: 'const' identifier identifier '=' anytext ';'
"NAME" => $_[3],
"VALUE" => $_[5]
}}
+ | 'const' identifier identifier array_len '=' anytext ';'
+ {{
+ "TYPE" => "CONST",
+ "DTYPE" => $_[2],
+ "NAME" => $_[3],
+ "ARRAY_LEN" => $_[4],
+ "VALUE" => $_[6],
+ }}
;
@@ -227,6 +235,7 @@ anytext: #empty
| anytext '/' anytext { "$_[1]$_[2]$_[3]" }
| anytext '+' anytext { "$_[1]$_[2]$_[3]" }
| anytext '(' commalisttext ')' anytext { "$_[1]$_[2]$_[3]$_[4]$_[5]" }
+ | anytext '{' commalisttext '}' anytext { "$_[1]$_[2]$_[3]$_[4]$_[5]" }
;
identifier: IDENTIFIER