From be443f914af377fc97d4cfd56f13d95edbcc645f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 11 Nov 2003 01:59:28 +0000 Subject: - added support for the pull side of unions - don't generate parse functions for pull/push functions that are not used (This used to be commit 54613574bcd8b365c13848c6aa9366cadeb5da0e) --- source4/build/pidl/idl.gram | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/build/pidl/idl.gram') diff --git a/source4/build/pidl/idl.gram b/source4/build/pidl/idl.gram index c3723a14af..c08c6b0e81 100644 --- a/source4/build/pidl/idl.gram +++ b/source4/build/pidl/idl.gram @@ -53,13 +53,13 @@ union: property_list(s?) 'union' '{' union_element(s?) '}' }} | -union_element: '[case(' constant ')]' base_element ';' +union_element: '[' 'case' '(' constant ')' ']' base_element ';' {{ "TYPE" => "UNION_ELEMENT", "CASE" => $item{constant}, "DATA" => $item{base_element} }} - | 'case(' constant ')' base_element ';' + | 'case' '(' constant ')' base_element ';' {{ "TYPE" => "UNION_ELEMENT", "CASE" => $item{constant}, -- cgit