version 1.112, 2015/04/18 17:28:08 |
version 1.113, 2015/04/19 13:59:37 |
|
|
curp->man = roff_man_alloc(curp->roff, curp, curp->defos, |
curp->man = roff_man_alloc(curp->roff, curp, curp->defos, |
curp->options & MPARSE_QUICK ? 1 : 0); |
curp->options & MPARSE_QUICK ? 1 : 0); |
curp->man->macroset = MACROSET_MAN; |
curp->man->macroset = MACROSET_MAN; |
curp->man->first->tok = MDOC_MAX; |
curp->man->first->tok = TOKEN_NONE; |
} |
} |
|
|
if (format == MPARSE_MDOC) { |
if (format == MPARSE_MDOC) { |
mdoc_hash_init(); |
mdoc_hash_init(); |
curp->man->macroset = MACROSET_MDOC; |
curp->man->macroset = MACROSET_MDOC; |
curp->man->first->tok = MDOC_MAX; |
curp->man->first->tok = TOKEN_NONE; |
} else { |
} else { |
man_hash_init(); |
man_hash_init(); |
curp->man->macroset = MACROSET_MAN; |
curp->man->macroset = MACROSET_MAN; |
curp->man->first->tok = MAN_MAX; |
curp->man->first->tok = TOKEN_NONE; |
} |
} |
} |
} |
|
|
|
|
if (curp->options & MPARSE_MDOC) { |
if (curp->options & MPARSE_MDOC) { |
mdoc_hash_init(); |
mdoc_hash_init(); |
curp->man->macroset = MACROSET_MDOC; |
curp->man->macroset = MACROSET_MDOC; |
curp->man->first->tok = MDOC_MAX; |
|
} else if (curp->options & MPARSE_MAN) { |
} else if (curp->options & MPARSE_MAN) { |
man_hash_init(); |
man_hash_init(); |
curp->man->macroset = MACROSET_MAN; |
curp->man->macroset = MACROSET_MAN; |
curp->man->first->tok = MAN_MAX; |
|
} |
} |
|
curp->man->first->tok = TOKEN_NONE; |
return(curp); |
return(curp); |
} |
} |
|
|