summaryrefslogtreecommitdiffstats
path: root/ml.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-10 00:52:46 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-10 00:52:46 +0000
commit14b766df0d1ee7f25fafdd5aafafb9f03d3f0488 (patch)
treefd4e8d52ac28c902aff3985b63cef09c9b9d24e9 /ml.h
parent5181e986114c18c409bb0b17c01aa4306c15c24e (diff)
downloadmandoc-14b766df0d1ee7f25fafdd5aafafb9f03d3f0488.tar.gz
*** empty log message ***
Diffstat (limited to 'ml.h')
-rw-r--r--ml.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/ml.h b/ml.h
index 621049c3..29794c72 100644
--- a/ml.h
+++ b/ml.h
@@ -19,6 +19,13 @@
#ifndef ML_H
#define ML_H
+#include "private.h"
+
+#define COLUMNS 72
+#define INDENT_SZ 4
+#define INDENT(x) ((x) > MAXINDENT ? MAXINDENT : (x))
+#define MAXINDENT 10
+
struct md_mlg;
enum md_ns {
@@ -29,6 +36,11 @@ enum md_ns {
MD_NS_DEFAULT,
};
+enum ml_scope {
+ ML_OPEN,
+ ML_CLOSE
+};
+
struct ml_cbs {
int (*ml_begin)(struct md_mbuf *,
const struct md_args *,
@@ -66,12 +78,16 @@ int ml_puts(struct md_mbuf *, const char *, size_t *);
int ml_putchars(struct md_mbuf *,
char, size_t, size_t *);
+/* FIXME: move into mlg.h or private.h. */
struct md_mlg *mlg_alloc(const struct md_args *,
const struct md_rbuf *, struct md_mbuf *,
const struct ml_cbs *);
int mlg_exit(struct md_mlg *, int);
int mlg_line(struct md_mlg *, char *);
+int ml_tagput(struct md_mbuf *,
+ enum ml_scope, const char *, size_t *);
+
__END_DECLS
#endif /*!ML_H*/