diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-11-28 04:46:31 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-11-28 04:46:31 +0000 |
commit | 2c0d86f1edee3da18b5a7c30c605033bf46df75c (patch) | |
tree | 58f9e450bc29062e602179c83c76d87448f74d88 /usr.bin/mandoc/libmdoc.h | |
parent | 0295df88fd0c6fc55b3ec0f80044ef6b903f87ba (diff) |
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 |