a few bug fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@810 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c1b584ccb1
commit
f19e6cc4df
2 changed files with 13 additions and 10 deletions
|
|
@ -320,6 +320,13 @@ void RUBY::initialize() {
|
|||
Printv(f_init, tab4, modvar, " = rb_define_module(\"", module, "\");\n",
|
||||
"_mSWIG = rb_define_module_under(", modvar, ", \"SWIG\");\n",
|
||||
0);
|
||||
Printv(f_init,
|
||||
"\n",
|
||||
"for (i = 0; swig_types_initial[i]; i++) {\n",
|
||||
"swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);\n",
|
||||
"SWIG_define_class(swig_types[i]);\n",
|
||||
"}\n",
|
||||
0);
|
||||
Printf(f_init,"\n");
|
||||
klass = new RClass();
|
||||
}
|
||||
|
|
@ -333,13 +340,6 @@ void RUBY::initialize() {
|
|||
|
||||
void RUBY::close(void) {
|
||||
/* Finish off our init function */
|
||||
Printv(f_init,
|
||||
"\n",
|
||||
"for (i = 0; swig_types_initial[i]; i++) {\n",
|
||||
"swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);\n",
|
||||
"SWIG_define_class(swig_types[i]);\n",
|
||||
"}\n",
|
||||
0);
|
||||
Printf(f_init,"}\n");
|
||||
SwigType_emit_type_table(f_header,f_wrappers);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue