fix template + operator()
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8054 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2784abd610
commit
ef800abf8d
1 changed files with 3 additions and 3 deletions
|
|
@ -355,7 +355,7 @@ void SwigType_add_default(String *def, SwigType *nr)
|
||||||
|
|
||||||
|
|
||||||
SwigType *SwigType_default(SwigType *t) {
|
SwigType *SwigType_default(SwigType *t) {
|
||||||
String *r1, *def, *cdef;
|
String *r1, *def;
|
||||||
String *r = 0;
|
String *r = 0;
|
||||||
char *cr;
|
char *cr;
|
||||||
|
|
||||||
|
|
@ -474,7 +474,7 @@ SwigType *SwigType_default(SwigType *t) {
|
||||||
#ifdef SWIG_DEFAULT_CACHE
|
#ifdef SWIG_DEFAULT_CACHE
|
||||||
/* The cache produces strange results, see enum_template.i case */
|
/* The cache produces strange results, see enum_template.i case */
|
||||||
if (def) {
|
if (def) {
|
||||||
cdef = Copy(def);
|
String *cdef = Copy(def);
|
||||||
Setattr(default_cache,t, cdef);
|
Setattr(default_cache,t, cdef);
|
||||||
Delete(cdef);
|
Delete(cdef);
|
||||||
}
|
}
|
||||||
|
|
@ -513,7 +513,7 @@ SwigType_namestr(const SwigType *t) {
|
||||||
Putc(' ',r);
|
Putc(' ',r);
|
||||||
Putc('<',r);
|
Putc('<',r);
|
||||||
|
|
||||||
p = SwigType_parmlist(t);
|
p = SwigType_parmlist(c+1);
|
||||||
sz = Len(p);
|
sz = Len(p);
|
||||||
for (i = 0; i < sz; i++) {
|
for (i = 0; i < sz; i++) {
|
||||||
String *str = SwigType_str(Getitem(p,i),0);
|
String *str = SwigType_str(Getitem(p,i),0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue