version 1.104, 2009/10/10 11:05:23 |
version 1.105, 2009/10/13 10:57:25 |
|
|
#include "term.h" |
#include "term.h" |
#include "man.h" |
#include "man.h" |
#include "mdoc.h" |
#include "mdoc.h" |
|
#include "main.h" |
|
|
/* FIXME: accomodate non-breaking, non-collapsing white-space. */ |
/* FIXME: accomodate non-breaking, non-collapsing white-space. */ |
/* FIXME: accomodate non-breaking, 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 struct termp *term_alloc(enum termenc); |
static void term_free(struct termp *); |
static void term_free(struct termp *); |
|
|
Line 50 ascii_alloc(void) |
|
Line 46 ascii_alloc(void) |
|
{ |
{ |
|
|
return(term_alloc(TERMENC_ASCII)); |
return(term_alloc(TERMENC_ASCII)); |
} |
|
|
|
|
|
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); |
|
} |
} |
|
|
|
|