Module Name: src Committed By: kre Date: Tue Nov 16 23:23:02 UTC 2021
Modified Files: src/lib/libcurses: ins_wstr.c Log Message: Move 'i' into DEBUG only code (now there be three). Hopefully unbreaks !DEBUG builds. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/lib/libcurses/ins_wstr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libcurses/ins_wstr.c diff -u src/lib/libcurses/ins_wstr.c:1.19 src/lib/libcurses/ins_wstr.c:1.20 --- src/lib/libcurses/ins_wstr.c:1.19 Tue Nov 16 21:00:50 2021 +++ src/lib/libcurses/ins_wstr.c Tue Nov 16 23:23:02 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: ins_wstr.c,v 1.19 2021/11/16 21:00:50 blymn Exp $ */ +/* $NetBSD: ins_wstr.c,v 1.20 2021/11/16 23:23:02 kre Exp $ */ /* * Copyright (c) 2005 The NetBSD Foundation Inc. @@ -36,7 +36,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: ins_wstr.c,v 1.19 2021/11/16 21:00:50 blymn Exp $"); +__RCSID("$NetBSD: ins_wstr.c,v 1.20 2021/11/16 23:23:02 kre Exp $"); #endif /* not lint */ #include <string.h> @@ -135,7 +135,7 @@ wins_nwstr(WINDOW *win, const wchar_t *w const wchar_t *scp; cchar_t cc; wchar_t *lstr, *slstr; - int i, width, len, lx, sx, x, y, tx, ty, cw, pcw, newx, tn, w; + int width, len, lx, sx, x, y, tx, ty, cw, pcw, newx, tn, w; wchar_t ws[] = L" "; /* check for leading non-spacing character */ @@ -294,6 +294,8 @@ loopdone: *lnp->firstchp = newx; #ifdef DEBUG { + int i; + __CTRACE(__CTRACE_INPUT, "========before=======\n"); for (i = 0; i < win->maxx; i++) __CTRACE(__CTRACE_INPUT, @@ -334,6 +336,8 @@ loopdone: } #ifdef DEBUG { + int i; + __CTRACE(__CTRACE_INPUT, "=====after shift====\n"); for (i = 0; i < win->maxx; i++) __CTRACE(__CTRACE_INPUT, @@ -363,6 +367,8 @@ loopdone: #ifdef DEBUG { + int i; + __CTRACE(__CTRACE_INPUT, "lx = %d, x = %x\n", lx, x); __CTRACE(__CTRACE_INPUT, "========after=======\n"); for (i = 0; i < win->maxx; i++)