From db84d32d08ad4d33f8614c9fed42baa8f4e0d443 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 1 Oct 2004 05:28:20 +0000 Subject: r2764: Use hand-written function for all occurrences of IDL strings, not just those with a single pointer. (This used to be commit c4c748ce63fd2d87d4388a1eac9afa586867ce28) --- 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 5cffff288b..34a1edd268 100644 --- a/source4/build/pidl/swig.pm +++ b/source4/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; } -- cgit