pystrings.swg cosmetic formatting
This commit is contained in:
parent
01611702ec
commit
e07938ae8e
1 changed files with 7 additions and 8 deletions
|
|
@ -45,8 +45,7 @@ SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
|
||||||
{
|
{
|
||||||
*cptr = %new_copy_array(cstr, len + 1, char);
|
*cptr = %new_copy_array(cstr, len + 1, char);
|
||||||
*alloc = SWIG_NEWOBJ;
|
*alloc = SWIG_NEWOBJ;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
*cptr = cstr;
|
*cptr = cstr;
|
||||||
*alloc = SWIG_OLDOBJ;
|
*alloc = SWIG_OLDOBJ;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue