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/win32ole/win32ole.c | |
parent | 5b615c70eb68177075bf033384499a2eb4b765e6 (diff) | |
download | ruby-3780ede6ef2248effe7f1725cbab052391aefd3f.tar.gz |
* 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/win32ole/win32ole.c')
-rw-r--r-- | ext/win32ole/win32ole.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c index 29be931534..1eb09e0a5e 100644 --- a/ext/win32ole/win32ole.c +++ b/ext/win32ole/win32ole.c @@ -5244,7 +5244,7 @@ Init_win32ole() cWIN32OLE = rb_define_class("WIN32OLE", rb_cObject); - rb_define_singleton_method(cWIN32OLE, "allocate", fole_s_allocate, 0); + rb_define_alloc_func(cWIN32OLE, fole_s_allocate); rb_define_method(cWIN32OLE, "initialize", fole_initialize, -1); rb_enable_super(cWIN32OLE, "initialize"); @@ -5314,7 +5314,7 @@ Init_win32ole() rb_define_singleton_method(cWIN32OLE_TYPE, "ole_classes", foletype_s_ole_classes, 1); rb_define_singleton_method(cWIN32OLE_TYPE, "typelibs", foletype_s_typelibs, 0); rb_define_singleton_method(cWIN32OLE_TYPE, "progids", foletype_s_progids, 0); - rb_define_singleton_method(cWIN32OLE_TYPE, "allocate", foletype_s_allocate, 0); + rb_define_alloc_func(cWIN32OLE_TYPE, foletype_s_allocate); rb_define_method(cWIN32OLE_TYPE, "initialize", foletype_initialize, 2); rb_enable_super(cWIN32OLE_TYPE, "initialize"); rb_define_method(cWIN32OLE_TYPE, "name", foletype_name, 0); @@ -5343,7 +5343,7 @@ Init_win32ole() rb_define_method(cWIN32OLE_VARIABLE, "varkind", folevariable_varkind, 0); cWIN32OLE_METHOD = rb_define_class("WIN32OLE_METHOD", rb_cObject); - rb_define_singleton_method(cWIN32OLE_METHOD, "allocate", folemethod_s_allocate, 0); + rb_define_alloc_func(cWIN32OLE_METHOD, folemethod_s_allocate); rb_define_method(cWIN32OLE_METHOD, "initialize", folemethod_initialize, 2); rb_enable_super(cWIN32OLE_METHOD, "initialize"); @@ -5377,7 +5377,7 @@ Init_win32ole() cWIN32OLE_EVENT = rb_define_class("WIN32OLE_EVENT", rb_cObject); - rb_define_singleton_method(cWIN32OLE_EVENT, "allocate", fev_s_allocate, 0); + rb_define_alloc_func(cWIN32OLE_EVENT, fev_s_allocate); rb_define_method(cWIN32OLE_EVENT, "initialize", fev_initialize, -1); rb_enable_super(cWIN32OLE_EVENT, "initialize"); rb_define_singleton_method(cWIN32OLE_EVENT, "message_loop", fev_s_msg_loop, 0); |