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

ruby-changes:19686

From: drbrain <ko1@a...>
Date: Wed, 25 May 2011 11:55:02 +0900 (JST)
Subject: [ruby-changes:19686] drbrain:r31731 (trunk): * ext/curses/curses.c: Remove color constants block.

drbrain	2011-05-25 11:54:48 +0900 (Wed, 25 May 2011)

  New Revision: 31731

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

  Log:
    * ext/curses/curses.c:  Remove color constants block.
      [Ruby 1.9 - Bug #4748]

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31730)
+++ ChangeLog	(revision 31731)
@@ -1,3 +1,8 @@
+Wed May 25 11:54:31 2011  Eric Hodel  <drbrain@s...>
+
+	* ext/curses/curses.c:  Remove color constants block.
+	  [Ruby 1.9 - Bug #4748]
+
 Wed May 25 09:56:45 2011  Eric Hodel  <drbrain@s...>
 
 	* ext/curses/curses.c:  Add missing documentation for button state, MIN
Index: ext/curses/curses.c
===================================================================
--- ext/curses/curses.c	(revision 31730)
+++ ext/curses/curses.c	(revision 31731)
@@ -2463,24 +2463,9 @@
  *
  * === Modules
  *
- * * Curses - basis for the curses implementation
- * * Curses::Key - the collection of constants
+ * Curses:: The curses implementation
+ * Curses::Key:: Collection of constants for keypress events
  *
- * === Constants
- *
- * For whatever reason, these are not picked up in the RDoc
- * These are Integer of the colors.
- *
- * * COLOR_BLACK	= 0
- * * COLOR_RED		= 1
- * * COLOR_GREEN	= 2
- * * COLOR_YELLOW	= 3
- * * COLOR_BLUE		= 4
- * * COLOR_MAGENTA	= 5
- * * COLOR_CYAN		= 6
- * * COLOR_WHITE	= 7
- *
- *
  * == Examples
  *
  * * hello.rb
@@ -2740,56 +2725,56 @@
     /*
      * Document-const: Curses::COLORS
      *
-     * Integer of the colors available
+     * Number of the colors available
      */
     rb_curses_define_const(COLORS);
 #endif
     /*
      * Document-const: Curses::COLOR_BLACK
      *
-     * Integer of the color black
+     * Value of the color black
      */
     rb_curses_define_const(COLOR_BLACK);
     /*
      * Document-const: COLOR_RED
      *
-     * Integer of the color red
+     * Value of the color red
      */
     rb_curses_define_const(COLOR_RED);
     /*
      * Document-const: COLOR_GREEN
      *
-     * Integer of the color green
+     * Value of the color green
      */
     rb_curses_define_const(COLOR_GREEN);
     /*
      * Document-const: COLOR_YELLOW
      *
-     * Integer of the color yellow
+     * Value of the color yellow
      */
     rb_curses_define_const(COLOR_YELLOW);
     /*
      * Document-const: COLOR_BLUE
      *
-     * Integer of the color blue
+     * Value of the color blue
      */
     rb_curses_define_const(COLOR_BLUE);
     /*
      * Document-const: COLOR_MAGENTA
      *
-     * Integer of the color magenta
+     * Value of the color magenta
      */
     rb_curses_define_const(COLOR_MAGENTA);
     /*
      * Document-const: COLOR_CYAN
      *
-     * Integer of the color cyan
+     * Value of the color cyan
      */
     rb_curses_define_const(COLOR_CYAN);
     /*
      * Document-const: COLOR_WHITE
      *
-     * Integer of the color white
+     * Value of the color white
      */
     rb_curses_define_const(COLOR_WHITE);
 #endif /* USE_COLOR */

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

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