Don't accidentally create a "<:" token (which is the same as "[" in C++).
Fixes bug # 1521788. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9350 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1bb2bad0ad
commit
7e8f1dd8b1
2 changed files with 6 additions and 0 deletions
|
|
@ -1,6 +1,10 @@
|
|||
Version 1.3.30 (in progress)
|
||||
============================
|
||||
|
||||
09/24/2006: olly
|
||||
Don't accidentally create a "<:" token (which is the same as "[" in C++).
|
||||
Fixes bug # 1521788.
|
||||
|
||||
09/23/2006: olly
|
||||
[Ruby] Support building with recent versions of the Ruby 1.9
|
||||
development branch. Fixes bug #1560092.
|
||||
|
|
|
|||
|
|
@ -508,6 +508,8 @@ SwigType_namestr(const SwigType *t) {
|
|||
sz = Len(p);
|
||||
for (i = 0; i < sz; i++) {
|
||||
String *str = SwigType_str(Getitem(p,i),0);
|
||||
/* Avoid creating a <: token, which is the same as [ in C++. */
|
||||
if (i == 0 && Len(str) && *Char(str) == ':') Putc(' ', r);
|
||||
StringAppend(r,str);
|
||||
if ((i+1) < sz) Putc(',',r);
|
||||
Delete(str);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue