fix bug #1060789
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8888 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c41f10fd9c
commit
03fd3dca48
4 changed files with 7 additions and 2 deletions
|
|
@ -5,6 +5,7 @@ Version 1.3.29 (In progress)
|
|||
|
||||
Fix all the errors reported for 1.3.28.
|
||||
|
||||
- fix bug #1060789
|
||||
- fix bug #1263457
|
||||
- fix 'const char*&' typemap in the UTL, reported by Geoff Hutchison
|
||||
- fixes for python 2.1 and the runtime library
|
||||
|
|
|
|||
|
|
@ -309,3 +309,6 @@ int test(int defined)
|
|||
#pragma SWIG cpperraswarn=1
|
||||
#error "Some error"
|
||||
|
||||
|
||||
#define MASK(shift, size) (((1 << (size)) - 1) <<(shift))
|
||||
#define SOME_MASK_DEF (80*MASK(8, 10))
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue