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 | 55282e0a796dd376b2191e9ffaadaa7263facac4 (patch) | |
| tree | 7bcf8eae31dd7fd935079674077e23ae49e28490 /ext/dl | |
| parent | ab29e6d347c397752483a22c72e64b4f82c9e9cd (diff) | |
| download | ruby-55282e0a796dd376b2191e9ffaadaa7263facac4.tar.gz ruby-55282e0a796dd376b2191e9ffaadaa7263facac4.tar.xz ruby-55282e0a796dd376b2191e9ffaadaa7263facac4.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@3193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl')
| -rw-r--r-- | ext/dl/handle.c | 2 | ||||
| -rw-r--r-- | ext/dl/ptr.c | 2 | ||||
| -rw-r--r-- | ext/dl/sym.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/ext/dl/handle.c b/ext/dl/handle.c index ea3b98b3c..b38cecb98 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); diff --git a/ext/dl/ptr.c b/ext/dl/ptr.c index d90054c9c..a1e77ca10 100644 --- a/ext/dl/ptr.c +++ b/ext/dl/ptr.c @@ -1035,7 +1035,7 @@ void Init_dlptr() { rb_cDLPtrData = rb_define_class_under(rb_mDL, "PtrData", rb_cObject); - rb_define_singleton_method(rb_cDLPtrData, "allocate", rb_dlptr_s_allocate, 0); + rb_define_alloc_func(rb_cDLPtrData, rb_dlptr_s_allocate); rb_define_singleton_method(rb_cDLPtrData, "malloc", rb_dlptr_s_malloc, -1); rb_define_method(rb_cDLPtrData, "initialize", rb_dlptr_initialize, -1); rb_define_method(rb_cDLPtrData, "free=", rb_dlptr_free_set, 1); diff --git a/ext/dl/sym.c b/ext/dl/sym.c index 7868f0741..b5de3b961 100644 --- a/ext/dl/sym.c +++ b/ext/dl/sym.c @@ -822,7 +822,7 @@ void Init_dlsym() { rb_cDLSymbol = rb_define_class_under(rb_mDL, "Symbol", rb_cObject); - rb_define_singleton_method(rb_cDLSymbol, "allocate", rb_dlsym_s_allocate, 0); + rb_define_alloc_func(rb_cDLSymbol, rb_dlsym_s_allocate); rb_define_singleton_method(rb_cDLSymbol, "char2type", rb_s_dlsym_char2type, 1); rb_define_method(rb_cDLSymbol, "initialize", rb_dlsym_initialize, -1); rb_define_method(rb_cDLSymbol, "call", rb_dlsym_call, -1); |
