mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
r2963: Handle structures that contain more than one union as members.
(This used to be commit 6a47a079c003c2a139665ad2b5ede5d139049bd1)
This commit is contained in:
parent
9fb065f2a6
commit
1ddb14e22e
@ -216,7 +216,7 @@ sub FieldToPython($$)
|
||||
my($extra_args) = "";
|
||||
|
||||
if (isunion($e->{TYPE})) {
|
||||
$extra_args = ", switch_is";
|
||||
$extra_args = ", $e->{NAME}_switch_is";
|
||||
}
|
||||
|
||||
if ($e->{POINTERS} == 0) {
|
||||
@ -291,7 +291,7 @@ sub ParseFunction($)
|
||||
|
||||
foreach my $e (@{$fn->{DATA}}) {
|
||||
if (isunion($e->{TYPE})) {
|
||||
$result .= ", int switch_is";
|
||||
$result .= ", int $e->{NAME}_switch_is";
|
||||
}
|
||||
}
|
||||
$result .= ")\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user