fix SwigType_templateprefix + operator <

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8234 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-06 01:18:16 +00:00
commit ab6a42340d

View file

@ -785,18 +785,9 @@ SwigType_add_template(SwigType *t, ParmList *parms) {
String *
SwigType_templateprefix(const SwigType *t) {
const char *c;
const char *s;
s = Char(t);
c = s;
while (*c) {
if (*c == '<') {
return NewStringWithSize(s,c-s);
}
c++;
}
return NewString(s);
const char *s = Char(t);
const char *c = strstr(s,"<(");
return c ? NewStringWithSize(s, c-s) : NewString(s);
}
/* -----------------------------------------------------------------------------