Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcurses We already initialize UP and BC when we fire u...



details:   https://anonhg.NetBSD.org/src/rev/61ca889dcaa6
branches:  trunk
changeset: 486320:61ca889dcaa6
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Fri May 19 01:05:43 2000 +0000

description:
We already initialize UP and BC when we fire up Curses, so pass a null pointer
to t_goto() to avoid doing it again... and again... and...

diffstat:

 lib/libcurses/cr_put.c  |  6 +++---
 lib/libcurses/refresh.c |  6 +++---
 lib/libcurses/setterm.c |  6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)

diffs (81 lines):

diff -r 24c66c544814 -r 61ca889dcaa6 lib/libcurses/cr_put.c
--- a/lib/libcurses/cr_put.c    Thu May 18 23:16:28 2000 +0000
+++ b/lib/libcurses/cr_put.c    Fri May 19 01:05:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cr_put.c,v 1.17 2000/04/19 13:52:39 blymn Exp $        */
+/*     $NetBSD: cr_put.c,v 1.18 2000/05/19 01:05:43 mycroft Exp $      */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)cr_put.c   8.3 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: cr_put.c,v 1.17 2000/04/19 13:52:39 blymn Exp $");
+__RCSID("$NetBSD: cr_put.c,v 1.18 2000/05/19 01:05:43 mycroft Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -167,7 +167,7 @@
        if (destline < outline && !(CA || UP))
                destline = outline;
        if (CA) {
-               t_goto(_cursesi_genbuf, CM, destcol, destline, cgp, 1023);
+               t_goto(NULL, CM, destcol, destline, cgp, 1023);
 
                /*
                 * Need this condition due to inconsistent behavior
diff -r 24c66c544814 -r 61ca889dcaa6 lib/libcurses/refresh.c
--- a/lib/libcurses/refresh.c   Thu May 18 23:16:28 2000 +0000
+++ b/lib/libcurses/refresh.c   Fri May 19 01:05:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: refresh.c,v 1.30 2000/05/18 20:37:42 mycroft Exp $     */
+/*     $NetBSD: refresh.c,v 1.31 2000/05/19 01:05:44 mycroft Exp $     */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)refresh.c  8.7 (Berkeley) 8/13/94";
 #else
-__RCSID("$NetBSD: refresh.c,v 1.30 2000/05/18 20:37:42 mycroft Exp $");
+__RCSID("$NetBSD: refresh.c,v 1.31 2000/05/19 01:05:44 mycroft Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -442,7 +442,7 @@
 
        if (force) {
                if (CM) {
-                       t_goto(_cursesi_genbuf, CM, lx, ly, cm_buff, 1023);
+                       t_goto(NULL, CM, lx, ly, cm_buff, 1023);
                        tputs(cm_buff, 0, __cputchar);
                } else {
                        tputs(HO, 0, __cputchar);
diff -r 24c66c544814 -r 61ca889dcaa6 lib/libcurses/setterm.c
--- a/lib/libcurses/setterm.c   Thu May 18 23:16:28 2000 +0000
+++ b/lib/libcurses/setterm.c   Fri May 19 01:05:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: setterm.c,v 1.22 2000/04/29 00:50:05 mycroft Exp $     */
+/*     $NetBSD: setterm.c,v 1.23 2000/05/19 01:05:44 mycroft Exp $     */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)setterm.c  8.8 (Berkeley) 10/25/94";
 #else
-__RCSID("$NetBSD: setterm.c,v 1.22 2000/04/29 00:50:05 mycroft Exp $");
+__RCSID("$NetBSD: setterm.c,v 1.23 2000/05/19 01:05:44 mycroft Exp $");
 #endif
 #endif /* not lint */
 
@@ -169,7 +169,7 @@
         * Test for cursor motion capability.
         *
         */
-       if (t_goto(_cursesi_genbuf, CM, 0, 0, cm_buff, 1023) < 0) {
+       if (t_goto(NULL, CM, 0, 0, cm_buff, 1023) < 0) {
                CA = 0;
                CM = 0;
        } else



Home | Main Index | Thread Index | Old Index