Fixed handling of char. This was needed due to changes in handling of %constants in ruby.cxx

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7625 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Charlie Savage 2005-10-08 19:51:51 +00:00
commit 2531e8d5f5

View file

@ -86,8 +86,10 @@
/* --- Constants --- */
%typemap(constant) char
"rb_define_const($module,\"$symname\", rb_str_new($1,1));";
%typemap(constant) char {
char temp = $1;
rb_define_const($module,"$symname", rb_str_new(&temp,1));
}
%typemap(constant) char *
"rb_define_const($module,\"$symname\", rb_str_new2($1));";