summaryrefslogtreecommitdiffstatshomepage
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
commit47680c1fd7fef419b02b46cda50beec3dc16deaa (patch)
tree484df90234169b6795827212f1f47cfbec3dc9ea /private.h
parent53ac84f9955e56e68c7affccf17d5ab802100b49 (diff)
downloadmandoc-47680c1fd7fef419b02b46cda50beec3dc16deaa.tar.gz
mandoc-47680c1fd7fef419b02b46cda50beec3dc16deaa.tar.zst
mandoc-47680c1fd7fef419b02b46cda50beec3dc16deaa.zip
Added regression tests.
Considerable fixes... blah blah blah...
Diffstat (limited to 'private.h')
-rw-r--r--private.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/private.h b/private.h
index b55c6d7b..8e0a5d45 100644
--- a/private.h
+++ b/private.h
@@ -1,4 +1,4 @@
-/* $Id: private.h,v 1.7 2008/11/25 16:49:57 kristaps Exp $ */
+/* $Id: private.h,v 1.8 2008/11/26 16:50:34 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);