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 /man.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 'man.c')
-rw-r--r-- | man.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.144 2014/11/28 05:51:32 schwarze Exp $ */ +/* $Id: man.c,v 1.145 2014/11/28 06:27:05 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -317,7 +317,7 @@ man_node_delete(struct man *man, struct man_node *p) man_node_free(p); } -int +void man_addeqn(struct man *man, const struct eqn *ep) { struct man_node *n; @@ -329,10 +329,9 @@ man_addeqn(struct man *man, const struct eqn *ep) man_node_append(man, n); man->next = MAN_NEXT_SIBLING; man_descope(man, ep->ln, ep->pos); - return(1); } -int +void man_addspan(struct man *man, const struct tbl_span *sp) { struct man_node *n; @@ -342,7 +341,6 @@ man_addspan(struct man *man, const struct tbl_span *sp) man_node_append(man, n); man->next = MAN_NEXT_SIBLING; man_descope(man, sp->line, 0); - return(1); } static void |