diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2018-12-31 10:03:39 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2018-12-31 10:03:39 +0000 |
commit | aa3c906465777b105e2731696db8557a14cd90f1 (patch) | |
tree | 681dc0e2331bd3a85b3f7ea0b21ec1c8310e9468 /usr.bin/mandoc/man.c | |
parent | 9fba2044ec07d84f126defb0b5ae5532d4f280dc (diff) |
Cleanup, no functional change:
Since the man(7) and roff(7) validators no longer use the parser
state flag ROFF_NOFILL, we can finally get rid of the function
man_state(), resulting in a better separation of parsing and validation.
Diffstat (limited to 'usr.bin/mandoc/man.c')
-rw-r--r-- | usr.bin/mandoc/man.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/usr.bin/mandoc/man.c b/usr.bin/mandoc/man.c index bfc6b6e5b3b..2112012e717 100644 --- a/usr.bin/mandoc/man.c +++ b/usr.bin/mandoc/man.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man.c,v 1.133 2018/12/31 08:38:17 schwarze Exp $ */ +/* $OpenBSD: man.c,v 1.134 2018/12/31 10:03:38 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013,2014,2015,2017,2018 Ingo Schwarze <schwarze@openbsd.org> @@ -341,22 +341,3 @@ man_breakscope(struct roff_man *man, int tok) man->flags &= ~MAN_BLINE; } } - -void -man_state(struct roff_man *man, struct roff_node *n) -{ - - switch(n->tok) { - case ROFF_nf: - case MAN_EX: - man->flags |= ROFF_NOFILL; - break; - case ROFF_fi: - case MAN_EE: - man->flags &= ~ROFF_NOFILL; - break; - default: - break; - } - man->last->flags |= NODE_VALID; -} |