version 1.32, 2009/03/04 14:41:40 |
version 1.33, 2009/03/05 13:12:12 |
Line 287 flushln(struct termp *p) |
|
Line 287 flushln(struct termp *p) |
|
|
|
/* LINTED */ |
/* LINTED */ |
for (j = i, vsz = 0; j < p->col; j++) { |
for (j = i, vsz = 0; j < p->col; j++) { |
if (isspace((int)p->buf[j])) |
if (isspace((u_char)p->buf[j])) |
break; |
break; |
else if (27 == p->buf[j]) { |
else if (27 == p->buf[j]) { |
assert(j + 4 <= p->col); |
assert(j + 4 <= p->col); |
Line 334 flushln(struct termp *p) |
|
Line 334 flushln(struct termp *p) |
|
*/ |
*/ |
|
|
for ( ; i < p->col; i++) { |
for ( ; i < p->col; i++) { |
if (isspace((int)p->buf[i])) |
if (isspace((u_char)p->buf[i])) |
break; |
break; |
putchar(p->buf[i]); |
putchar(p->buf[i]); |
} |
} |
Line 437 word(struct termp *p, const char *word) |
|
Line 437 word(struct termp *p, const char *word) |
|
|
|
/* LINTED */ |
/* LINTED */ |
for (j = i = 0; i < len; i++) { |
for (j = i = 0; i < len; i++) { |
if ( ! isspace((int)word[i])) { |
if ( ! isspace((u_char)word[i])) { |
j++; |
j++; |
continue; |
continue; |
} |
} |
|
|
/* Escaped spaces don't delimit... */ |
/* Escaped spaces don't delimit... */ |
if (i > 0 && isspace((int)word[i]) && |
if (i > 0 && isspace((u_char)word[i]) && |
'\\' == word[i - 1]) { |
'\\' == word[i - 1]) { |
j++; |
j++; |
continue; |
continue; |
Line 649 header(struct termp *p, const struct mdoc_meta *meta) |
|
Line 649 header(struct termp *p, const struct mdoc_meta *meta) |
|
meta->title, pp ? pp : ""); |
meta->title, pp ? pp : ""); |
|
|
for (bufp = title; *bufp; bufp++) |
for (bufp = title; *bufp; bufp++) |
*bufp = toupper(*bufp); |
*bufp = toupper((u_char)*bufp); |
|
|
p->offset = 0; |
p->offset = 0; |
p->rmargin = (p->maxrmargin - strlen(buf)) / 2; |
p->rmargin = (p->maxrmargin - strlen(buf)) / 2; |