version 1.22, 2015/10/13 22:59:54 |
version 1.26, 2016/01/08 02:53:13 |
Line 87 main(int argc, char *argv[]) |
|
Line 87 main(int argc, char *argv[]) |
|
|
|
for (i = 0; i < argc; i++) { |
for (i = 0; i < argc; i++) { |
mparse_reset(mp); |
mparse_reset(mp); |
if (mparse_open(mp, &fd, argv[i]) != MANDOCLEVEL_OK) { |
if ((fd = mparse_open(mp, argv[i])) == -1) { |
perror(argv[i]); |
perror(argv[i]); |
continue; |
continue; |
} |
} |
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'); |