version 1.196, 2013/10/06 22:46:15 |
version 1.197, 2013/10/21 23:47:58 |
Line 1674 ebool(struct mdoc *mdoc) |
|
Line 1674 ebool(struct mdoc *mdoc) |
|
|
|
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")) { |
|
if (MDOC_Sm == mdoc->last->tok) |
|
mdoc->flags &= ~MDOC_SMOFF; |
return(1); |
return(1); |
if (0 == strcmp(mdoc->last->child->string, "off")) |
} |
|
if (0 == strcmp(mdoc->last->child->string, "off")) { |
|
if (MDOC_Sm == mdoc->last->tok) |
|
mdoc->flags |= MDOC_SMOFF; |
return(1); |
return(1); |
|
} |
|
|
mdoc_nmsg(mdoc, mdoc->last, MANDOCERR_BADBOOL); |
mdoc_nmsg(mdoc, mdoc->last, MANDOCERR_BADBOOL); |
return(1); |
return(1); |