summaryrefslogtreecommitdiffstatshomepage
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-13 10:57:25 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-13 10:57:25 +0000
commite012cb8b2706ff0d54c6b3b68fa79354484752dc (patch)
treea744b05cb6416b74c66a37caba7752483cf602a1 /term.c
parent5cf7b56146264fe9cc6ca3f7594e29a1da4df624 (diff)
downloadmandoc-e012cb8b2706ff0d54c6b3b68fa79354484752dc.tar.gz
mandoc-e012cb8b2706ff0d54c6b3b68fa79354484752dc.tar.zst
mandoc-e012cb8b2706ff0d54c6b3b68fa79354484752dc.zip
Moved output definitions into main.h.
Pushed terminal_{mdoc,man} into {mdoc,man}_term.c.
Diffstat (limited to 'term.c')
-rw-r--r--term.c34
1 files changed, 2 insertions, 32 deletions
diff --git a/term.c b/term.c
index 9ac3039f..e945b95f 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.104 2009/10/10 11:05:23 kristaps Exp $ */
+/* $Id: term.c,v 1.105 2009/10/13 10:57:25 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -24,15 +24,11 @@
#include "term.h"
#include "man.h"
#include "mdoc.h"
+#include "main.h"
/* FIXME: accomodate non-breaking, non-collapsing white-space. */
/* FIXME: accomodate non-breaking, collapsing white-space. */
-extern void man_run(struct termp *,
- const struct man *);
-extern void mdoc_run(struct termp *,
- const struct mdoc *);
-
static struct termp *term_alloc(enum termenc);
static void term_free(struct termp *);
@@ -54,32 +50,6 @@ ascii_alloc(void)
void
-terminal_man(void *arg, const struct man *man)
-{
- struct termp *p;
-
- p = (struct termp *)arg;
- if (NULL == p->symtab)
- p->symtab = chars_init(CHARS_ASCII);
-
- man_run(p, man);
-}
-
-
-void
-terminal_mdoc(void *arg, const struct mdoc *mdoc)
-{
- struct termp *p;
-
- p = (struct termp *)arg;
- if (NULL == p->symtab)
- p->symtab = chars_init(CHARS_ASCII);
-
- mdoc_run(p, mdoc);
-}
-
-
-void
terminal_free(void *arg)
{