ruby-changes:22749
From: akr <ko1@a...>
Date: Sat, 25 Feb 2012 10:36:46 +0900 (JST)
Subject: [ruby-changes:22749] akr:r34798 (trunk): * ext/curses/curses.c (Init_curses): make Curses::VERSION
akr 2012-02-25 10:36:33 +0900 (Sat, 25 Feb 2012) New Revision: 34798 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34798 Log: * ext/curses/curses.c (Init_curses): make Curses::VERSION understandable without context. * ext/dbm/dbm.c (Init_dbm): ditto for DBM::VERSION. Modified files: trunk/ChangeLog trunk/ext/curses/curses.c trunk/ext/dbm/dbm.c Index: ChangeLog =================================================================== --- ChangeLog (revision 34797) +++ ChangeLog (revision 34798) @@ -1,3 +1,10 @@ +Sat Feb 25 10:34:22 2012 Tanaka Akira <akr@f...> + + * ext/curses/curses.c (Init_curses): make Curses::VERSION + understandable without context. + + * ext/dbm/dbm.c (Init_dbm): ditto for DBM::VERSION. + Sat Feb 25 07:53:58 2012 Nobuyoshi Nakada <nobu@r...> * parse.y (parser_tokadd_string): insert a backslash only if Index: ext/curses/curses.c =================================================================== --- ext/curses/curses.c (revision 34797) +++ ext/curses/curses.c (revision 34798) @@ -2780,7 +2780,7 @@ } #else /* BSD curses, perhaps. NetBSD 5 still use it. */ - rb_define_const(mCurses, "VERSION", rb_str_new2("unknown")); + rb_define_const(mCurses, "VERSION", rb_str_new2("curses (unknown)")); #endif /* Index: ext/dbm/dbm.c =================================================================== --- ext/dbm/dbm.c (revision 34797) +++ ext/dbm/dbm.c (revision 34798) @@ -1086,7 +1086,7 @@ rb_define_const(rb_cDBM, "NEWDB", INT2FIX(O_RDWR|O_CREAT|O_TRUNC|RUBY_DBM_RW_BIT)); #if defined(_DBM_IOERR) - rb_define_const(rb_cDBM, "VERSION", rb_str_new2("NDBM (4.3BSD)")); + rb_define_const(rb_cDBM, "VERSION", rb_str_new2("ndbm (4.3BSD)")); #elif defined(RUBYDBM_GDBM_HEADER) # if defined(HAVE_DECLARED_LIBVAR_GDBM_VERSION) /* since gdbm 1.9 */ @@ -1115,6 +1115,6 @@ rb_define_const(rb_cDBM, "VERSION", rb_str_new2("QDBM (unknown)")); # endif #else - rb_define_const(rb_cDBM, "VERSION", rb_str_new2("unknown")); + rb_define_const(rb_cDBM, "VERSION", rb_str_new2("ndbm (unknown)")); #endif } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/