summaryrefslogtreecommitdiffstats
path: root/mdoc.3
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-31 13:50:19 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-31 13:50:19 +0000
commite487e44b52bbc7bfdb77346cc9a44d1a7c825d2c (patch)
tree643e3b4494b73a5ef92844c79270118743dd2b96 /mdoc.3
parent1cc03ab30aeb29ce86c06ab8fca7da9056992cef (diff)
downloadmandoc-e487e44b52bbc7bfdb77346cc9a44d1a7c825d2c.tar.gz
General clean-ups.
Diffstat (limited to 'mdoc.3')
-rw-r--r--mdoc.35
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc.3 b/mdoc.3
index 6333159d..faf1a894 100644
--- a/mdoc.3
+++ b/mdoc.3
@@ -36,7 +36,7 @@
.Vt extern const char * const * mdoc_argnames;
.Ft "struct mdoc *"
.Fn mdoc_alloc "void *data" "int pflags" "const struct mdoc_cb *cb"
-.Ft void
+.Ft int
.Fn mdoc_reset "struct mdoc *mdoc"
.Ft void
.Fn mdoc_free "struct mdoc *mdoc"
@@ -133,7 +133,8 @@ Returns NULL on failure. If non-NULL, the pointer must be freed with
.It Fn mdoc_reset
Reset the parser for another parse routine. After its use,
.Fn mdoc_parseln
-behaves as if invoked for the first time.
+behaves as if invoked for the first time. If it returns 0, memory could
+not be allocated.
.\" LIST-ITEM
.It Fn mdoc_free
Free all resources of a parser. The pointer is no longer valid after