From 448b1af751fed5976948d629d9b7028a7d044506 Mon Sep 17 00:00:00 2001 From: usa Date: Sat, 22 Nov 2003 09:51:07 +0000 Subject: [PATCH] * ext/curses/curses.c (window_nodelay): nodelay() of NetBSD's libcruses returns no value, just like keypad(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/curses/curses.c | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d8064da174..be259dd5b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Nov 22 18:49:47 2003 NAKAMURA Usaku + + * ext/curses/curses.c (window_nodelay): nodelay() of NetBSD's + libcruses returns no value, just like keypad(). + Sat Nov 22 17:36:36 2003 NAKAMURA Usaku * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub diff --git a/ext/curses/curses.c b/ext/curses/curses.c index 7900573df7..2e60b21609 100644 --- a/ext/curses/curses.c +++ b/ext/curses/curses.c @@ -1339,8 +1339,14 @@ window_nodelay(VALUE obj, VALUE val) #ifdef HAVE_NODELAY struct windata *winp; GetWINDOW(obj,winp); - + + /* nodelay() of NetBSD's libcurses returns no value */ +#if defined(__NetBSD__) && !defined(NCURSES_VERSION) + nodelay(winp->window, RTEST(val) ? TRUE : FALSE); + return Qnil; +#else return nodelay(winp->window,RTEST(val) ? TRUE : FALSE) == OK ? Qtrue : Qfalse; +#endif #else rb_notimplement(); #endif