summaryrefslogtreecommitdiffstatshomepage
path: root/man.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-23 15:41:09 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-23 15:41:09 +0000
commit364660607f78ece4469bf93ed5a754c04ec61847 (patch)
tree98a745094e489116617f1e7baa6ab167c9c4ed3e /man.c
parent1b03ebdce412e8ef752ed49e9aba8d666cdc9bf2 (diff)
downloadmandoc-364660607f78ece4469bf93ed5a754c04ec61847.tar.gz
mandoc-364660607f78ece4469bf93ed5a754c04ec61847.tar.zst
mandoc-364660607f78ece4469bf93ed5a754c04ec61847.zip
-man linked to mandoc in documentation.
Diffstat (limited to 'man.c')
-rw-r--r--man.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/man.c b/man.c
index 484d125e..86dc3e4f 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.2 2009/03/23 15:20:51 kristaps Exp $ */
+/* $Id: man.c,v 1.3 2009/03/23 15:41:09 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -102,8 +102,12 @@ int
man_endparse(struct man *m)
{
- /* FIXME. */
- return(1);
+ if (MAN_HALT & m->flags)
+ return(0);
+ else if (man_macroend(m))
+ return(1);
+ m->flags |= MAN_HALT;
+ return(0);
}
@@ -334,3 +338,4 @@ err: /* Error out. */
m->flags |= MAN_HALT;
return(0);
}
+