From: Eric S. Raymond Date: Mon, 7 Nov 1994 03:32:45 +0000 (+0000) Subject: Regularize the output code. X-Git-Tag: 1-2~65 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=4988bd347722faf79049fa831b21b7711c6aa6b2;p=cupl.git Regularize the output code. --- diff --git a/monitor.c b/monitor.c index 7727467..a419008 100644 --- a/monitor.c +++ b/monitor.c @@ -126,18 +126,15 @@ void cupl_reset_write() void cupl_eol_write(void) { - if (used != linewidth) - (void) putchar('\n'); + (void) putchar('\n'); + used = 0; } static void needspace(int w) /* emit a LF if there are not more than w spaces left on the line */ { if (used + w >= linewidth) - { - (void) putchar('\n'); - used = 0; - } + cupl_eol_write(); else used += w; }