-extern char *__progname;
-
-extern void *ascii_alloc(void);
-extern void *latin1_alloc(void);
-extern void *utf8_alloc(void);
-extern int terminal_run(void *, const struct man *,
- const struct mdoc *);
-extern int tree_run(void *, const struct man *,
- const struct mdoc *);
-extern void terminal_free(void *);
-
-static int foptions(int *, char *);
-static int toptions(enum outt *, char *);
-static int moptions(enum intt *, char *);
-static int woptions(int *, char *);
-static int merr(void *, int, int, const char *);
-static int manwarn(void *, int, int, const char *);
-static int mdocwarn(void *, int, int,
- enum mdoc_warn, const char *);
-static int file(struct buf *, struct buf *,
- const char *,
- struct man *, struct mdoc *);
-static int fdesc(struct buf *, struct buf *,
- const char *, int,
- struct man *, struct mdoc *);
-
-__dead static void version(void);
-__dead static void usage(void);