changeset 17:2bf246207140

Doc for visit argument of _walk_code_tree()
author Thinker K.F. Li <thinker@codemud.net>
date Fri, 10 Sep 2010 12:07:47 +0800
parents 3808a6ffc881
children 882a80582a64
files src/cospy.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cospy.c	Fri Sep 10 12:04:40 2010 +0800
+++ b/src/cospy.c	Fri Sep 10 12:07:47 2010 +0800
@@ -124,6 +124,10 @@
  * expression and data as arguments.  The cb is called only for the
  * node with tree code value given by accept_code.
  *
+ * This fuction is also used to clean visited flag of nodes in a tree.
+ * Parameter visit is true for doing normal traveling.  Visit is false
+ * for doing cleaning.
+ *
  * \param accept_code is tree code of nodes that calling cb for or -1
  *		to call cb for every node.
  * \param visit is true for traveling and false for cleaning.