ext/host.c in ruby-vpi-21.0.0 vs ext/host.c in ruby-vpi-21.1.0
- old
+ new
@@ -11,22 +11,22 @@
#include <stdlib.h>
VALUE RubyVPI_host_gProgName;
#ifdef RUBY_GLOBAL_SETUP
-RUBY_GLOBAL_SETUP
+ RUBY_GLOBAL_SETUP
#endif
PLI_INT32 RubyVPI_host_init(p_cb_data aCallback)
{
//
// ruby init
//
#ifdef RUBY_INIT_STACK
- RubyVPI_util_debug("Host: RUBY_INIT_STACK");
- RUBY_INIT_STACK;
+ RubyVPI_util_debug("Host: RUBY_INIT_STACK");
+ RUBY_INIT_STACK;
#endif
RubyVPI_util_debug("Host: ruby_init()");
ruby_init();
@@ -39,15 +39,15 @@
RubyVPI_util_debug("Host: ruby_init_loadpath()");
ruby_init_loadpath();
#ifdef HAVE_RUBY_1_9
- RubyVPI_util_debug("Host: ruby_init_gems(Qtrue)");
- rb_const_set(rb_define_module("Gem"), rb_intern("Enable"), Qtrue);
+ RubyVPI_util_debug("Host: ruby_init_gems(Qtrue)");
+ rb_const_set(rb_define_module("Gem"), rb_intern("Enable"), Qtrue);
- RubyVPI_util_debug("Host: Init_prelude()");
- Init_prelude();
+ RubyVPI_util_debug("Host: Init_prelude()");
+ Init_prelude();
#endif
//
// VPI bindings init
@@ -61,15 +61,19 @@
// ruby thread init
//
RubyVPI_util_debug("Host: user_init()");
RubyVPI_user_init();
+
+ return 0;
}
PLI_INT32 RubyVPI_host_fini(p_cb_data aCallback)
{
RubyVPI_util_debug("Host: user fini");
RubyVPI_user_fini();
RubyVPI_util_debug("Host: ruby_finalize()");
ruby_finalize();
+
+ return 0;
}