1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
usa 2003-11-22 09:51:07 +00:00
parent dbd254d4f4
commit 448b1af751
2 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sat Nov 22 18:49:47 2003 NAKAMURA Usaku <usa@ruby-lang.org>
* 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 <usa@ruby-lang.org> Sat Nov 22 17:36:36 2003 NAKAMURA Usaku <usa@ruby-lang.org>
* bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub

View file

@ -1340,7 +1340,13 @@ window_nodelay(VALUE obj, VALUE val)
struct windata *winp; struct windata *winp;
GetWINDOW(obj,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; return nodelay(winp->window,RTEST(val) ? TRUE : FALSE) == OK ? Qtrue : Qfalse;
#endif
#else #else
rb_notimplement(); rb_notimplement();
#endif #endif