fix changes in 1.3 to better support %apply, it didn't compile with python before
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9080 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f4f56b2c34
commit
f95d974620
1 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@
|
||||||
if (!SWIG_IsOK(res)) {
|
if (!SWIG_IsOK(res)) {
|
||||||
%argument_fail(res,"$type",$symname, $argnum);
|
%argument_fail(res,"$type",$symname, $argnum);
|
||||||
}
|
}
|
||||||
$1 = ($1_type)buf;
|
$1 = %static_cast(buf, $1_ltype);
|
||||||
}
|
}
|
||||||
%typemap(freearg,noblock=1,match="in") Char *, const Char * {
|
%typemap(freearg,noblock=1,match="in") Char *, const Char * {
|
||||||
if (alloc$argnum == SWIG_NEWOBJ) %delete_array(buf$argnum);
|
if (alloc$argnum == SWIG_NEWOBJ) %delete_array(buf$argnum);
|
||||||
|
|
@ -174,7 +174,7 @@
|
||||||
if (alloc == SWIG_NEWOBJ) {
|
if (alloc == SWIG_NEWOBJ) {
|
||||||
swig_acquire_ownership_array(buf);
|
swig_acquire_ownership_array(buf);
|
||||||
}
|
}
|
||||||
$result = ($1_type)buf;
|
$result = %static_cast(buf, $ltype);
|
||||||
}
|
}
|
||||||
%typemap(directorfree,noblock=1) Char *
|
%typemap(directorfree,noblock=1) Char *
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue