fix directors + std::string, reported in 1024595

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6563 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-30 11:03:13 +00:00
commit 3ce2d115c5

View file

@ -54,9 +54,13 @@ namespace std {
$result = rb_str_new2($1->c_str());
}
%typemap(directorin) string, const string &, string & "$1_name.c_str()";
%typemap(directorin) string, const string &, string & {
$input = rb_str_new2($1_name.c_str());
}
%typemap(directorin) string *, const string * "$1_name->c_str()";
%typemap(directorin) string *, const string * {
$input = rb_str_new2($1_name->c_str());
}
%typemap(directorout) string {
if (TYPE($input) == T_STRING)