From 1ddb14e22e75e2862ddf036ff065df4bbfca5515 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 14 Oct 2004 06:35:42 +0000 Subject: r2963: Handle structures that contain more than one union as members. (This used to be commit 6a47a079c003c2a139665ad2b5ede5d139049bd1) --- source4/build/pidl/swig.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/build') diff --git a/source4/build/pidl/swig.pm b/source4/build/pidl/swig.pm index 7fad25d258..1ddb54c77b 100644 --- a/source4/build/pidl/swig.pm +++ b/source4/build/pidl/swig.pm @@ -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"; -- cgit