From: Marcelo M. <mar...@us...> - 2004-10-30 11:03:22
|
Update of /cvsroot/swig/SWIG/Lib/ruby In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6636/Lib/ruby Modified Files: std_string.i Log Message: fix directors + std::string, reported in 1024595 Index: std_string.i =================================================================== RCS file: /cvsroot/swig/SWIG/Lib/ruby/std_string.i,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** std_string.i 20 Oct 2004 21:19:13 -0000 1.9 --- std_string.i 30 Oct 2004 11:03:13 -0000 1.10 *************** *** 55,61 **** } ! %typemap(directorin) string, const string &, string & "$1_name.c_str()"; ! %typemap(directorin) string *, const string * "$1_name->c_str()"; %typemap(directorout) string { --- 55,65 ---- } ! %typemap(directorin) string, const string &, string & { ! $input = rb_str_new2($1_name.c_str()); ! } ! %typemap(directorin) string *, const string * { ! $input = rb_str_new2($1_name->c_str()); ! } %typemap(directorout) string { |