summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-01 14:28:12 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-01 14:28:12 +0000
commit276ddbc20f4715e04d08fc32407c770bf4cdbd8e (patch)
tree1449e794e76fd5fe9e0fd3a84b28ebec54a9f0fc
parent24c6fa8ac2ce2f4beae4ada2ac4848432f34b668 (diff)
downloadmandoc-276ddbc20f4715e04d08fc32407c770bf4cdbd8e.tar.gz
p->end is an enum: treat it as such.
-rw-r--r--mdoc_macro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index 10baaec7..82cca0c6 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -411,7 +411,7 @@ rew_dohalt(enum mdoct tok, enum mdoc_type type,
* Default block rewinding rules.
* In particular, always skip block end markers.
*/
- if (p->end || (MDOC_BLOCK == p->type &&
+ if (ENDBODY_NOT != p->end || (MDOC_BLOCK == p->type &&
! (MDOC_EXPLICIT & mdoc_macros[tok].flags)))
return(REWIND_MORE);
@@ -648,7 +648,7 @@ blk_exp_close(MACRO_PROT_ARGS)
/* Remember the start of our own body. */
if (MDOC_BODY == n->type && atok == n->tok) {
- if ( ! n->end)
+ if (ENDBODY_NOT == n->end)
body = n;
continue;
}