Many bug fixes to Ruby module
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@855 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
843485d7fa
commit
48bc25b91e
5 changed files with 214 additions and 103 deletions
5
Lib/ruby/ruby.i
Normal file
5
Lib/ruby/ruby.i
Normal 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);";
|
||||
Loading…
Add table
Add a link
Reference in a new issue