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

@ -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

View file

@ -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))

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;
}