Ruby: Replace all occurences of STR2CSTR macro with calls to StringValuePtr
STR2CSTR was deprecated in Ruby since years and got finally removed in Ruby 1.9 git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13967 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5a2f1139c3
commit
23771ef027
8 changed files with 15 additions and 15 deletions
|
|
@ -14,7 +14,7 @@
|
|||
val = rb_hash_aref($input, key);
|
||||
Check_Type(key, T_STRING);
|
||||
Check_Type(val, T_FIXNUM);
|
||||
$2[i] = STR2CSTR(key);
|
||||
$2[i] = StringValuePtr(key);
|
||||
$3[i] = NUM2INT(val);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue