1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00

pidl: Allow fixed size arrays inside unions.

This commit is contained in:
Julien Kerihuel 2008-02-09 16:26:16 +01:00 committed by Jelmer Vernooij
parent 9a4b9facc8
commit c9c1156478

View File

@ -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) {