-/* $Id: term.c,v 1.71 2009/03/31 13:50:19 kristaps Exp $ */
+/* $Id: term.c,v 1.72 2009/04/03 11:08:39 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
int
-terminal_run(void *arg, const struct man *man,
- const struct mdoc *mdoc)
+terminal_man(void *arg, const struct man *man)
{
struct termp *p;
if (NULL == p->symtab)
p->symtab = term_ascii2htab();
- if (man)
- return(man_run(p, man));
- if (mdoc)
- return(mdoc_run(p, mdoc));
+ return(man_run(p, man));
+}
+
+
+int
+terminal_mdoc(void *arg, const struct mdoc *mdoc)
+{
+ struct termp *p;
+
+ p = (struct termp *)arg;
+
+ if (NULL == p->symtab)
+ p->symtab = term_ascii2htab();
- return(1);
+ return(mdoc_run(p, mdoc));
}