X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/f2888f84e20ae452a6382db6d6f0888b1da41ef5..88bf3594b42b8f39f93f35faccdd3f9e6f5e14a0:/demandoc.c diff --git a/demandoc.c b/demandoc.c index aad42085..dc1781dc 100644 --- a/demandoc.c +++ b/demandoc.c @@ -1,4 +1,4 @@ -/* $Id: demandoc.c,v 1.7 2012/05/31 22:27:14 schwarze Exp $ */ +/* $Id: demandoc.c,v 1.11 2014/08/10 23:54:41 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -14,9 +14,9 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif + +#include #include #include @@ -76,7 +76,7 @@ main(int argc, char *argv[]) argc -= optind; argv += optind; - mp = mparse_alloc(MPARSE_AUTO, MANDOCLEVEL_FATAL, NULL, NULL, NULL); + mp = mparse_alloc(MPARSE_SO, MANDOCLEVEL_FATAL, NULL, NULL); assert(mp); if (0 == argc) @@ -110,7 +110,7 @@ pmandoc(struct mparse *mp, int fd, const char *fn, int list) return; } - mparse_result(mp, &mdoc, &man); + mparse_result(mp, &mdoc, &man, NULL); line = 1; col = 0;