=================================================================== RCS file: /cvs/mandoc/demandoc.c,v retrieving revision 1.6 retrieving revision 1.11 diff -u -p -r1.6 -r1.11 --- mandoc/demandoc.c 2011/09/01 22:25:53 1.6 +++ mandoc/demandoc.c 2014/08/10 23:54:41 1.11 @@ -1,4 +1,4 @@ -/* $Id: demandoc.c,v 1.6 2011/09/01 22:25:53 kristaps Exp $ */ +/* $Id: demandoc.c,v 1.11 2014/08/10 23:54:41 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -14,10 +14,10 @@ * 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 #include @@ -76,7 +76,7 @@ main(int argc, char *argv[]) argc -= optind; argv += optind; - mp = mparse_alloc(MPARSE_AUTO, MANDOCLEVEL_FATAL, 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 return; } - mparse_result(mp, &mdoc, &man); + mparse_result(mp, &mdoc, &man, NULL); line = 1; col = 0;