summaryrefslogtreecommitdiff
path: root/source4/build/pidl/idl.gram
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-18 03:25:51 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-18 03:25:51 +0000
commitcb22240eb4f58936fb0e5f9d97ae23099c11c31a (patch)
tree26565f4e43bd486b9658429231c64edc9bc29285 /source4/build/pidl/idl.gram
parentca20fa105795a600fc1e2ee56813fb0bb3b83c9f (diff)
downloadsamba-cb22240eb4f58936fb0e5f9d97ae23099c11c31a.tar.gz
samba-cb22240eb4f58936fb0e5f9d97ae23099c11c31a.tar.bz2
samba-cb22240eb4f58936fb0e5f9d97ae23099c11c31a.zip
support the 'default' case in IDL unions
(This used to be commit 7f3f274cdc0f22324049952f2b744902a6fdf652)
Diffstat (limited to 'source4/build/pidl/idl.gram')
-rw-r--r--source4/build/pidl/idl.gram10
1 files changed, 8 insertions, 2 deletions
diff --git a/source4/build/pidl/idl.gram b/source4/build/pidl/idl.gram
index 1a44f6e908..69a6e2458b 100644
--- a/source4/build/pidl/idl.gram
+++ b/source4/build/pidl/idl.gram
@@ -66,6 +66,12 @@ union_element: '[' 'case' '(' constant ')' ']' base_element ';'
"CASE" => $item{constant},
"DATA" => $item{base_element}
}}
+ | 'default' base_element ';'
+ {{
+ "TYPE" => "UNION_ELEMENT",
+ "CASE" => "default",
+ "DATA" => $item{base_element}
+ }}
base_element: property_list(s?) type pointer(s?) identifier array_len(?)
{{
@@ -82,8 +88,8 @@ array_len:
{ "*" }
| '[' '*' ']'
{ "*" }
- | '[' <commit> text ']'
- { "$item{text}" }
+ | '[' <commit> anytext ']'
+ { "$item{anytext}" }
| <error?>
element_list1: base_element(s? /;/) ';'