Fixed [ 775989 ] numeric template parameters
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4994 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0050ff503f
commit
d447d2fd5e
2 changed files with 4 additions and 3 deletions
|
|
@ -245,7 +245,6 @@ Swig_cparse_template_expand(Node *n, String *rname, ParmList *tparms) {
|
|||
int sz, i;
|
||||
|
||||
name = Getattr(tp,"name");
|
||||
|
||||
value = Getattr(p,"value");
|
||||
tydef = Getattr(p,"typedef");
|
||||
|
||||
|
|
@ -278,10 +277,10 @@ Swig_cparse_template_expand(Node *n, String *rname, ParmList *tparms) {
|
|||
for (i = 0; i < sz; i++) {
|
||||
String *s = Getitem(typelist,i);
|
||||
/* Replace(s,name,value, DOH_REPLACE_ID); */
|
||||
/* Printf(stdout,"name = '%s', s = '%s' --> ", name, s); */
|
||||
/* Printf(stdout,"name = '%s', value = '%s', tbase = '%s', iname='%s' s = '%s' --> ", name, value, tbase, iname, s); */
|
||||
SwigType_typename_replace(s,name,value);
|
||||
SwigType_typename_replace(s,tbase,iname);
|
||||
/* Printf(stdout,"'%s'\n", s); */
|
||||
/* Printf(stdout,"'%s'\n", s);*/
|
||||
}
|
||||
|
||||
if (!tydef) {
|
||||
|
|
|
|||
|
|
@ -1140,6 +1140,8 @@ SwigType_typename_replace(SwigType *t, String *pat, String *rep) {
|
|||
}
|
||||
Printv(e,").",NIL);
|
||||
Delete(fparms);
|
||||
} else if (SwigType_isarray(e)) {
|
||||
Replace(e,pat,rep, DOH_REPLACE_ID);
|
||||
}
|
||||
Append(nt,e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue