Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses Add a bit more debug.



details:   https://anonhg.NetBSD.org/src/rev/be91158aed94
branches:  trunk
changeset: 989892:be91158aed94
user:      blymn <blymn%NetBSD.org@localhost>
date:      Tue Oct 19 06:41:03 2021 +0000

description:
Add a bit more debug.

diffstat:

 lib/libcurses/addnstr.c |  5 +++--
 lib/libcurses/border.c  |  6 ++++--
 lib/libcurses/move.c    |  6 +++---
 lib/libcurses/newwin.c  |  6 ++++--
 4 files changed, 14 insertions(+), 9 deletions(-)

diffs (114 lines):

diff -r be58b521f88a -r be91158aed94 lib/libcurses/addnstr.c
--- a/lib/libcurses/addnstr.c   Tue Oct 19 06:37:29 2021 +0000
+++ b/lib/libcurses/addnstr.c   Tue Oct 19 06:41:03 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: addnstr.c,v 1.19 2021/09/06 07:45:48 rin Exp $ */
+/*     $NetBSD: addnstr.c,v 1.20 2021/10/19 06:41:03 blymn Exp $       */
 
 /*
  * Copyright (c) 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)addnstr.c  8.2 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: addnstr.c,v 1.19 2021/09/06 07:45:48 rin Exp $");
+__RCSID("$NetBSD: addnstr.c,v 1.20 2021/10/19 06:41:03 blymn Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -136,6 +136,7 @@
        const char *p;
 
        __CTRACE(__CTRACE_INPUT, "ADDNSTR: win %p, length %d\n", win, n);
+       __CTRACE(__CTRACE_INPUT, "ADDNSTR: string %s\n", s);
        /*
         * behavior changed from traditional BSD curses, for better XCURSES
         * conformance.
diff -r be58b521f88a -r be91158aed94 lib/libcurses/border.c
--- a/lib/libcurses/border.c    Tue Oct 19 06:37:29 2021 +0000
+++ b/lib/libcurses/border.c    Tue Oct 19 06:41:03 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: border.c,v 1.20 2021/09/06 07:45:48 rin Exp $  */
+/*     $NetBSD: border.c,v 1.21 2021/10/19 06:41:03 blymn Exp $        */
 
 /*
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: border.c,v 1.20 2021/09/06 07:45:48 rin Exp $");
+__RCSID("$NetBSD: border.c,v 1.21 2021/10/19 06:41:03 blymn Exp $");
 #endif                         /* not lint */
 
 #include <stdlib.h>
@@ -87,6 +87,7 @@
        if (!(botright & __CHARTEXT))
                botright |= ACS_LRCORNER;
 
+       __CTRACE(__CTRACE_INPUT, "wborder: window 0x%p\n", win);
        __CTRACE(__CTRACE_INPUT, "wborder: left = %c, 0x%x\n",
            left & __CHARTEXT, left & __ATTRIBUTES);
        __CTRACE(__CTRACE_INPUT, "wborder: right = %c, 0x%x\n",
@@ -237,6 +238,7 @@
        else
                memcpy(&botright, WACS_LRCORNER, sizeof(cchar_t));
 
+       __CTRACE(__CTRACE_INPUT, "wborder_set: window 0x%p\n", win);
        __CTRACE(__CTRACE_INPUT, "wborder_set: left = %c, 0x%x\n",
            left.vals[0], left.attributes );
        __CTRACE(__CTRACE_INPUT, "wborder_set: right = %c, 0x%x\n",
diff -r be58b521f88a -r be91158aed94 lib/libcurses/move.c
--- a/lib/libcurses/move.c      Tue Oct 19 06:37:29 2021 +0000
+++ b/lib/libcurses/move.c      Tue Oct 19 06:41:03 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: move.c,v 1.22 2021/09/06 07:03:50 rin Exp $    */
+/*     $NetBSD: move.c,v 1.23 2021/10/19 06:41:03 blymn Exp $  */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)move.c     8.2 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: move.c,v 1.22 2021/09/06 07:03:50 rin Exp $");
+__RCSID("$NetBSD: move.c,v 1.23 2021/10/19 06:41:03 blymn Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -62,7 +62,7 @@
 int
 wmove(WINDOW *win, int y, int x)
 {
-       __CTRACE(__CTRACE_MISC, "wmove: (%d, %d)\n", y, x);
+       __CTRACE(__CTRACE_MISC, "wmove: win %p, (%d, %d)\n", win, y, x);
        if (x < 0 || y < 0)
                return ERR;
        if (x >= win->maxx || y >= win->maxy)
diff -r be58b521f88a -r be91158aed94 lib/libcurses/newwin.c
--- a/lib/libcurses/newwin.c    Tue Oct 19 06:37:29 2021 +0000
+++ b/lib/libcurses/newwin.c    Tue Oct 19 06:41:03 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: newwin.c,v 1.62 2021/09/07 01:23:09 rin Exp $  */
+/*     $NetBSD: newwin.c,v 1.63 2021/10/19 06:41:03 blymn Exp $        */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)newwin.c   8.3 (Berkeley) 7/27/94";
 #else
-__RCSID("$NetBSD: newwin.c,v 1.62 2021/09/07 01:23:09 rin Exp $");
+__RCSID("$NetBSD: newwin.c,v 1.63 2021/10/19 06:41:03 blymn Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -365,6 +365,8 @@
                win->smaxx = 0;
        } else
                __swflags(win);
+       __CTRACE(__CTRACE_WINDOW, "makenew: sub = %d\n", sub);
+       __CTRACE(__CTRACE_WINDOW, "makenew: ispad = %d\n", ispad);
        __CTRACE(__CTRACE_WINDOW, "makenew: win->wattr = %08x\n", win->wattr);
        __CTRACE(__CTRACE_WINDOW, "makenew: win->flags = %#.4x\n", win->flags);
        __CTRACE(__CTRACE_WINDOW, "makenew: win->maxy = %d\n", win->maxy);



Home | Main Index | Thread Index | Old Index