summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-11-28 06:27:05 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-11-28 06:27:05 +0000
commitb7ed451bab9b712963df52a4f4ea0783fa4941d7 (patch)
tree5fb21a5e9b0f03fbe26d8bec4debbf45ca34578a /mdoc.c
parentcfd12f597e8f3e9e5acc3bfbeeef43065481d942 (diff)
downloadmandoc-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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mdoc.c b/mdoc.c
index 88a8fe16..65368f2d 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -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);
}
/*