summaryrefslogtreecommitdiffstats
path: root/tree.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-01-10 13:47:00 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-01-10 13:47:00 +0000
commit8d7c45893d14200cf487664ea9966f4c64db548d (patch)
tree1d3d7493d7bb10da3b43ff578cf8b4808127d552 /tree.c
parentb0911daecba940ec62df1e631a2f8a01d7ffe641 (diff)
downloadmandoc-8d7c45893d14200cf487664ea9966f4c64db548d.tar.gz
unify names of AST node flags; no change of cpp output
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tree.c b/tree.c
index 3348cb4e..180df393 100644
--- a/tree.c
+++ b/tree.c
@@ -159,14 +159,14 @@ print_mdoc(const struct roff_node *n, int indent)
}
putchar(' ');
- if (MDOC_DELIMO & n->flags)
+ if (NODE_DELIMO & n->flags)
putchar('(');
- if (MDOC_LINE & n->flags)
+ if (NODE_LINE & n->flags)
putchar('*');
printf("%d:%d", n->line, n->pos + 1);
- if (MDOC_DELIMC & n->flags)
+ if (NODE_DELIMC & n->flags)
putchar(')');
- if (MDOC_EOS & n->flags)
+ if (NODE_EOS & n->flags)
putchar('.');
if (NODE_NOSRC & n->flags)
printf(" NOSRC");
@@ -252,10 +252,10 @@ print_man(const struct roff_node *n, int indent)
for (i = 0; i < indent; i++)
putchar(' ');
printf("%s (%s) ", p, t);
- if (MAN_LINE & n->flags)
+ if (NODE_LINE & n->flags)
putchar('*');
printf("%d:%d", n->line, n->pos + 1);
- if (MAN_EOS & n->flags)
+ if (NODE_EOS & n->flags)
putchar('.');
putchar('\n');
}