1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r2764: Use hand-written function for all occurrences of IDL strings, not just

those with a single pointer.
This commit is contained in:
Tim Potter 2004-10-01 05:28:20 +00:00 committed by Gerald (Jerry) Carter
parent f3adabf689
commit c4c748ce63

View File

@ -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;
}