summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--ext/curses/curses.c2
-rw-r--r--ext/dbm/dbm.c4
3 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f2e68847a52..41bad13aa9e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Sat Feb 25 10:34:22 2012 Tanaka Akira <akr@fsij.org>
+
+ * 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@ruby-lang.org>
* parse.y (parser_tokadd_string): insert a backslash only if
diff --git a/ext/curses/curses.c b/ext/curses/curses.c
index 78519d3e2be..69dc09cf301 100644
--- a/ext/curses/curses.c
+++ b/ext/curses/curses.c
@@ -2780,7 +2780,7 @@ Init_curses(void)
}
#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
/*
diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c
index a0022ab0f8a..f220d3e7c0a 100644
--- a/ext/dbm/dbm.c
+++ b/ext/dbm/dbm.c
@@ -1086,7 +1086,7 @@ Init_dbm(void)
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 @@ Init_dbm(void)
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
}