summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-13 12:08:19 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-13 12:09:25 -0800
commit8d6efe632aaeb1831c86b27e120a344c5e3ee7d4 (patch)
tree709393e79901bb426bd853c231e20442948e1551 /man
parenta6a7d2f8f47df7144e636ae2875a8d2ffc0173ae (diff)
API improvements: cmark_event_type parameter for walk handlers.
Added cmark_event_type enum, which is used as the second parameter of the handler passed to cmark_walk. See #224.
Diffstat (limited to 'man')
-rw-r--r--man/man3/cmark.34
1 files changed, 2 insertions, 2 deletions
diff --git a/man/man3/cmark.3 b/man/man3/cmark.3
index 30165a1..4a28e4a 100644
--- a/man/man3/cmark.3
+++ b/man/man3/cmark.3
@@ -1,4 +1,4 @@
-.TH cmark 3 "December 12, 2014" "LOCAL" "Library Functions Manual"
+.TH cmark 3 "December 13, 2014" "LOCAL" "Library Functions Manual"
.SH NAME
.B cmark
@@ -277,7 +277,7 @@ typedef enum {
Walks the tree starting from root, applying handler to each node.
Nodes that can have children are visited twice, once on the way in
and once on the way out. handler is a function that takes a node
-pointer, an integer direction (1 for entering, 0 for leaving),
+pointer, a cmark_event_type,
and a pointer to a state structure that can be consulted and
updated by the handler. The handler should return 1 on success,
0 on failure. cmark_walk returns 1 if it traversed the entire