summaryrefslogtreecommitdiffstats
path: root/private.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-08 16:29:57 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-08 16:29:57 +0000
commit2cf6c3e0cc5c2b88c77c74a4b882f175a4ade7d1 (patch)
tree0bc61456c3c8d007ee0519f53e5e20dae79ffeb9 /private.h
parentc450c948a71ae4f6bbc35141cfdc41d3ae0775ba (diff)
downloadmandoc-2cf6c3e0cc5c2b88c77c74a4b882f175a4ade7d1.tar.gz
*** empty log message ***
Diffstat (limited to 'private.h')
-rw-r--r--private.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/private.h b/private.h
index 109417cb..8c5f375c 100644
--- a/private.h
+++ b/private.h
@@ -19,6 +19,7 @@
#ifndef PRIVATE_H
#define PRIVATE_H
+#include <stdio.h>
#include <time.h>
struct md_rbuf {
@@ -27,6 +28,8 @@ struct md_rbuf {
char *buf; /* Buffer. */
size_t bufsz; /* Size of buffer. */
size_t line; /* Current line number. */
+#define MD_LINE (BUFSIZ)
+ char linebuf[MD_LINE];
};
struct md_mbuf {
@@ -266,6 +269,25 @@ enum roffmsec {
ROFF_MSEC_MAX
};
+#define ROFFSec_NMASK (0x07)
+
+#define ROFFSec_NAME (1 << 0)
+#define ROFFSec_SYNOP (1 << 1)
+#define ROFFSec_DESC (1 << 2)
+#define ROFFSec_RETVAL (1 << 3)
+#define ROFFSec_ENV (1 << 4)
+#define ROFFSec_FILES (1 << 5)
+#define ROFFSec_EX (1 << 6)
+#define ROFFSec_DIAG (1 << 7)
+#define ROFFSec_ERRS (1 << 8)
+#define ROFFSec_SEEALSO (1 << 9)
+#define ROFFSec_STAND (1 << 10)
+#define ROFFSec_HIST (1 << 11)
+#define ROFFSec_AUTH (1 << 12)
+#define ROFFSec_CAVEATS (1 << 13)
+#define ROFFSec_BUGS (1 << 14)
+#define ROFFSec_OTHER (1 << 15)
+
struct roffcb {
void (*roffmsg)(void *, enum roffmsg,
const char *, const char *, const char *);