summaryrefslogtreecommitdiffstatshomepage
path: root/man_action.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-08-13 11:45:29 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-08-13 11:45:29 +0000
commitf7add3eaf5bbb4a516a7dc5a828444b82ea8cd2d (patch)
tree4a4d15fec09b08c5baf6a1752fd68cd08dce18f7 /man_action.c
parent1027567a5466c0202f71a6dedc0cefa0a4f1382c (diff)
downloadmandoc-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 'man_action.c')
-rw-r--r--man_action.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/man_action.c b/man_action.c
index e1a4b6c0..c92e7ac5 100644
--- a/man_action.c
+++ b/man_action.c
@@ -1,4 +1,4 @@
-/* $Id: man_action.c,v 1.14 2009/07/24 20:22:24 kristaps Exp $ */
+/* $Id: man_action.c,v 1.15 2009/08/13 11:45:29 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -60,6 +60,9 @@ const struct actions man_actions[MAN_MAX] = {
{ NULL }, /* na */
{ NULL }, /* i */
{ NULL }, /* sp */
+ { NULL }, /* nf */
+ { NULL }, /* fi */
+ { NULL }, /* r*/
};
@@ -151,12 +154,10 @@ post_TH(struct man *m)
*/
if (m->last->parent->child == m->last) {
- assert(MAN_ROOT == m->last->parent->type);
m->last->parent->child = NULL;
n = m->last;
m->last = m->last->parent;
m->next = MAN_NEXT_CHILD;
- assert(m->last == m->first);
} else {
assert(m->last->prev);
m->last->prev->next = NULL;