aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-10-22 21:54:23 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-10-22 21:54:23 +0000
commite66bc70731870e9afaa3b406e8e49e65b95bfb57 (patch)
treee5dd94d28e6f4546833c334a078d677f759dd890 /roff.c
parent9712be0c6ab0aa2d1baa5449bf191e975946ebdb (diff)
downloadmandoc-e66bc70731870e9afaa3b406e8e49e65b95bfb57.tar.gz
mandoc-e66bc70731870e9afaa3b406e8e49e65b95bfb57.tar.zst
mandoc-e66bc70731870e9afaa3b406e8e49e65b95bfb57.zip
move man(7) validation into the dedicated validation phase, too
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/roff.c b/roff.c
index 59207bdf..4ee44f15 100644
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.282 2015/10/21 23:51:11 schwarze Exp $ */
+/* $Id: roff.c,v 1.283 2015/10/22 21:54:23 schwarze Exp $ */
/*
* Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -1063,7 +1063,7 @@ roff_word_alloc(struct roff_man *man, int line, int pos, const char *word)
if (man->macroset == MACROSET_MDOC)
n->flags |= MDOC_VALID | MDOC_ENDED;
else
- man_valid_post(man);
+ n->flags |= MAN_VALID;
man->next = ROFF_NEXT_SIBLING;
}
@@ -1151,7 +1151,7 @@ roff_addtbl(struct roff_man *man, const struct tbl_span *tbl)
if (man->macroset == MACROSET_MDOC)
n->flags |= MDOC_VALID | MDOC_ENDED;
else
- man_valid_post(man);
+ n->flags |= MAN_VALID;
man->next = ROFF_NEXT_SIBLING;
}