version 1.28, 2012/02/16 20:51:31 |
version 1.29, 2012/05/27 17:48:57 |
|
|
void *arg; /* argument to mmsg */ |
void *arg; /* argument to mmsg */ |
const char *file; |
const char *file; |
struct buf *secondary; |
struct buf *secondary; |
|
char *defos; /* default operating system */ |
}; |
}; |
|
|
static void resize_buf(struct buf *, size_t); |
static void resize_buf(struct buf *, size_t); |
Line 247 pset(const char *buf, int pos, struct mparse *curp) |
|
Line 248 pset(const char *buf, int pos, struct mparse *curp) |
|
switch (curp->inttype) { |
switch (curp->inttype) { |
case (MPARSE_MDOC): |
case (MPARSE_MDOC): |
if (NULL == curp->pmdoc) |
if (NULL == curp->pmdoc) |
curp->pmdoc = mdoc_alloc(curp->roff, curp); |
curp->pmdoc = mdoc_alloc(curp->roff, curp, |
|
curp->defos); |
assert(curp->pmdoc); |
assert(curp->pmdoc); |
curp->mdoc = curp->pmdoc; |
curp->mdoc = curp->pmdoc; |
return; |
return; |
Line 263 pset(const char *buf, int pos, struct mparse *curp) |
|
Line 265 pset(const char *buf, int pos, struct mparse *curp) |
|
|
|
if (pos >= 3 && 0 == memcmp(buf, ".Dd", 3)) { |
if (pos >= 3 && 0 == memcmp(buf, ".Dd", 3)) { |
if (NULL == curp->pmdoc) |
if (NULL == curp->pmdoc) |
curp->pmdoc = mdoc_alloc(curp->roff, curp); |
curp->pmdoc = mdoc_alloc(curp->roff, curp, |
|
curp->defos); |
assert(curp->pmdoc); |
assert(curp->pmdoc); |
curp->mdoc = curp->pmdoc; |
curp->mdoc = curp->pmdoc; |
return; |
return; |
Line 720 mparse_readfd(struct mparse *curp, int fd, const char |
|
Line 723 mparse_readfd(struct mparse *curp, int fd, const char |
|
} |
} |
|
|
struct mparse * |
struct mparse * |
mparse_alloc(enum mparset inttype, enum mandoclevel wlevel, mandocmsg mmsg, void *arg) |
mparse_alloc(enum mparset inttype, enum mandoclevel wlevel, |
|
mandocmsg mmsg, void *arg, char *defos) |
{ |
{ |
struct mparse *curp; |
struct mparse *curp; |
|
|
Line 732 mparse_alloc(enum mparset inttype, enum mandoclevel wl |
|
Line 736 mparse_alloc(enum mparset inttype, enum mandoclevel wl |
|
curp->mmsg = mmsg; |
curp->mmsg = mmsg; |
curp->arg = arg; |
curp->arg = arg; |
curp->inttype = inttype; |
curp->inttype = inttype; |
|
curp->defos = defos; |
|
|
curp->roff = roff_alloc(curp); |
curp->roff = roff_alloc(curp); |
return(curp); |
return(curp); |