summaryrefslogtreecommitdiff
path: root/source4/pidl/idl.yp
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-07-29 06:00:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:15:10 -0500
commit3d3bd93403c0a371f16cd8e13f7f563c4601122a (patch)
tree81251094457e9ba71b67faed91937fdba022790d /source4/pidl/idl.yp
parentce20796be2e7259943afa203a2f1a471eaa6776a (diff)
downloadsamba-3d3bd93403c0a371f16cd8e13f7f563c4601122a.tar.gz
samba-3d3bd93403c0a371f16cd8e13f7f563c4601122a.tar.bz2
samba-3d3bd93403c0a371f16cd8e13f7f563c4601122a.zip
r17305: allow 'declare [...] union foo;'
metze (This used to be commit 15d37004b70d097a1431fb4d41fef363ed654ac7)
Diffstat (limited to 'source4/pidl/idl.yp')
-rw-r--r--source4/pidl/idl.yp8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/pidl/idl.yp b/source4/pidl/idl.yp
index 62f636cb00..1f6f22e1a1 100644
--- a/source4/pidl/idl.yp
+++ b/source4/pidl/idl.yp
@@ -109,7 +109,7 @@ declare: 'declare' property_list decl_type identifier';'
}}
;
-decl_type: decl_enum | decl_bitmap
+decl_type: decl_enum | decl_bitmap | decl_union
;
decl_enum: 'enum'
@@ -124,6 +124,12 @@ decl_bitmap: 'bitmap'
}}
;
+decl_union: 'union'
+ {{
+ "TYPE" => "UNION"
+ }}
+;
+
typedef: 'typedef' property_list type identifier array_len ';'
{{
"TYPE" => "TYPEDEF",