Bug fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@253 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8957904f03
commit
a3ac9bf439
1 changed files with 3 additions and 1 deletions
|
|
@ -252,10 +252,12 @@ DOH *SwigType_pop(DOH *t)
|
|||
|
||||
void SwigType_push(DOH *t, DOH *cons)
|
||||
{
|
||||
if (!cons) return;
|
||||
if (!Len(cons)) return;
|
||||
assert(DohIsString(t));
|
||||
if (Len(t)) {
|
||||
int len;
|
||||
char *c = Char(t);
|
||||
char *c = Char(cons);
|
||||
if (c[strlen(c)-1] != '.')
|
||||
Insert(t,0,".");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue