diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-20 11:23:40 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-20 11:23:40 +0000 |
commit | 3780ede6ef2248effe7f1725cbab052391aefd3f (patch) | |
tree | 7bcf8eae31dd7fd935079674077e23ae49e28490 /ext/dl/handle.c | |
parent | 5b615c70eb68177075bf033384499a2eb4b765e6 (diff) |
* ext/curses/curses.c, ext/digest/digest.c, ext/dl/handle.c,
ext/dl/ptr.c, ext/dl/sym.c, ext/gdbm/gdbm.c, ext/iconv/iconv.c,
ext/stringio/stringio.c, ext/strscan/strscan.c,
ext/tcltklib/tcltklib.c, ext/win32ole/win32ole.c:
use rb_define_alloc_func().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/handle.c')
-rw-r--r-- | ext/dl/handle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/handle.c b/ext/dl/handle.c index ea3b98b3c6..b38cecb981 100644 --- a/ext/dl/handle.c +++ b/ext/dl/handle.c @@ -204,7 +204,7 @@ void Init_dlhandle() { rb_cDLHandle = rb_define_class_under(rb_mDL, "Handle", rb_cObject); - rb_define_singleton_method(rb_cDLHandle, "allocate", rb_dlhandle_s_allocate, 0); + rb_define_alloc_func(rb_cDLHandle, rb_dlhandle_s_allocate); rb_define_method(rb_cDLHandle, "initialize", rb_dlhandle_initialize, -1); rb_define_method(rb_cDLHandle, "to_i", rb_dlhandle_to_i, 0); rb_define_method(rb_cDLHandle, "to_ptr", rb_dlhandle_to_ptr, 0); |