=================================================================== RCS file: /cvs/mandoc/mdoc.c,v retrieving revision 1.232 retrieving revision 1.235 diff -u -p -r1.232 -r1.235 --- mandoc/mdoc.c 2014/11/28 04:47:03 1.232 +++ mandoc/mdoc.c 2015/02/02 04:26:44 1.235 @@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.232 2014/11/28 04:47:03 schwarze Exp $ */ +/* $Id: mdoc.c,v 1.235 2015/02/02 04:26:44 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze @@ -190,15 +190,14 @@ mdoc_alloc(struct roff *roff, struct mparse *parse, return(p); } -int +void mdoc_endparse(struct mdoc *mdoc) { mdoc_macroend(mdoc); - return(1); } -int +void mdoc_addeqn(struct mdoc *mdoc, const struct eqn *ep) { struct mdoc_node *n; @@ -209,10 +208,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 +219,6 @@ mdoc_addspan(struct mdoc *mdoc, const struct tbl_span n->span = sp; node_append(mdoc, n); mdoc->next = MDOC_NEXT_SIBLING; - return(1); } /* @@ -417,7 +414,7 @@ mdoc_body_alloc(struct mdoc *mdoc, int line, int pos, return(p); } -void +struct mdoc_node * mdoc_endbody_alloc(struct mdoc *mdoc, int line, int pos, enum mdoct tok, struct mdoc_node *body, enum mdoc_endbody end) { @@ -429,6 +426,7 @@ mdoc_endbody_alloc(struct mdoc *mdoc, int line, int po p->end = end; node_append(mdoc, p); mdoc->next = MDOC_NEXT_SIBLING; + return(p); } struct mdoc_node *