Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* ext/curses/curses.c (Init_curses): use curses_version() for

  Curses::VERSION.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit 25df75e1195fe6c9d957ef8123096275ade04467 1 parent c98fd7d
@akr akr authored
Showing with 6 additions and 1 deletion.
  1. +5 −0 ChangeLog
  2. +1 −1  ext/curses/curses.c
View
5 ChangeLog
@@ -1,3 +1,8 @@
+Tue Feb 21 19:39:34 2012 Tanaka Akira <akr@fsij.org>
+
+ * ext/curses/curses.c (Init_curses): use curses_version() for
+ Curses::VERSION.
+
Tue Feb 21 18:21:25 2012 Narihiro Nakamura <authornari@gmail.com>
* gc.c : remove gc_clear_mark_on_sweep_slots() and use
View
2  ext/curses/curses.c
@@ -2769,7 +2769,7 @@ Init_curses(void)
rb_define_module_function(mCurses, "reset_prog_mode", curses_reset_prog_mode, 0);
#ifdef NCURSES_VERSION
- rb_define_const(mCurses, "VERSION", rb_sprintf("ncurses %s", NCURSES_VERSION));
+ rb_define_const(mCurses, "VERSION", rb_str_new2(curses_version()));
#else
rb_define_const(mCurses, "VERSION", rb_str_new2("unknown"));
#endif
Please sign in to comment.
Something went wrong with that request. Please try again.