From c4c748ce63fd2d87d4388a1eac9afa586867ce28 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 1 Oct 2004 05:28:20 +0000 Subject: [PATCH] r2764: Use hand-written function for all occurrences of IDL strings, not just those with a single pointer. --- source/build/pidl/swig.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/build/pidl/swig.pm b/source/build/pidl/swig.pm index 5cffff288b9..34a1edd2688 100644 --- a/source/build/pidl/swig.pm +++ b/source/build/pidl/swig.pm @@ -91,7 +91,7 @@ sub FieldFromPython($$) # 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 @@ sub FieldToPython($$) # 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; }