fix char *& typemap, reported by Geoff Hutchison
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8882 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ab05388a85
commit
220a0ad055
2 changed files with 13 additions and 1 deletions
|
|
@ -125,3 +125,15 @@ const char global_const_char_array2[sizeof(CPLUSPLUS_MSG)+1] = CPLUSPLUS_MSG;
|
||||||
return nstr;
|
return nstr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%inline {
|
||||||
|
struct Formatpos;
|
||||||
|
struct OBFormat;
|
||||||
|
|
||||||
|
static int GetNextFormat(Formatpos& itr, const char*& str,OBFormat*& pFormat) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@
|
||||||
if (!SWIG_IsOK(res)) {
|
if (!SWIG_IsOK(res)) {
|
||||||
%argument_fail(res,"$type",$symname, $argnum);
|
%argument_fail(res,"$type",$symname, $argnum);
|
||||||
}
|
}
|
||||||
$1 = &temp;
|
$1 = &buf;
|
||||||
}
|
}
|
||||||
%typemap(freearg, noblock=1,match="in") Char const*& {
|
%typemap(freearg, noblock=1,match="in") Char const*& {
|
||||||
if (alloc$argnum == SWIG_NEWOBJ) %delete_array(buf$argnum);
|
if (alloc$argnum == SWIG_NEWOBJ) %delete_array(buf$argnum);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue