diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-08-13 11:45:29 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-08-13 11:45:29 +0000 |
commit | f7add3eaf5bbb4a516a7dc5a828444b82ea8cd2d (patch) | |
tree | 4a4d15fec09b08c5baf6a1752fd68cd08dce18f7 /tree.c | |
parent | 1027567a5466c0202f71a6dedc0cefa0a4f1382c (diff) | |
download | mandoc-f7add3eaf5bbb4a516a7dc5a828444b82ea8cd2d.tar.gz mandoc-f7add3eaf5bbb4a516a7dc5a828444b82ea8cd2d.tar.zst mandoc-f7add3eaf5bbb4a516a7dc5a828444b82ea8cd2d.zip |
Significant overhaul in libman. Macros are now block- and line-scoped (with
next-line scope extensions possible). man.7 reflects block and line scoping,
and also includes a REFERENCE section that will be used as a template for the
big mdoc reference. Many fixes in next-line behaviour for both inline and
block macros. Added some macros for compatibility (from me.7). Corrected
quoted-literal handling for libman.
Diffstat (limited to 'tree.c')
-rw-r--r-- | tree.c | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: tree.c,v 1.13 2009/06/10 20:18:44 kristaps Exp $ */ +/* $Id: tree.c,v 1.14 2009/08/13 11:45:29 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -163,6 +163,15 @@ print_man(const struct man_node *n, int indent) case (MAN_TEXT): t = "text"; break; + case (MAN_BLOCK): + t = "block"; + break; + case (MAN_HEAD): + t = "block-head"; + break; + case (MAN_BODY): + t = "block-body"; + break; default: abort(); /* NOTREACHED */ @@ -173,6 +182,12 @@ print_man(const struct man_node *n, int indent) p = n->string; break; case (MAN_ELEM): + /* FALLTHROUGH */ + case (MAN_BLOCK): + /* FALLTHROUGH */ + case (MAN_HEAD): + /* FALLTHROUGH */ + case (MAN_BODY): p = man_macronames[n->tok]; break; case (MAN_ROOT): |