=================================================================== RCS file: /cvs/mandoc/main.c,v retrieving revision 1.45 retrieving revision 1.47 diff -u -p -r1.45 -r1.47 --- mandoc/main.c 2009/10/13 10:21:24 1.45 +++ mandoc/main.c 2009/10/26 04:15:42 1.47 @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.45 2009/10/13 10:21:24 kristaps Exp $ */ +/* $Id: main.c,v 1.47 2009/10/26 04:15:42 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -27,6 +27,7 @@ #include "mdoc.h" #include "man.h" +#include "main.h" #define UNCONST(a) ((void *)(uintptr_t)(const void *)(a)) @@ -90,17 +91,6 @@ struct curparse { char *outopts; }; -extern void *html_alloc(char *); -extern void html_mdoc(void *, const struct mdoc *); -extern void html_man(void *, const struct man *); -extern void html_free(void *); -extern void *ascii_alloc(void); -extern void tree_mdoc(void *, const struct mdoc *); -extern void tree_man(void *, const struct man *); -extern void terminal_mdoc(void *, const struct mdoc *); -extern void terminal_man(void *, const struct man *); -extern void terminal_free(void *); - static int foptions(int *, char *); static int toptions(enum outt *, char *); static int moptions(enum intt *, char *); @@ -134,7 +124,7 @@ main(int argc, char *argv[]) curp.outtype = OUTT_ASCII; /* LINTED */ - while (-1 != (c = getopt(argc, argv, "f:m:o:T:VW:"))) + while (-1 != (c = getopt(argc, argv, "f:m:O:T:VW:"))) switch (c) { case ('f'): if ( ! foptions(&curp.fflags, optarg))