From 8d6efe632aaeb1831c86b27e120a344c5e3ee7d4 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 13 Dec 2014 12:08:19 -0800 Subject: 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. --- man/man3/cmark.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'man') 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 -- cgit v1.2.3