diff options
author | Joerg Sonnenberger <joerg@netbsd.org> | 2012-02-16 20:51:31 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@netbsd.org> | 2012-02-16 20:51:31 +0000 |
commit | 752172f6f0d6720937996a5ef0e29990327e56fb (patch) | |
tree | 91ef5e785a18c96ebec030ce7e59a1c00a9e783a /mandoc.h | |
parent | 8872acfd3bb11e0bdbd221a6616c7c74b549b313 (diff) | |
download | mandoc-752172f6f0d6720937996a5ef0e29990327e56fb.tar.gz |
Add mparse_readmem, which allows application to run the parser directly
from memory, e.g. after de-compressing a document.
Diffstat (limited to 'mandoc.h')
-rw-r--r-- | mandoc.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -418,6 +418,8 @@ struct mparse *mparse_alloc(enum mparset, void mparse_free(struct mparse *); void mparse_keep(struct mparse *); enum mandoclevel mparse_readfd(struct mparse *, int, const char *); +enum mandoclevel mparse_readmem(struct mparse *, const void *, size_t, + const char *); void mparse_reset(struct mparse *); void mparse_result(struct mparse *, struct mdoc **, struct man **); |