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:
parent
b1f37cfd25
commit
ab6a42340d
1 changed files with 3 additions and 12 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue