]> git.cameronkatri.com Git - mandoc.git/blobdiff - tree.c
Style message about legacy man(7) date format in mdoc(7) documents
[mandoc.git] / tree.c
diff --git a/tree.c b/tree.c
index dd36ff594e53142e089c49e117db1daab68b6f72..989a2c3cf817401f7e046709403e012c0a94291d 100644 (file)
--- a/tree.c
+++ b/tree.c
@@ -1,4 +1,4 @@
-/*     $Id: tree.c,v 1.73 2017/02/10 15:45:28 schwarze Exp $ */
+/*     $Id: tree.c,v 1.74 2017/04/24 23:06:18 schwarze Exp $ */
 /*
  * Copyright (c) 2008, 2009, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2013, 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -129,23 +129,23 @@ print_mdoc(const struct roff_node *n, int indent)
                p = n->string;
                break;
        case ROFFT_BODY:
-               p = mdoc_macronames[n->tok];
+               p = roff_name[n->tok];
                break;
        case ROFFT_HEAD:
-               p = mdoc_macronames[n->tok];
+               p = roff_name[n->tok];
                break;
        case ROFFT_TAIL:
-               p = mdoc_macronames[n->tok];
+               p = roff_name[n->tok];
                break;
        case ROFFT_ELEM:
-               p = mdoc_macronames[n->tok];
+               p = roff_name[n->tok];
                if (n->args) {
                        argv = n->args->argv;
                        argc = n->args->argc;
                }
                break;
        case ROFFT_BLOCK:
-               p = mdoc_macronames[n->tok];
+               p = roff_name[n->tok];
                if (n->args) {
                        argv = n->args->argv;
                        argc = n->args->argc;
@@ -257,7 +257,7 @@ print_man(const struct roff_node *n, int indent)
        case ROFFT_BLOCK:
        case ROFFT_HEAD:
        case ROFFT_BODY:
-               p = man_macronames[n->tok];
+               p = roff_name[n->tok];
                break;
        case ROFFT_ROOT:
                p = "root";