Skip to content

Commit

Permalink
* ext/curses/curses.c (window_nodelay): nodelay() of NetBSD's
Browse files Browse the repository at this point in the history
  libcruses returns no value, just like keypad().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
unak committed Nov 22, 2003
1 parent dbd254d commit 448b1af
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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>

* bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub
Expand Down
8 changes: 7 additions & 1 deletion ext/curses/curses.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 448b1af

Please sign in to comment.