From 3780ede6ef2248effe7f1725cbab052391aefd3f Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 20 Dec 2002 11:23:40 +0000 Subject: * 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 --- ext/dl/sym.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/dl/sym.c') diff --git a/ext/dl/sym.c b/ext/dl/sym.c index 7868f07411..b5de3b961f 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); -- cgit v1.2.3