summaryrefslogtreecommitdiffstats
path: root/private.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-11-26 16:50:34 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-11-26 16:50:34 +0000
commit0b18af17c9504e4688a2bbd1cbd2d1ca2b937d67 (patch)
treed1d7475d441e097a3ba6571612ab4bbc7cd2cc93 /private.h
parent984f70eeb4b5c4ef5ae5b30cf3ebda2c8e350d10 (diff)
downloadmandoc-0b18af17c9504e4688a2bbd1cbd2d1ca2b937d67.tar.gz
Added regression tests.
Considerable fixes... blah blah blah...
Diffstat (limited to 'private.h')
-rw-r--r--private.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/private.h b/private.h
index 192e74cb..dd486882 100644
--- a/private.h
+++ b/private.h
@@ -162,10 +162,16 @@ extern const char *const *tokargnames;
/* FIXME: have a md_roff with all necessary parameters. */
-typedef int (*roffin)(int, int *, char **);
-typedef int (*roffout)(int);
-typedef int (*roffblkin)(int);
-typedef int (*roffblkout)(int);
+/* FIXME: have roffbegin and roffend for doc head/foot. */
+
+struct roffcb {
+ int (*roffhead)(void);
+ int (*rofftail)(void);
+ int (*roffin)(int, int *, char **);
+ int (*roffout)(int);
+ int (*roffblkin)(int);
+ int (*roffblkout)(int);
+};
__BEGIN_DECLS
@@ -192,7 +198,7 @@ struct rofftree;
struct rofftree *roff_alloc(const struct md_args *,
struct md_mbuf *, const struct md_rbuf *,
- roffin, roffout, roffblkin, roffblkout);
+ const struct roffcb *);
int roff_engine(struct rofftree *, char *, size_t);
int roff_free(struct rofftree *, int);