diff options
author | 2014-11-28 03:13:58 +0000 | |
---|---|---|
committer | 2014-11-28 03:13:58 +0000 | |
commit | f4086bd45509b22ed44dee2e9aadf36847143a8d (patch) | |
tree | ecbeb4a9991292bc1899cdf660ad3d7166a660d2 /usr.bin/mandoc/libmdoc.h | |
parent | Simplify code by making mdoc validation handlers void. (diff) | |
download | wireguard-openbsd-f4086bd45509b22ed44dee2e9aadf36847143a8d.tar.xz wireguard-openbsd-f4086bd45509b22ed44dee2e9aadf36847143a8d.zip |
Simplify the code by making various mdoc parser helper functions void.
No functional change, minus 130 lines of code.
Diffstat (limited to 'usr.bin/mandoc/libmdoc.h')
-rw-r--r-- | usr.bin/mandoc/libmdoc.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/usr.bin/mandoc/libmdoc.h b/usr.bin/mandoc/libmdoc.h index 6bd73981c25..6c8400ef03b 100644 --- a/usr.bin/mandoc/libmdoc.h +++ b/usr.bin/mandoc/libmdoc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: libmdoc.h,v 1.61 2014/11/28 01:05:40 schwarze Exp $ */ +/* $OpenBSD: libmdoc.h,v 1.62 2014/11/28 03:13:58 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -104,20 +104,19 @@ extern const struct mdoc_macro *const mdoc_macros; __BEGIN_DECLS int mdoc_macro(MACRO_PROT_ARGS); -int mdoc_word_alloc(struct mdoc *, - int, int, const char *); +void mdoc_word_alloc(struct mdoc *, int, int, const char *); void mdoc_word_append(struct mdoc *, const char *); -int mdoc_elem_alloc(struct mdoc *, int, int, +void mdoc_elem_alloc(struct mdoc *, int, int, enum mdoct, struct mdoc_arg *); -int mdoc_block_alloc(struct mdoc *, int, int, +struct mdoc_node *mdoc_block_alloc(struct mdoc *, int, int, enum mdoct, struct mdoc_arg *); -int mdoc_head_alloc(struct mdoc *, int, int, enum mdoct); -int mdoc_tail_alloc(struct mdoc *, int, int, enum mdoct); -int mdoc_body_alloc(struct mdoc *, int, int, enum mdoct); -int mdoc_endbody_alloc(struct mdoc *, int, int, enum mdoct, +struct mdoc_node *mdoc_head_alloc(struct mdoc *, int, int, enum mdoct); +void mdoc_tail_alloc(struct mdoc *, int, int, enum mdoct); +struct mdoc_node *mdoc_body_alloc(struct mdoc *, int, int, enum mdoct); +void mdoc_endbody_alloc(struct mdoc *, int, int, enum mdoct, struct mdoc_node *, enum mdoc_endbody); void mdoc_node_delete(struct mdoc *, struct mdoc_node *); -int mdoc_node_relink(struct mdoc *, struct mdoc_node *); +void mdoc_node_relink(struct mdoc *, struct mdoc_node *); void mdoc_hash_init(void); enum mdoct mdoc_hash_find(const char *); const char *mdoc_a2att(const char *); |