version 1.15, 2009/08/22 17:21:23 |
version 1.16, 2009/09/21 20:57:57 |
|
|
#include "mdoc.h" |
#include "mdoc.h" |
#include "man.h" |
#include "man.h" |
|
|
typedef int (*out_mdoc)(void *, const struct mdoc *); |
typedef void (*out_mdoc)(void *, const struct mdoc *); |
typedef int (*out_man)(void *, const struct man *); |
typedef void (*out_man)(void *, const struct man *); |
typedef void (*out_free)(void *); |
typedef void (*out_free)(void *); |
|
|
struct buf { |
struct buf { |
|
|
}; |
}; |
|
|
extern void *ascii_alloc(void); |
extern void *ascii_alloc(void); |
extern int tree_mdoc(void *, const struct mdoc *); |
extern void tree_mdoc(void *, const struct mdoc *); |
extern int tree_man(void *, const struct man *); |
extern void tree_man(void *, const struct man *); |
extern int terminal_mdoc(void *, const struct mdoc *); |
extern void terminal_mdoc(void *, const struct mdoc *); |
extern int terminal_man(void *, const struct man *); |
extern void terminal_man(void *, const struct man *); |
extern void terminal_free(void *); |
extern void terminal_free(void *); |
|
|
static int foptions(int *, char *); |
static int foptions(int *, char *); |
|
|
/* Execute the out device, if it exists. */ |
/* Execute the out device, if it exists. */ |
|
|
if (man && curp->outman) |
if (man && curp->outman) |
if ( ! (*curp->outman)(curp->outdata, man)) |
(*curp->outman)(curp->outdata, man); |
return(-1); |
|
if (mdoc && curp->outmdoc) |
if (mdoc && curp->outmdoc) |
if ( ! (*curp->outmdoc)(curp->outdata, mdoc)) |
(*curp->outmdoc)(curp->outdata, mdoc); |
return(-1); |
|
|
|
return(1); |
return(1); |
} |
} |