summaryrefslogtreecommitdiffstats
path: root/ext/digest/digest.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-20 11:23:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-20 11:23:40 +0000
commit55282e0a796dd376b2191e9ffaadaa7263facac4 (patch)
tree7bcf8eae31dd7fd935079674077e23ae49e28490 /ext/digest/digest.c
parentab29e6d347c397752483a22c72e64b4f82c9e9cd (diff)
downloadruby-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/digest/digest.c')
-rw-r--r--ext/digest/digest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/digest/digest.c b/ext/digest/digest.c
index 63a3b92a5..0d058bbfd 100644
--- a/ext/digest/digest.c
+++ b/ext/digest/digest.c
@@ -297,7 +297,7 @@ Init_digest()
cDigest_Base = rb_define_class_under(mDigest, "Base", rb_cObject);
- rb_define_singleton_method(cDigest_Base, "allocate", rb_digest_base_alloc, 0);
+ rb_define_alloc_func(cDigest_Base, rb_digest_base_alloc);
rb_define_singleton_method(cDigest_Base, "digest", rb_digest_base_s_digest, 1);
rb_define_singleton_method(cDigest_Base, "hexdigest", rb_digest_base_s_hexdigest, 1);