diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-01-10 13:47:00 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-01-10 13:47:00 +0000 |
commit | 7fc8bcc7ce494daa94a0e6fced0c1d78947c2125 (patch) | |
tree | 02cadf682a60bc4693ebf41f5c2c24563478686c /tree.c | |
parent | f313579fbb5a5318367521793dc24d2567da2fde (diff) | |
download | mandoc-7fc8bcc7ce494daa94a0e6fced0c1d78947c2125.tar.gz mandoc-7fc8bcc7ce494daa94a0e6fced0c1d78947c2125.tar.zst mandoc-7fc8bcc7ce494daa94a0e6fced0c1d78947c2125.zip |
unify names of AST node flags; no change of cpp output
Diffstat (limited to 'tree.c')
-rw-r--r-- | tree.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,4 +1,4 @@ -/* $Id: tree.c,v 1.70 2017/01/10 12:53:08 schwarze Exp $ */ +/* $Id: tree.c,v 1.71 2017/01/10 13:47:00 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> @@ -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'); } |