version 1.1, 2019/03/26 18:32:07 |
version 1.3, 2019/03/28 12:21:10 |
Line 80 main(int argc, char *argv[]) |
|
Line 80 main(int argc, char *argv[]) |
|
rc = 1; |
rc = 1; |
if ((parser = parse_alloc(warn)) != NULL) { |
if ((parser = parse_alloc(warn)) != NULL) { |
if ((tree = parse_file(parser, fd, fname)) != NULL) { |
if ((tree = parse_file(parser, fd, fname)) != NULL) { |
if ((tree->flags & TREE_FAIL) == 0) |
if (tree->flags & TREE_FAIL) |
|
fputc('\n', stderr); |
|
else |
rc = 0; |
rc = 0; |
ptree_print(tree); |
ptree_print(tree); |
|
if (tree->flags & TREE_FAIL) |
|
fputs("\nThe output may be incomplete, see" |
|
" the parse error reported above.\n\n", |
|
stderr); |
pnode_unlink(tree->root); |
pnode_unlink(tree->root); |
tree->root = NULL; |
tree->root = NULL; |
} |
} |