aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_macro.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-11-30 13:04:14 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-11-30 13:04:14 +0000
commitd9ece81ad9ffdf688f6492fc9e8018bf7e91e603 (patch)
tree0b31cbf088e8e04597d70b6bd3828ab909a0d3c1 /mdoc_macro.c
parentdc32127d6dd6104e6701f4e6c9a96b182e247747 (diff)
downloadmandoc-d9ece81ad9ffdf688f6492fc9e8018bf7e91e603.tar.gz
mandoc-d9ece81ad9ffdf688f6492fc9e8018bf7e91e603.tar.zst
mandoc-d9ece81ad9ffdf688f6492fc9e8018bf7e91e603.zip
mdoc_action.c is no more. Attic it and remove it from the Makefile.
Remove references to MDOC_ACTED (it was only assertions) and the pre- and post-action functions.
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r--mdoc_macro.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index 37824f9e..3b696547 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_macro.c,v 1.96 2010/11/29 13:02:47 kristaps Exp $ */
+/* $Id: mdoc_macro.c,v 1.97 2010/11/30 13:04:14 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -259,15 +259,11 @@ rew_last(struct mdoc *mdoc, const struct mdoc_node *to)
while (mdoc->last != to) {
if ( ! mdoc_valid_post(mdoc))
return(0);
- if ( ! mdoc_action_post(mdoc))
- return(0);
mdoc->last = mdoc->last->parent;
assert(mdoc->last);
}
- if ( ! mdoc_valid_post(mdoc))
- return(0);
- return(mdoc_action_post(mdoc));
+ return(mdoc_valid_post(mdoc));
}
@@ -696,10 +692,8 @@ blk_exp_close(MACRO_PROT_ARGS)
if (later &&
MDOC_EXPLICIT & mdoc_macros[later->tok].flags)
continue;
- if (MDOC_CALLABLE & mdoc_macros[n->tok].flags) {
- assert( ! (MDOC_ACTED & n->flags));
+ if (MDOC_CALLABLE & mdoc_macros[n->tok].flags)
later = n;
- }
}
if ( ! (MDOC_CALLABLE & mdoc_macros[tok].flags)) {
@@ -1143,7 +1137,6 @@ blk_full(MACRO_PROT_ARGS)
if (MDOC_BLOCK == n->type &&
MDOC_EXPLICIT & mdoc_macros[n->tok].flags &&
! (MDOC_VALID & n->flags)) {
- assert( ! (MDOC_ACTED & n->flags));
n->pending = head;
return(1);
}
@@ -1281,7 +1274,6 @@ blk_part_imp(MACRO_PROT_ARGS)
if (MDOC_BLOCK == n->type &&
MDOC_EXPLICIT & mdoc_macros[n->tok].flags &&
! (MDOC_VALID & n->flags)) {
- assert( ! (MDOC_ACTED & n->flags));
if ( ! make_pending(n, tok, m, line, ppos))
return(0);
if ( ! mdoc_endbody_alloc(m, line, ppos,