git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8888 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-02-24 02:39:24 +00:00
commit 03fd3dca48
4 changed files with 7 additions and 2 deletions

View file

@ -500,7 +500,7 @@ SwigType_namestr(const SwigType *t) {
char *d = Char(t);
char *c = strstr(d,"<(");
if (!c) return NewString(t);
if (!c || !strstr(c+2,")>")) return NewString(t);
r = NewStringWithSize(d, c - d);
if (*(c - 1) == '<') Putc(' ',r);

View file

@ -857,7 +857,8 @@ SwigType_templateargs(const SwigType *t) {
int
SwigType_istemplate(const SwigType *t) {
if (strstr(Char(t),"<(")) return 1;
char *ct = Char(t);
if ((ct = strstr(ct,"<(")) && (strstr(ct + 2,")>"))) return 1;
return 0;
}