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 used to be commit c9c1156478
)
This commit is contained in:
parent
d696a50452
commit
c60d0a10ea
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user