diff options
author | Julien Kerihuel <j.kerihuel@openchange.org> | 2008-02-09 16:26:16 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-02-09 16:26:16 +0100 |
commit | c60d0a10ea9086dc58aa70386860ead0522c1c68 (patch) | |
tree | b240e08efd064cfec8f2c4adba74d3daa6aba09c /source4/pidl/lib/Parse | |
parent | d696a5045240447f5618ecda6cf4a408f709fed2 (diff) | |
download | samba-c60d0a10ea9086dc58aa70386860ead0522c1c68.tar.gz samba-c60d0a10ea9086dc58aa70386860ead0522c1c68.tar.bz2 samba-c60d0a10ea9086dc58aa70386860ead0522c1c68.zip |
pidl: Allow fixed size arrays inside unions.
(This used to be commit c9c115647893478e21134f8c703e0f52e2478882)
Diffstat (limited to 'source4/pidl/lib/Parse')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index 6e6d227681..60d5bf8781 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -1611,7 +1611,7 @@ sub ParseUnionPushPrimitives($$$) if ($el->{CASE} eq "default") { $have_default = 1; } - $self->pidl("$el->{CASE}:"); + $self->pidl("$el->{CASE}: {"); if ($el->{TYPE} ne "EMPTY") { $self->indent; @@ -1625,7 +1625,7 @@ sub ParseUnionPushPrimitives($$$) $self->ParseElementPush($el, "ndr", {$el->{NAME} => "$varname->$el->{NAME}"}, 1, 0); $self->deindent; } - $self->pidl("break;"); + $self->pidl("break; }"); $self->pidl(""); } if (! $have_default) { |