summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-23 15:22:06 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-23 15:22:06 +0000
commit427035c0bbed108cfc305b55a4773072362504dc (patch)
tree2647f55be65ed46616542f34a08257e6a9076837 /ext
parentcd390b1ec501c20cec43ee91a2b153b8ed1057db (diff)
add comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/curses/curses.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/curses/curses.c b/ext/curses/curses.c
index 4efa4c1db6..78519d3e2b 100644
--- a/ext/curses/curses.c
+++ b/ext/curses/curses.c
@@ -2769,14 +2769,17 @@ Init_curses(void)
rb_define_module_function(mCurses, "reset_prog_mode", curses_reset_prog_mode, 0);
#if defined(HAVE_FUNC_CURSES_VERSION)
+ /* ncurses and PDcurses */
rb_define_const(mCurses, "VERSION", rb_str_new2(curses_version()));
#elif defined(HAVE_VAR_CURSES_VERSION)
{
- /* SVR4 curses has an undocumented and undeclared variable, curses_version. */
+ /* SVR4 curses has an undocumented and undeclared variable, curses_version.
+ * It contains a string, "SVR4". */
RUBY_EXTERN char *curses_version;
rb_define_const(mCurses, "VERSION", rb_sprintf("curses (%s)", curses_version));
}
#else
+ /* BSD curses, perhaps. NetBSD 5 still use it. */
rb_define_const(mCurses, "VERSION", rb_str_new2("unknown"));
#endif