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 | 1b9dca418446d812ce8b3ff05f4f025f26435c06 (patch) | |
tree | d9816c40a020031e51cf33a63437c85839cee800 /mdoc.c | |
parent | 5ad0aed9e9f0fee4047fe0f4b00f3f0f0204f233 (diff) | |
download | mandoc-1b9dca418446d812ce8b3ff05f4f025f26435c06.tar.gz mandoc-1b9dca418446d812ce8b3ff05f4f025f26435c06.tar.zst mandoc-1b9dca418446d812ce8b3ff05f4f025f26435c06.zip |
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 | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.232 2014/11/28 04:47:03 schwarze Exp $ */ +/* $Id: mdoc.c,v 1.233 2014/11/28 06:27:05 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -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); } /* |