version 1.22, 2015/10/13 22:59:54 |
version 1.25, 2016/01/08 02:13:39 |
Line 113 pmandoc(struct mparse *mp, int fd, const char *fn, int |
|
Line 113 pmandoc(struct mparse *mp, int fd, const char *fn, int |
|
int line, col; |
int line, col; |
|
|
mparse_readfd(mp, fd, fn); |
mparse_readfd(mp, fd, fn); |
|
close(fd); |
mparse_result(mp, &man, NULL); |
mparse_result(mp, &man, NULL); |
line = 1; |
line = 1; |
col = 0; |
col = 0; |
|
|
if (man == NULL) |
if (man == NULL) |
return; |
return; |
if (man->macroset == MACROSET_MDOC) |
if (man->macroset == MACROSET_MDOC) { |
|
mdoc_validate(man); |
pmdoc(man->first->child, &line, &col, list); |
pmdoc(man->first->child, &line, &col, list); |
else |
} else { |
|
man_validate(man); |
pman(man->first->child, &line, &col, list); |
pman(man->first->child, &line, &col, list); |
|
} |
|
|
if ( ! list) |
if ( ! list) |
putchar('\n'); |
putchar('\n'); |