summaryrefslogtreecommitdiff
path: root/goruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-23 08:00:09 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-23 08:00:09 (GMT)
commit92a095480a8a31d6f374a712c262fc09ecec68dd (patch)
treea4be9e5fd6dfafa3197ca8546b2ea4e0a4fdae60 /goruby.c
parentd3e7e3cc8b8d8e4a04ee15f68bb06e4844b52f42 (diff)
goruby.c: call Init_golf [ci skip]
* goruby.c (init_golf): call Init_golf, because ruby_init_ext only registers the function since r43514. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'goruby.c')
-rw-r--r--goruby.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/goruby.c b/goruby.c
index 99042f8..5ac4c96 100644
--- a/goruby.c
+++ b/goruby.c
@@ -20,7 +20,8 @@ RUBY_EXTERN void ruby_init_ext(const char *name, void (*init)(void));
static VALUE
init_golf(VALUE arg)
{
- ruby_init_ext("golf.so", Init_golf);
+ Init_golf();
+ rb_provide("golf.so");
return arg;
}