version 1.109, 2009/10/22 18:19:36 |
version 1.110, 2009/10/24 06:19:34 |
|
|
term_flushln(struct termp *p) |
term_flushln(struct termp *p) |
{ |
{ |
int i, j; |
int i, j; |
size_t vbl, vsz, vis, maxvis, mmax, bp, os; |
size_t vbl, vsz, vis, maxvis, mmax, bp; |
static int overstep = 0; |
static int overstep = 0; |
|
|
/* |
/* |
Line 143 term_flushln(struct termp *p) |
|
Line 143 term_flushln(struct termp *p) |
|
assert(p->offset < p->rmargin); |
assert(p->offset < p->rmargin); |
assert((int)(p->rmargin - p->offset) - overstep > 0); |
assert((int)(p->rmargin - p->offset) - overstep > 0); |
|
|
/* Save the overstep. */ |
|
os = (size_t)overstep; |
|
|
|
maxvis = /* LINTED */ |
maxvis = /* LINTED */ |
p->rmargin - p->offset - overstep; |
p->rmargin - p->offset - overstep; |
mmax = /* LINTED */ |
mmax = /* LINTED */ |
Line 153 term_flushln(struct termp *p) |
|
Line 150 term_flushln(struct termp *p) |
|
|
|
bp = TERMP_NOBREAK & p->flags ? mmax : maxvis; |
bp = TERMP_NOBREAK & p->flags ? mmax : maxvis; |
vis = 0; |
vis = 0; |
overstep = 0; |
|
|
|
/* |
/* |
* If in the standard case (left-justified), then begin with our |
* If in the standard case (left-justified), then begin with our |
Line 208 term_flushln(struct termp *p) |
|
Line 204 term_flushln(struct termp *p) |
|
vis = 0; |
vis = 0; |
} |
} |
/* Remove the overstep width. */ |
/* Remove the overstep width. */ |
bp += os; |
bp += overstep; |
os = 0; |
overstep = 0; |
} else { |
} else { |
for (j = 0; j < (int)vbl; j++) |
for (j = 0; j < (int)vbl; j++) |
putchar(' '); |
putchar(' '); |
Line 233 term_flushln(struct termp *p) |
|
Line 229 term_flushln(struct termp *p) |
|
return; |
return; |
} |
} |
|
|
|
overstep = 0; |
if (TERMP_HANG & p->flags) { |
if (TERMP_HANG & p->flags) { |
/* We need one blank after the tag. */ |
/* We need one blank after the tag. */ |
overstep = /* LINTED */ |
overstep = /* LINTED */ |