Many bug fixes to Ruby module

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@855 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Masaki Fukushima 2000-09-18 13:32:29 +00:00
commit feb39b0fd2
5 changed files with 214 additions and 103 deletions

5
SWIG/Lib/ruby/ruby.i Normal file
View file

@ -0,0 +1,5 @@
%typemap(ruby,varin) char * "
Check_Type($source, T_STRING);
if ($target) free($target);
$target = xmalloc(RSTRING($source)->len + 1);
strncpy($target, STR2CSTR($source), RSTRING($source)->len + 1);";