add missing %s
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7964 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e0eea5f625
commit
3b3d3118f1
1 changed files with 3 additions and 3 deletions
|
|
@ -20,11 +20,11 @@ SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
|
||||||
The default behavior is just to return the pointer value,
|
The default behavior is just to return the pointer value,
|
||||||
so, be careful.
|
so, be careful.
|
||||||
*/
|
*/
|
||||||
#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
|
%#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
|
||||||
if (*alloc != SWIG_OLDOBJ)
|
if (*alloc != SWIG_OLDOBJ)
|
||||||
#else
|
%#else
|
||||||
if (*alloc == SWIG_NEWOBJ)
|
if (*alloc == SWIG_NEWOBJ)
|
||||||
#endif
|
%#endif
|
||||||
{
|
{
|
||||||
*cptr = %new_copy_array(cstr, len + 1, char);
|
*cptr = %new_copy_array(cstr, len + 1, char);
|
||||||
*alloc = SWIG_NEWOBJ;
|
*alloc = SWIG_NEWOBJ;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue