[前][次][番号順一覧][スレッド一覧]

ruby-changes:10356

From: kouji <ko1@a...>
Date: Fri, 30 Jan 2009 16:13:13 +0900 (JST)
Subject: [ruby-changes:10356] Ruby:r21900 (trunk): * ext/curses/curses.c (Init_curses): Curses#crmode and

kouji	2009-01-30 16:12:45 +0900 (Fri, 30 Jan 2009)

  New Revision: 21900

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21900

  Log:
    * ext/curses/curses.c (Init_curses): Curses#crmode and
      Curses#nocrmode changes to the module function. 
      fix #916

  Modified files:
    trunk/ChangeLog
    trunk/ext/curses/curses.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21899)
+++ ChangeLog	(revision 21900)
@@ -1,3 +1,9 @@
+Fri Jan 30 16:12:32 2009  TAKAO Kouji  <kouji@t...>
+
+	* ext/curses/curses.c (Init_curses): Curses#crmode and
+	  Curses#nocrmode changes to the module function. 
+	  fix #916
+	
 Fri Jan 30 14:31:14 2009  NAKAMURA Usaku  <usa@r...>
 
 	* tool/make-snapshot (prereq): remove enc.mk from tarball because
Index: ext/curses/curses.c
===================================================================
--- ext/curses/curses.c	(revision 21899)
+++ ext/curses/curses.c	(revision 21900)
@@ -1498,8 +1498,8 @@
     rb_define_module_function(mCurses, "noraw", curses_noraw, 0);
     rb_define_module_function(mCurses, "cbreak", curses_cbreak, 0);
     rb_define_module_function(mCurses, "nocbreak", curses_nocbreak, 0);
-    rb_define_alias(mCurses, "crmode", "cbreak");
-    rb_define_alias(mCurses, "nocrmode", "nocbreak");
+    rb_define_module_function(mCurses, "crmode", curses_nocbreak, 0);
+    rb_define_module_function(mCurses, "nocrmode", curses_nocbreak, 0);
     rb_define_module_function(mCurses, "nl", curses_nl, 0);
     rb_define_module_function(mCurses, "nonl", curses_nonl, 0);
     rb_define_module_function(mCurses, "beep", curses_beep, 0);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]