• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/mandoc/

Lines Matching defs:man

40 #include "man.h"
49 struct roff_man *man; /* man parser */
97 * If neither command line arguments -mdoc or -man select
125 curp->man->meta.macroset = MACROSET_MDOC;
126 if (curp->man->mdocmac == NULL)
127 curp->man->mdocmac = roffhash_alloc(MDOC_Dd, MDOC_MAX);
129 curp->man->meta.macroset = MACROSET_MAN;
130 if (curp->man->manmac == NULL)
131 curp->man->manmac = roffhash_alloc(MAN_TH, MAN_MAX);
133 curp->man->meta.first->tok = TOKEN_NONE;
338 if (curp->man->meta.macroset == MACROSET_NONE)
340 if ((curp->man->meta.macroset == MACROSET_MDOC ?
341 mdoc_parseln(curp->man, curp->line, ln.buf, of) :
342 man_parseln(curp->man, curp->line, ln.buf, of)
369 curp->man->meta.sodest =
530 if (curp->man->meta.macroset == MACROSET_NONE)
531 curp->man->meta.macroset = MACROSET_MAN;
532 if (curp->man->meta.macroset == MACROSET_MDOC)
533 mdoc_endparse(curp->man);
535 man_endparse(curp->man);
654 curp->man = roff_man_alloc(curp->roff, curp->os_s,
657 curp->man->meta.macroset = MACROSET_MDOC;
658 if (curp->man->mdocmac == NULL)
659 curp->man->mdocmac = roffhash_alloc(MDOC_Dd, MDOC_MAX);
661 curp->man->meta.macroset = MACROSET_MAN;
662 if (curp->man->manmac == NULL)
663 curp->man->manmac = roffhash_alloc(MAN_TH, MAN_MAX);
665 curp->man->meta.first->tok = TOKEN_NONE;
666 curp->man->meta.os_e = os_e;
674 roff_man_reset(curp->man);
683 roffhash_free(curp->man->mdocmac);
684 roffhash_free(curp->man->manmac);
685 roff_man_free(curp->man);
694 roff_state_reset(curp->man);
696 if (curp->man->meta.macroset == MACROSET_MDOC)
697 mdoc_validate(curp->man);
699 man_validate(curp->man);
701 return &curp->man->meta;