Additional fixes for Ruby 1.8 compatibility.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4688 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3acd792de3
commit
7cfddcffc7
3 changed files with 34 additions and 19 deletions
|
|
@ -390,7 +390,7 @@ typedef unsigned long VALUE;
|
|||
|
||||
%typemap(in) (char *STRING, int LENGTH) {
|
||||
$1 = ($1_ltype) StringValuePtr($input);
|
||||
$2 = ($2_ltype) RSTRING($input)->len;
|
||||
$2 = ($2_ltype) StringValueLen($input);
|
||||
}
|
||||
|
||||
/* Some ANSI C typemaps */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue