=================================================================== RCS file: /cvs/mandoc/Attic/terminal.c,v retrieving revision 1.6 retrieving revision 1.8 diff -u -p -r1.6 -r1.8 --- mandoc/Attic/terminal.c 2009/03/22 19:10:48 1.6 +++ mandoc/Attic/terminal.c 2009/03/25 21:46:24 1.8 @@ -1,4 +1,4 @@ -/* $Id: terminal.c,v 1.6 2009/03/22 19:10:48 kristaps Exp $ */ +/* $Id: terminal.c,v 1.8 2009/03/25 21:46:24 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -52,22 +52,6 @@ static void sanity(const struct mdoc_node *); /* XX void * -latin1_alloc(void) -{ - - return(term_alloc(TERMENC_LATIN1)); -} - - -void * -utf8_alloc(void) -{ - - return(term_alloc(TERMENC_UTF8)); -} - - -void * ascii_alloc(void) { @@ -76,9 +60,13 @@ ascii_alloc(void) int -terminal_run(void *arg, const struct mdoc *mdoc) +terminal_run(void *arg, const struct man *man, + const struct mdoc *mdoc) { struct termp *p; + + if (NULL == mdoc) + return(1); p = (struct termp *)arg;