summaryrefslogtreecommitdiffstats
path: root/private.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-09 17:09:12 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-09 17:09:12 +0000
commite7ff9604055db4b313427625036e15953beaaebc (patch)
tree09f5427972b1b8933cc9cb76e2da40aedcd5dd5d /private.h
parentd11be70aced0438a57958154b9abf75c30743b39 (diff)
downloadmandoc-e7ff9604055db4b313427625036e15953beaaebc.tar.gz
Considerable clean-ups.
Diffstat (limited to 'private.h')
-rw-r--r--private.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/private.h b/private.h
index 8c5f375c..029a83fe 100644
--- a/private.h
+++ b/private.h
@@ -22,6 +22,8 @@
#include <stdio.h>
#include <time.h>
+#include "libmdocml.h"
+
struct md_rbuf {
int fd; /* Open descriptor. */
char *name; /* Name of file. */
@@ -269,6 +271,18 @@ enum roffmsec {
ROFF_MSEC_MAX
};
+enum roffatt {
+ ROFF_ATT_V1,
+ ROFF_ATT_V2,
+ ROFF_ATT_V3,
+ ROFF_ATT_V6,
+ ROFF_ATT_V7,
+ ROFF_ATT_32V,
+ ROFF_ATT_V_1,
+ ROFF_ATT_V_4,
+ ROFF_ATT_MAX
+};
+
#define ROFFSec_NMASK (0x07)
#define ROFFSec_NAME (1 << 0)
@@ -289,7 +303,7 @@ enum roffmsec {
#define ROFFSec_OTHER (1 << 15)
struct roffcb {
- void (*roffmsg)(void *, enum roffmsg,
+ int (*roffmsg)(void *, enum roffmsg,
const char *, const char *, const char *);
int (*roffhead)(void *, const struct tm *, const char *,
const char *, enum roffmsec, const char *);
@@ -336,6 +350,14 @@ int roff_free(struct rofftree *, int);
int rofftok_scan(const char *, int *);
+char *roff_literal(int, const int *,
+ const char **, const char **);
+char *roff_fmtstring(int);
+char *roff_msecname(enum roffmsec);
+enum roffmsec roff_msec(const char *);
+int roff_sec(const char **);
+enum roffatt roff_att(const char *);
+
__END_DECLS
#endif /*!PRIVATE_H*/