git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d844d45
)
r8918: Handle const elements in structures or unions. This is a bit yucky but
author
Tim Potter
<tpot@samba.org>
Tue, 2 Aug 2005 14:58:59 +0000
(14:58 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:30:57 +0000
(13:30 -0500)
making an optional_const rule puts the parser in an infinite loop (?).
source/build/pidl/smb_interfaces.yp
patch
|
blob
|
history
diff --git
a/source/build/pidl/smb_interfaces.yp
b/source/build/pidl/smb_interfaces.yp
index 704c0522baf773b7f2b2ccf1107346d6e01feab2..0281fad4c6038e782118b26c3069ba53332be4fb 100644
(file)
--- a/
source/build/pidl/smb_interfaces.yp
+++ b/
source/build/pidl/smb_interfaces.yp
@@
-70,6
+70,12
@@
element:
| union
| STRUCT IDENTIFIER pointers IDENTIFIER ';'
| UNION IDENTIFIER pointers IDENTIFIER ';'
+ | CONST type pointers IDENTIFIER array ';'
+ {{
+ "NAME" => $_[4],
+ "TYPE" => $_[2],
+ "POINTERS" => $_[3],
+ }}
| type pointers IDENTIFIER array ';'
{{
"NAME" => $_[3],