Author: tpot Date: 2004-10-01 05:28:20 +0000 (Fri, 01 Oct 2004) New Revision: 2764
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/build/pidl&rev=2764&nolog=1 Log: Use hand-written function for all occurrences of IDL strings, not just those with a single pointer. Modified: branches/SAMBA_4_0/source/build/pidl/swig.pm Changeset: Modified: branches/SAMBA_4_0/source/build/pidl/swig.pm =================================================================== --- branches/SAMBA_4_0/source/build/pidl/swig.pm 2004-10-01 05:19:51 UTC (rev 2763) +++ branches/SAMBA_4_0/source/build/pidl/swig.pm 2004-10-01 05:28:20 UTC (rev 2764) @@ -91,7 +91,7 @@ # Special cases - if ($e->{TYPE} eq "string" && $e->{POINTERS} == 1) { + if ($e->{TYPE} eq "string") { $result .= "\ts->$prefix$e->{NAME} = string_ptr_from_python(mem_ctx, $obj, \"$e->{NAME}\");\n"; return $result; } @@ -187,7 +187,7 @@ # Special cases - if ($e->{TYPE} eq "string" && $e->{POINTERS} == 1) { + if ($e->{TYPE} eq "string") { $result .= "\tPyDict_SetItemString(obj, \"$e->{NAME}\", string_ptr_to_python(mem_ctx, s->$prefix$e->{NAME}));\n"; return $result; }