From ee0d68dc30a18b86a9d56e41e84903c2750c0173 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 29 Nov 2004 11:08:15 +0000 Subject: r3998: allow const arrays (see next commit to drsuapi.idl) metze (This used to be commit 7264a2227d7a1881db01964d0d713c144eb77152) --- source4/build/pidl/idl.yp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source4/build/pidl/idl.yp') 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 -- cgit