1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

pidl: Allow fixed size arrays inside unions.

(This used to be commit c9c1156478)
This commit is contained in:
Julien Kerihuel 2008-02-09 16:26:16 +01:00 committed by Jelmer Vernooij
parent d696a50452
commit c60d0a10ea

View File

@ -1611,7 +1611,7 @@ sub ParseUnionPushPrimitives($$$)
if ($el->{CASE} eq "default") { if ($el->{CASE} eq "default") {
$have_default = 1; $have_default = 1;
} }
$self->pidl("$el->{CASE}:"); $self->pidl("$el->{CASE}: {");
if ($el->{TYPE} ne "EMPTY") { if ($el->{TYPE} ne "EMPTY") {
$self->indent; $self->indent;
@ -1625,7 +1625,7 @@ sub ParseUnionPushPrimitives($$$)
$self->ParseElementPush($el, "ndr", {$el->{NAME} => "$varname->$el->{NAME}"}, 1, 0); $self->ParseElementPush($el, "ndr", {$el->{NAME} => "$varname->$el->{NAME}"}, 1, 0);
$self->deindent; $self->deindent;
} }
$self->pidl("break;"); $self->pidl("break; }");
$self->pidl(""); $self->pidl("");
} }
if (! $have_default) { if (! $have_default) {