version 1.196, 2011/09/30 00:13:28 |
version 1.198, 2012/06/12 20:21:04 |
Line 197 mdoc_free(struct mdoc *mdoc) |
|
Line 197 mdoc_free(struct mdoc *mdoc) |
|
* Allocate volatile and non-volatile parse resources. |
* Allocate volatile and non-volatile parse resources. |
*/ |
*/ |
struct mdoc * |
struct mdoc * |
mdoc_alloc(struct roff *roff, struct mparse *parse) |
mdoc_alloc(struct roff *roff, struct mparse *parse, char *defos) |
{ |
{ |
struct mdoc *p; |
struct mdoc *p; |
|
|
p = mandoc_calloc(1, sizeof(struct mdoc)); |
p = mandoc_calloc(1, sizeof(struct mdoc)); |
|
|
p->parse = parse; |
p->parse = parse; |
|
p->defos = defos; |
p->roff = roff; |
p->roff = roff; |
|
|
mdoc_hash_init(); |
mdoc_hash_init(); |
Line 301 mdoc_parseln(struct mdoc *m, int ln, char *buf, int of |
|
Line 302 mdoc_parseln(struct mdoc *m, int ln, char *buf, int of |
|
m->flags &= ~MDOC_SYNOPSIS; |
m->flags &= ~MDOC_SYNOPSIS; |
} |
} |
|
|
return(mandoc_getcontrol(buf, &offs) ? |
return(roff_getcontrol(m->roff, buf, &offs) ? |
mdoc_pmacro(m, ln, buf, offs) : |
mdoc_pmacro(m, ln, buf, offs) : |
mdoc_ptext(m, ln, buf, offs)); |
mdoc_ptext(m, ln, buf, offs)); |
} |
} |