diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-11 01:59:28 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-11 01:59:28 +0000 |
commit | be443f914af377fc97d4cfd56f13d95edbcc645f (patch) | |
tree | 6d5af6e49984f5b53492f313445eb5a4ca6c5fbe /source4/build/pidl/idl.gram | |
parent | 657dc577b614f388b55bd52a16e8e014c72bf2db (diff) | |
download | samba-be443f914af377fc97d4cfd56f13d95edbcc645f.tar.gz samba-be443f914af377fc97d4cfd56f13d95edbcc645f.tar.xz samba-be443f914af377fc97d4cfd56f13d95edbcc645f.zip |
- 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)
Diffstat (limited to 'source4/build/pidl/idl.gram')
-rw-r--r-- | source4/build/pidl/idl.gram | 4 |
1 files changed, 2 insertions, 2 deletions
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' <commit> '{' union_element(s?) '}' }} | <error?> -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}, |