summaryrefslogtreecommitdiff
path: root/source4/pidl/idl.yp
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-10-16 17:17:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:44:48 -0500
commitc008f951cff74e5218c7ef7bbc90487433ab72c5 (patch)
tree496bae48d6375d83da6b741c2b01563b98db0a29 /source4/pidl/idl.yp
parent68d82998d2e3133dd7b743b1cf3a78ee9d052a21 (diff)
downloadsamba-c008f951cff74e5218c7ef7bbc90487433ab72c5.tar.gz
samba-c008f951cff74e5218c7ef7bbc90487433ab72c5.tar.bz2
samba-c008f951cff74e5218c7ef7bbc90487433ab72c5.zip
r11097: Allow pointers in "const"
(This used to be commit 88fcd56fb55ac3f7e1eef3b3c92a2593c79599d3)
Diffstat (limited to 'source4/pidl/idl.yp')
-rw-r--r--source4/pidl/idl.yp16
1 files changed, 9 insertions, 7 deletions
diff --git a/source4/pidl/idl.yp b/source4/pidl/idl.yp
index b703d4fa72..2613f11320 100644
--- a/source4/pidl/idl.yp
+++ b/source4/pidl/idl.yp
@@ -62,22 +62,24 @@ definitions:
definition: function | const | typedef | declare | typedecl
;
-const: 'const' identifier identifier '=' anytext ';'
+const: 'const' identifier pointers identifier '=' anytext ';'
{{
"TYPE" => "CONST",
"DTYPE" => $_[2],
- "NAME" => $_[3],
- "VALUE" => $_[5],
+ "POINTERS" => $_[3],
+ "NAME" => $_[4],
+ "VALUE" => $_[6],
"FILE" => $_[0]->YYData->{INPUT_FILENAME},
"LINE" => $_[0]->YYData->{LINE},
}}
- | 'const' identifier identifier array_len '=' anytext ';'
+ | 'const' identifier pointers identifier array_len '=' anytext ';'
{{
"TYPE" => "CONST",
"DTYPE" => $_[2],
- "NAME" => $_[3],
- "ARRAY_LEN" => $_[4],
- "VALUE" => $_[6],
+ "POINTERS" => $_[3],
+ "NAME" => $_[4],
+ "ARRAY_LEN" => $_[5],
+ "VALUE" => $_[7],
"FILE" => $_[0]->YYData->{INPUT_FILENAME},
"LINE" => $_[0]->YYData->{LINE},
}}