Lines Matching defs:man
46 #include "man.h"
53 struct roff_man *man; /* man parser */
267 * If neither command line arguments -mdoc or -man select
294 if (curp->man == NULL) {
295 curp->man = roff_man_alloc(curp->roff, curp, curp->defos,
297 curp->man->macroset = MACROSET_MAN;
298 curp->man->first->tok = TOKEN_NONE;
303 curp->man->macroset = MACROSET_MDOC;
304 curp->man->first->tok = TOKEN_NONE;
307 curp->man->macroset = MACROSET_MAN;
308 curp->man->first->tok = TOKEN_NONE;
572 if (curp->man == NULL ||
573 curp->man->macroset == MACROSET_NONE)
587 roff_addtbl(curp->man, span);
589 roff_addeqn(curp->man, roff_eqn(curp->roff));
590 else if ((curp->man->macroset == MACROSET_MDOC ?
591 mdoc_parseln(curp->man, curp->line, ln.buf, of) :
592 man_parseln(curp->man, curp->line, ln.buf, of)) == 2)
687 if (curp->man == NULL && curp->sodest == NULL)
688 curp->man = roff_man_alloc(curp->roff, curp, curp->defos,
690 if (curp->man->macroset == MACROSET_NONE)
691 curp->man->macroset = MACROSET_MAN;
692 if (curp->man->macroset == MACROSET_MDOC)
693 mdoc_endparse(curp->man);
695 man_endparse(curp->man);
829 curp->man = roff_man_alloc( curp->roff, curp, curp->defos,
833 curp->man->macroset = MACROSET_MDOC;
836 curp->man->macroset = MACROSET_MAN;
838 curp->man->first->tok = TOKEN_NONE;
848 if (curp->man != NULL)
849 roff_man_reset(curp->man);
863 roff_man_free(curp->man);
875 mparse_result(struct mparse *curp, struct roff_man **man,
880 *man = NULL;
883 if (man)
884 *man = curp->man;