diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-13 10:57:25 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-13 10:57:25 +0000 |
commit | c73e1ec1c6a54b399da7b779448188ef6db6db68 (patch) | |
tree | 03658ba627049a18bc861428324a55cc63174686 /term.c | |
parent | fd6f541ce489626cb695b97a00cee1e243aa40a4 (diff) | |
download | mandoc-c73e1ec1c6a54b399da7b779448188ef6db6db68.tar.gz |
Moved output definitions into main.h.
Pushed terminal_{mdoc,man} into {mdoc,man}_term.c.
Diffstat (limited to 'term.c')
-rw-r--r-- | term.c | 32 |
1 files changed, 1 insertions, 31 deletions
@@ -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) { |