diff options
author | 2014-11-28 04:46:30 +0000 | |
---|---|---|
committer | 2014-11-28 04:46:30 +0000 | |
commit | 07f8b160d06743df934a293285b048338a89addd (patch) | |
tree | 3f49bd7df3d4743addf0e16369008f36501062e7 /usr.bin/mandoc/libmdoc.h | |
parent | Simplify the code by making various mdoc parser helper functions void. (diff) | |
download | wireguard-openbsd-07f8b160d06743df934a293285b048338a89addd.tar.xz wireguard-openbsd-07f8b160d06743df934a293285b048338a89addd.zip |
Simplify by making the mdoc parser callbacks void, and some cleanup;
no functional change, minus 50 lines of code.
Diffstat (limited to 'usr.bin/mandoc/libmdoc.h')
-rw-r--r-- | usr.bin/mandoc/libmdoc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mandoc/libmdoc.h b/usr.bin/mandoc/libmdoc.h index 6c8400ef03b..75b6640262d 100644 --- a/usr.bin/mandoc/libmdoc.h +++ b/usr.bin/mandoc/libmdoc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: libmdoc.h,v 1.62 2014/11/28 03:13:58 schwarze Exp $ */ +/* $OpenBSD: libmdoc.h,v 1.63 2014/11/28 04:46:30 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -54,7 +54,7 @@ struct mdoc { char *buf struct mdoc_macro { - int (*fp)(MACRO_PROT_ARGS); + void (*fp)(MACRO_PROT_ARGS); int flags; #define MDOC_CALLABLE (1 << 0) #define MDOC_PARSED (1 << 1) @@ -103,7 +103,7 @@ extern const struct mdoc_macro *const mdoc_macros; __BEGIN_DECLS -int mdoc_macro(MACRO_PROT_ARGS); +void mdoc_macro(MACRO_PROT_ARGS); void mdoc_word_alloc(struct mdoc *, int, int, const char *); void mdoc_word_append(struct mdoc *, const char *); void mdoc_elem_alloc(struct mdoc *, int, int, @@ -133,7 +133,7 @@ enum margserr mdoc_args(struct mdoc *, int, int *, char *, enum mdoct, char **); enum margserr mdoc_zargs(struct mdoc *, int, int *, char *, char **); -int mdoc_macroend(struct mdoc *); +void mdoc_macroend(struct mdoc *); enum mdelim mdoc_isdelim(const char *); __END_DECLS |