replace as needed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8319 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9fb217b048
commit
efecfe0ee2
1 changed files with 3 additions and 2 deletions
|
|
@ -739,13 +739,14 @@ public:
|
|||
* parameters, and dump the resulting code to the wrapper file.
|
||||
* --------------------------------------------------------------------- */
|
||||
|
||||
Parm *applyInputTypemap(Parm *p, String *ln, String *source, Wrapper *f) {
|
||||
Parm *applyInputTypemap(Parm *p, String *ln, String *source, Wrapper *f, String *symname) {
|
||||
String *tm;
|
||||
SwigType *pt = Getattr(p,"type");
|
||||
if ((tm = Getattr(p,"tmap:in"))) {
|
||||
Replaceall(tm,"$target",ln);
|
||||
Replaceall(tm,"$source",source);
|
||||
Replaceall(tm,"$input",source);
|
||||
Replaceall(tm,"$symname", symname);
|
||||
|
||||
if (Getattr(p,"wrap:disown") || (Getattr(p,"tmap:in:disown"))) {
|
||||
Replaceall(tm,"$disown","SWIG_POINTER_DISOWN");
|
||||
|
|
@ -837,7 +838,7 @@ public:
|
|||
}
|
||||
|
||||
/* Look for an input typemap */
|
||||
p = applyInputTypemap(p, ln, source, f);
|
||||
p = applyInputTypemap(p, ln, source, f, Getattr(n,"name"));
|
||||
if (i >= numreq) {
|
||||
Printf(f->code,"}\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue