summaryrefslogtreecommitdiff
path: root/ext/curses
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
commit3780ede6ef2248effe7f1725cbab052391aefd3f (patch)
tree7bcf8eae31dd7fd935079674077e23ae49e28490 /ext/curses
parent5b615c70eb68177075bf033384499a2eb4b765e6 (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/curses')
-rw-r--r--ext/curses/curses.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/curses/curses.c b/ext/curses/curses.c
index aeda267..fa29263 100644
--- a/ext/curses/curses.c
+++ b/ext/curses/curses.c
@@ -1308,7 +1308,7 @@ Init_curses()
#endif /* USE_MOUSE */
cWindow = rb_define_class_under(mCurses, "Window", rb_cData);
- rb_define_singleton_method(cWindow, "allocate", window_s_allocate, 0);
+ rb_define_alloc_func(cWindow, window_s_allocate);
rb_define_method(cWindow, "initialize", window_initialize, 4);
rb_define_method(cWindow, "subwin", window_subwin, 4);
rb_define_method(cWindow, "close", window_close, 0);