Change handling of char[ANY] output typemaps, have it return the null
padding and use t_output_helper. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7468 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b865eddc83
commit
d4e5c9fbca
1 changed files with 4 additions and 2 deletions
|
|
@ -138,8 +138,10 @@ int_typemap(unsigned char);
|
||||||
}
|
}
|
||||||
%typemap(argout) char OUTPUT[ANY]
|
%typemap(argout) char OUTPUT[ANY]
|
||||||
{
|
{
|
||||||
size_t len = strnlen($1,$1_dim0);
|
zval *o;
|
||||||
RETURN_STRINGL( $1, len );
|
MAKE_STD_ZVAL(o);
|
||||||
|
ZVAL_STRINGL(o,temp$argnum,$1_dim0);
|
||||||
|
t_output_helper( &$result, o );
|
||||||
}
|
}
|
||||||
|
|
||||||
%typemap(in,numinputs=0) void **OUTPUT (int force),
|
%typemap(in,numinputs=0) void **OUTPUT (int force),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue