If DEBUG is defined, then fill numeric fields with asterisks instead of

spaces and numbers for temporary(?) debugging.
This commit is contained in:
Bruce Evans 2006-04-30 05:54:21 +00:00
parent e1300711b8
commit 43f2757a27
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158168

View File

@ -696,6 +696,11 @@ putint(n, l, lc, w)
char b[128];
move(l, lc);
#ifdef DEBUG
while (w-- > 0)
addch('*');
return;
#endif
if (n == 0) {
while (w-- > 0)
addch(' ');
@ -723,6 +728,11 @@ putfloat(f, l, lc, w, d, nz)
char b[128];
move(l, lc);
#ifdef DEBUG
while (--w >= 0)
addch('*');
return;
#endif
if (nz && f == 0.0) {
while (--w >= 0)
addch(' ');
@ -748,6 +758,11 @@ putlongdouble(f, l, lc, w, d, nz)
char b[128];
move(l, lc);
#ifdef DEBUG
while (--w >= 0)
addch('*');
return;
#endif
if (nz && f == 0.0) {
while (--w >= 0)
addch(' ');