diff options
author | Tim Potter <tpot@samba.org> | 2004-10-01 05:28:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:31 -0500 |
commit | db84d32d08ad4d33f8614c9fed42baa8f4e0d443 (patch) | |
tree | 7d03ec0cdb616b5d200a0a6736e7189e0a04d1e0 /source4/build/pidl | |
parent | b2575ce6656d09d8bcfa948f7a9d368b9228a261 (diff) | |
download | samba-db84d32d08ad4d33f8614c9fed42baa8f4e0d443.tar.gz samba-db84d32d08ad4d33f8614c9fed42baa8f4e0d443.tar.bz2 samba-db84d32d08ad4d33f8614c9fed42baa8f4e0d443.zip |
r2764: Use hand-written function for all occurrences of IDL strings, not just
those with a single pointer.
(This used to be commit c4c748ce63fd2d87d4388a1eac9afa586867ce28)
Diffstat (limited to 'source4/build/pidl')
-rw-r--r-- | source4/build/pidl/swig.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |