fix char *& typemap, reported by Geoff Hutchison
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8882 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2ea0f2662f
commit
da1a23a6a2
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;
|
||||
}
|
||||
}
|
||||
|
||||
%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)) {
|
||||
%argument_fail(res,"$type",$symname, $argnum);
|
||||
}
|
||||
$1 = &temp;
|
||||
$1 = &buf;
|
||||
}
|
||||
%typemap(freearg, noblock=1,match="in") Char const*& {
|
||||
if (alloc$argnum == SWIG_NEWOBJ) %delete_array(buf$argnum);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue