summaryrefslogtreecommitdiffstatshomepage
path: root/private.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-11-28 15:25:49 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-11-28 15:25:49 +0000
commita92eb03490ddb10755d39b4006afdfee3ba71b67 (patch)
tree4b5cb1f655a0153bd6117e4e079909fe2a022753 /private.h
parent150a3223f299b39b75bd39a9f1dea3ee0193bb63 (diff)
downloadmandoc-a92eb03490ddb10755d39b4006afdfee3ba71b67.tar.gz
mandoc-a92eb03490ddb10755d39b4006afdfee3ba71b67.tar.zst
mandoc-a92eb03490ddb10755d39b4006afdfee3ba71b67.zip
Removed superfluous structures from rofftree.
Added roffdata for generalised text processing.
Diffstat (limited to 'private.h')
-rw-r--r--private.h26
1 files changed, 12 insertions, 14 deletions
diff --git a/private.h b/private.h
index 47691ba6..eb32c8fd 100644
--- a/private.h
+++ b/private.h
@@ -1,4 +1,4 @@
-/* $Id: private.h,v 1.14 2008/11/28 11:21:12 kristaps Exp $ */
+/* $Id: private.h,v 1.15 2008/11/28 15:25:49 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -209,16 +209,16 @@ extern const char *const *tokargnames;
enum roffmsg { ROFF_WARN, ROFF_ERROR };
struct roffcb {
- void (*roffmsg)(const struct md_args *, enum roffmsg,
- const char *, const char *, const char *,
- int, char *);
- int (*roffhead)(const struct md_args *);
- int (*rofftail)(const struct md_args *);
- int (*roffin)(const struct md_args *, int, int *, char **);
- int (*roffout)(const struct md_args *, int);
- int (*roffblkin)(const struct md_args *, int);
- int (*roffblkout)(const struct md_args *, int);
- int (*roffspecial)(const struct md_args *, int);
+ void (*roffmsg)(void *, enum roffmsg,
+ const char *, const char *, char *);
+ int (*roffhead)(void *);
+ int (*rofftail)(void *);
+ int (*roffin)(void *, int, int *, char **);
+ int (*roffdata)(void *, const char *);
+ int (*roffout)(void *, int);
+ int (*roffblkin)(void *, int);
+ int (*roffblkout)(void *, int);
+ int (*roffspecial)(void *, int);
};
__BEGIN_DECLS
@@ -244,9 +244,7 @@ int md_buf_putstring(struct md_mbuf *, const char *);
struct rofftree;
-struct rofftree *roff_alloc(const struct md_args *,
- struct md_mbuf *, const struct md_rbuf *,
- const struct roffcb *);
+struct rofftree *roff_alloc(const struct roffcb *, void *);
int roff_engine(struct rofftree *, char *, size_t);
int roff_free(struct rofftree *, int);