(Ruby Support): Fix some type mangle problem in Ruby library.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@590 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Masaki Fukushima 2000-07-22 10:52:19 +00:00
commit 0cedebe44f
2 changed files with 25 additions and 26 deletions

View file

@ -128,7 +128,6 @@ SWIG_MakePtr(char *_c, const void *_ptr, char *type) {
*_r = '_';
while (_r >= _result)
*(_c++) = *(_r--);
*(_c++) = '_';
} else {
strcpy (_c, "NULL");
}
@ -167,7 +166,7 @@ SWIG_GetPtr(char *_c, void **ptr, char *_t)
break;
_c++;
}
_c++;
if (_t) {
if (strcmp(_t,_c)) {
if (!SwigPtrSort) {