summaryrefslogtreecommitdiffstatshomepage
path: root/man.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-06-18 10:32:00 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-06-18 10:32:00 +0000
commite100896ec287b69a49978cc7502276f0759544b0 (patch)
tree42153c653b231d86d04266fc491c6fd101db5f4c /man.c
parent78e476a84b5b848e06913e55ae4c965faffa0358 (diff)
downloadmandoc-e100896ec287b69a49978cc7502276f0759544b0.tar.gz
mandoc-e100896ec287b69a49978cc7502276f0759544b0.tar.zst
mandoc-e100896ec287b69a49978cc7502276f0759544b0.zip
Added -fno-ign-chars support to libman.
man_validate.c checks for non-tab/isprint words. libman hashtable fixed (was ignoring .br). Added ncount field to man_node, deprecating count() functions. Documented use of tabs in man.7.
Diffstat (limited to 'man.c')
-rw-r--r--man.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/man.c b/man.c
index 14004c55..7d197ff4 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.21 2009/06/16 19:55:28 kristaps Exp $ */
+/* $Id: man.c,v 1.22 2009/06/18 10:32:00 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -182,6 +182,8 @@ man_node_append(struct man *man, struct man_node *p)
abort();
/* NOTREACHED */
}
+
+ p->parent->nchild++;
man->last = p;