Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/curses-v3]: src/lib/libcurses Add !delay check.
details: https://anonhg.NetBSD.org/src/rev/50cd7936db5a
branches: curses-v3
changeset: 479961:50cd7936db5a
user: jdc <jdc%NetBSD.org@localhost>
date: Sun Mar 05 23:21:21 2000 +0000
description:
Add !delay check.
diffstat:
lib/libcurses/timeout.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r 8a2b004bfe3c -r 50cd7936db5a lib/libcurses/timeout.c
--- a/lib/libcurses/timeout.c Sun Mar 05 23:21:00 2000 +0000
+++ b/lib/libcurses/timeout.c Sun Mar 05 23:21:21 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: timeout.c,v 1.1 1999/04/13 14:08:19 mrg Exp $ */
+/* $NetBSD: timeout.c,v 1.1.6.1 2000/03/05 23:21:21 jdc Exp $ */
/*
* Copyright (c) 1999 Julian. D. Coleman
@@ -37,9 +37,11 @@
int delay;
{
- if (delay < 0) {
+ if (delay < 0)
win->delay = -1;
- } else {
+ else if (!delay)
+ win->delay = delay;
+ else {
/* timeout granularity is ms but VTIME is 0.1s */
win->delay = delay / 100;
}
Home |
Main Index |
Thread Index |
Old Index