-#define MD_LINE_SZ (256) /* Max input line size. */
-
-struct md_parse {
- int warn; /* Warning flags. */
-#define MD_WARN_SYNTAX (1 << 0) /* Show syntax warnings. */
-#define MD_WARN_COMPAT (1 << 1) /* Show compat warnings. */
-#define MD_WARN_ALL (0x03) /* Show all warnings. */
-#define MD_WARN_ERR (1 << 2) /* Make warnings->errors. */
- int dbg; /* Debug level. */
- struct mdoc *mdoc; /* Active parser. */
- char *buf; /* Input buffer. */
- u_long bufsz; /* Input buffer size. */
- char *in; /* Input file name. */
- int fdin; /* Input file desc. */
-};
-
-extern char *__progname;
-
-static void usage(void);
-static int getsopts(struct md_parse *, char *);
-static int parse(struct md_parse *);
-static void msg_msg(void *, int, int, const char *);
-static int msg_err(void *, int, int, const char *);
-static int msg_warn(void *, int, int,
- enum mdoc_warn, const char *);
-
-#ifdef __linux__
-extern int getsubopt(char **, char *const *, char **);
-#endif
-