summaryrefslogtreecommitdiffstats
path: root/libmdoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-11-28 04:47:03 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-11-28 04:47:03 +0000
commit51a396af44d32fdbef128c7cabfded8bd9c8cf32 (patch)
treebe4220097a61525a7cf35fb755e146befb5dda8c /libmdoc.h
parentcd2da2e154b1769e7e7c7149764398901662008e (diff)
downloadmandoc-51a396af44d32fdbef128c7cabfded8bd9c8cf32.tar.gz
Simplify by making the mdoc parser callbacks void, and some cleanup;
no functional change, minus 50 lines of code.
Diffstat (limited to 'libmdoc.h')
-rw-r--r--libmdoc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmdoc.h b/libmdoc.h
index f52204b0..4b36f5cf 100644
--- a/libmdoc.h
+++ b/libmdoc.h
@@ -56,7 +56,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)
@@ -105,7 +105,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,
@@ -135,7 +135,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