void mparse_reset(struct mparse *curp) { roff_reset(curp->roff); if (curp->man != NULL) roff_man_reset(curp->man); if (curp->secondary) curp->secondary->sz = 0; curp->file_status = MANDOCLEVEL_OK; free(curp->sodest); curp->sodest = NULL; }
void mparse_reset(struct mparse *curp) { roff_reset(curp->roff); if (curp->mdoc) mdoc_reset(curp->mdoc); if (curp->man) man_reset(curp->man); if (curp->secondary) curp->secondary->sz = 0; curp->file_status = MANDOCLEVEL_OK; curp->mdoc = NULL; curp->man = NULL; }