summaryrefslogtreecommitdiffstatshomepage
path: root/ml.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-10 17:31:57 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-10 17:31:57 +0000
commit1b8d9fa897a46e8f13fd5cda411e2cd8baf7b7bd (patch)
tree1777bf63c278271839ab612ae6bc852f13278b30 /ml.h
parent0352e599c3efdcd2b079643546cf8856b88470f4 (diff)
downloadmandoc-1b8d9fa897a46e8f13fd5cda411e2cd8baf7b7bd.tar.gz
mandoc-1b8d9fa897a46e8f13fd5cda411e2cd8baf7b7bd.tar.zst
mandoc-1b8d9fa897a46e8f13fd5cda411e2cd8baf7b7bd.zip
*** empty log message ***
Diffstat (limited to 'ml.h')
-rw-r--r--ml.h33
1 files changed, 15 insertions, 18 deletions
diff --git a/ml.h b/ml.h
index 9dbc45b3..4d725f80 100644
--- a/ml.h
+++ b/ml.h
@@ -1,4 +1,4 @@
-/* $Id: ml.h,v 1.15 2008/12/10 12:09:47 kristaps Exp $ */
+/* $Id: ml.h,v 1.16 2008/12/10 17:31:57 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -41,29 +41,27 @@ enum ml_scope {
ML_CLOSE
};
+struct ml_args {
+ const struct md_args *args;
+ const struct md_rbuf *rbuf;
+ struct md_mbuf *mbuf;
+ int section;
+ void *data;
+};
+
struct ml_cbs {
- int (*ml_begin)(struct md_mbuf *,
- const struct md_args *,
- const struct tm *,
+ int (*ml_begin)(struct ml_args *, const struct tm *,
const char *, const char *,
enum roffmsec, enum roffvol);
- int (*ml_end)(struct md_mbuf *,
- const struct md_args *,
- const struct tm *,
+ int (*ml_end)(struct ml_args *, const struct tm *,
const char *, const char *,
enum roffmsec, enum roffvol);
- ssize_t (*ml_beginstring)(struct md_mbuf *,
- const struct md_args *,
+ ssize_t (*ml_beginstring)(struct ml_args *,
const char *, size_t);
- ssize_t (*ml_endstring)(struct md_mbuf *,
- const struct md_args *,
+ ssize_t (*ml_endstring)(struct ml_args *,
const char *, size_t);
- ssize_t (*ml_endtag)(struct md_mbuf *,
- void *, const struct md_args *,
- enum md_ns, int);
- ssize_t (*ml_begintag)(struct md_mbuf *,
- void *, const struct md_args *,
- enum md_ns, int,
+ ssize_t (*ml_endtag)(struct ml_args *, enum md_ns, int);
+ ssize_t (*ml_begintag)(struct ml_args *, enum md_ns, int,
const int *, const char **);
int (*ml_alloc)(void **);
void (*ml_free)(void *);
@@ -81,7 +79,6 @@ 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 *);