version 1.221, 2014/07/02 13:10:45 |
version 1.223, 2014/07/02 20:19:11 |
Line 1668 ebool(struct mdoc *mdoc) |
|
Line 1668 ebool(struct mdoc *mdoc) |
|
{ |
{ |
|
|
if (NULL == mdoc->last->child) { |
if (NULL == mdoc->last->child) { |
mdoc_nmsg(mdoc, mdoc->last, MANDOCERR_MACROEMPTY); |
if (MDOC_Sm == mdoc->last->tok) |
mdoc_node_delete(mdoc, mdoc->last); |
mdoc->flags ^= MDOC_SMOFF; |
return(1); |
return(1); |
} |
} |
check_count(mdoc, MDOC_ELEM, CHECK_WARN, CHECK_EQ, 1); |
|
|
|
|
check_count(mdoc, MDOC_ELEM, CHECK_WARN, CHECK_LT, 2); |
|
|
assert(MDOC_TEXT == mdoc->last->child->type); |
assert(MDOC_TEXT == mdoc->last->child->type); |
|
|
if (0 == strcmp(mdoc->last->child->string, "on")) { |
if (0 == strcmp(mdoc->last->child->string, "on")) { |
Line 1728 post_st(POST_ARGS) |
|
Line 1729 post_st(POST_ARGS) |
|
const char *p; |
const char *p; |
|
|
if (NULL == (ch = mdoc->last->child)) { |
if (NULL == (ch = mdoc->last->child)) { |
mdoc_nmsg(mdoc, mdoc->last, MANDOCERR_MACROEMPTY); |
mandoc_msg(MANDOCERR_MACRO_EMPTY, mdoc->parse, |
|
mdoc->last->line, mdoc->last->pos, |
|
mdoc_macronames[mdoc->last->tok]); |
mdoc_node_delete(mdoc, mdoc->last); |
mdoc_node_delete(mdoc, mdoc->last); |
return(1); |
return(1); |
} |
} |