diff options
Diffstat (limited to 'ml.h')
-rw-r--r-- | ml.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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*/ |