diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-11-28 06:27:05 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-11-28 06:27:05 +0000 |
commit | b7ed451bab9b712963df52a4f4ea0783fa4941d7 (patch) | |
tree | 5fb21a5e9b0f03fbe26d8bec4debbf45ca34578a /mdoc.c | |
parent | cfd12f597e8f3e9e5acc3bfbeeef43065481d942 (diff) | |
download | mandoc-b7ed451bab9b712963df52a4f4ea0783fa4941d7.tar.gz |
Simplify by making the eqn and tbl steering functions void;
no functional change, minus 15 lines of code.
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -198,7 +198,7 @@ mdoc_endparse(struct mdoc *mdoc) return(1); } -int +void mdoc_addeqn(struct mdoc *mdoc, const struct eqn *ep) { struct mdoc_node *n; @@ -209,10 +209,9 @@ mdoc_addeqn(struct mdoc *mdoc, const struct eqn *ep) n->flags |= MDOC_LINE; node_append(mdoc, n); mdoc->next = MDOC_NEXT_SIBLING; - return(1); } -int +void mdoc_addspan(struct mdoc *mdoc, const struct tbl_span *sp) { struct mdoc_node *n; @@ -221,7 +220,6 @@ mdoc_addspan(struct mdoc *mdoc, const struct tbl_span *sp) n->span = sp; node_append(mdoc, n); mdoc->next = MDOC_NEXT_SIBLING; - return(1); } /* |