remove extra space, which was needed for template operator<
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8243 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
79e0f238b5
commit
41a14f0290
1 changed files with 5 additions and 19 deletions
|
|
@ -496,21 +496,14 @@ SwigType_namestr(const SwigType *t) {
|
||||||
String *r;
|
String *r;
|
||||||
String *suffix;
|
String *suffix;
|
||||||
List *p;
|
List *p;
|
||||||
char tmp[256];
|
|
||||||
char *c, *d, *e;
|
|
||||||
int i, sz;
|
int i, sz;
|
||||||
|
char *d = Char(t);
|
||||||
|
char *c = strstr(d,"<(");
|
||||||
|
|
||||||
if (!SwigType_istemplate(t)) return NewString(t);
|
if (!c) return NewString(t);
|
||||||
|
|
||||||
d = Char(t);
|
r = NewStringWithSize(d, c - d);
|
||||||
c = strstr(d,"<(");
|
if (*(c - 1) == '<') Putc(' ',r);
|
||||||
e = tmp;
|
|
||||||
while (d != c) {
|
|
||||||
*(e++) = *(d++);
|
|
||||||
}
|
|
||||||
*e = 0;
|
|
||||||
r = NewString(tmp);
|
|
||||||
Putc(' ',r);
|
|
||||||
Putc('<',r);
|
Putc('<',r);
|
||||||
|
|
||||||
p = SwigType_parmlist(c+1);
|
p = SwigType_parmlist(c+1);
|
||||||
|
|
@ -527,13 +520,6 @@ SwigType_namestr(const SwigType *t) {
|
||||||
StringAppend(r,suffix);
|
StringAppend(r,suffix);
|
||||||
Delete(suffix);
|
Delete(suffix);
|
||||||
Delete(p);
|
Delete(p);
|
||||||
#if 0
|
|
||||||
if (SwigType_istemplate(r)) {
|
|
||||||
SwigType *rr = SwigType_namestr(r);
|
|
||||||
Delete(r);
|
|
||||||
return rr;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue