summaryrefslogtreecommitdiff
path: root/source4/pidl
diff options
context:
space:
mode:
authorJulien Kerihuel <j.kerihuel@openchange.org>2008-02-09 16:26:16 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-09 16:26:16 +0100
commitc60d0a10ea9086dc58aa70386860ead0522c1c68 (patch)
treeb240e08efd064cfec8f2c4adba74d3daa6aba09c /source4/pidl
parentd696a5045240447f5618ecda6cf4a408f709fed2 (diff)
downloadsamba-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')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm4
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) {