version 1.85, 2010/05/30 11:00:53 |
version 1.87, 2010/05/30 22:56:02 |
Line 747 post_dt(POST_ARGS) |
|
Line 747 post_dt(POST_ARGS) |
|
|
|
if (NULL != (nn = mdoc->last->child)) |
if (NULL != (nn = mdoc->last->child)) |
for (p = nn->string; *p; p++) { |
for (p = nn->string; *p; p++) { |
if ( ! isalpha((u_char)*p)) |
if (toupper((u_char)*p) == *p) |
continue; |
continue; |
if (isupper((u_char)*p)) |
|
continue; |
|
if ( ! mdoc_nmsg(mdoc, nn, MANDOCERR_UPPERCASE)) |
if ( ! mdoc_nmsg(mdoc, nn, MANDOCERR_UPPERCASE)) |
return(0); |
return(0); |
break; |
break; |
Line 930 post_an(POST_ARGS) |
|
Line 928 post_an(POST_ARGS) |
|
static int |
static int |
post_it(POST_ARGS) |
post_it(POST_ARGS) |
{ |
{ |
|
/* FIXME: use mdoc_list! */ |
int type, i, cols; |
int type, i, cols; |
struct mdoc_node *n, *c; |
struct mdoc_node *n, *c; |
|
|
Line 1019 post_it(POST_ARGS) |
|
Line 1018 post_it(POST_ARGS) |
|
return(0); |
return(0); |
break; |
break; |
case (MDOC_Column): |
case (MDOC_Column): |
if (NULL == mdoc->last->head->child) |
assert(NULL == mdoc->last->head->child); |
if ( ! mdoc_nmsg(mdoc, mdoc->last, MANDOCERR_NOARGS)) |
if (NULL == mdoc->last->body->child) |
|
if ( ! mdoc_nmsg(mdoc, mdoc->last, MANDOCERR_NOBODY)) |
return(0); |
return(0); |
if (mdoc->last->body->child) |
|
if ( ! mdoc_nmsg(mdoc, mdoc->last, MANDOCERR_BODYLOST)) |
/* Count up the number of columns. */ |
return(0); |
|
c = mdoc->last->child; |
c = mdoc->last->child; |
for (i = 0; c && MDOC_HEAD == c->type; c = c->next) |
for (i = 0; c; c = c->next) |
i++; |
if (MDOC_BODY == c->type) |
|
i++; |
|
|
if (i < cols) { |
if (i < cols) { |
if ( ! mdoc_vmsg(mdoc, MANDOCERR_ARGCOUNT, |
if ( ! mdoc_vmsg(mdoc, MANDOCERR_ARGCOUNT, |