version 1.5, 2009/03/21 13:09:29 |
version 1.8, 2009/03/25 21:46:24 |
Line 46 static void term_nescape(struct termp *, |
|
Line 46 static void term_nescape(struct termp *, |
|
static void term_chara(struct termp *, char); |
static void term_chara(struct termp *, char); |
static void term_stringa(struct termp *, |
static void term_stringa(struct termp *, |
const char *, size_t); |
const char *, size_t); |
static int term_isopendelim(const char *, size_t); |
static int term_isopendelim(const char *, int); |
static int term_isclosedelim(const char *, size_t); |
static int term_isclosedelim(const char *, int); |
static void sanity(const struct mdoc_node *); /* XXX */ |
static void sanity(const struct mdoc_node *); /* XXX */ |
|
|
|
|
void * |
void * |
latin1_alloc(void) |
|
{ |
|
|
|
return(term_alloc(TERMENC_LATIN1)); |
|
} |
|
|
|
|
|
void * |
|
utf8_alloc(void) |
|
{ |
|
|
|
return(term_alloc(TERMENC_UTF8)); |
|
} |
|
|
|
|
|
void * |
|
ascii_alloc(void) |
ascii_alloc(void) |
{ |
{ |
|
|
Line 76 ascii_alloc(void) |
|
Line 60 ascii_alloc(void) |
|
|
|
|
|
int |
int |
terminal_run(void *arg, const struct mdoc *mdoc) |
terminal_run(void *arg, const struct man *man, |
|
const struct mdoc *mdoc) |
{ |
{ |
struct termp *p; |
struct termp *p; |
|
|
|
if (NULL == mdoc) |
|
return(1); |
|
|
p = (struct termp *)arg; |
p = (struct termp *)arg; |
|
|
if (NULL == p->symtab) |
if (NULL == p->symtab) |
Line 129 term_alloc(enum termenc enc) |
|
Line 117 term_alloc(enum termenc enc) |
|
|
|
|
|
static int |
static int |
term_isclosedelim(const char *p, size_t len) |
term_isclosedelim(const char *p, int len) |
{ |
{ |
|
|
if (1 != len) |
if (1 != len) |
Line 163 term_isclosedelim(const char *p, size_t len) |
|
Line 151 term_isclosedelim(const char *p, size_t len) |
|
|
|
|
|
static int |
static int |
term_isopendelim(const char *p, size_t len) |
term_isopendelim(const char *p, int len) |
{ |
{ |
|
|
if (1 != len) |
if (1 != len) |