# HG changeset patch # User Thinker K.F. Li # Date 1284091667 -28800 # Node ID 2bf2462071402daea2651d7ea69f2ce93dbec35f # Parent 3808a6ffc88195211c58e88fdd5297c54504f60f Doc for visit argument of _walk_code_tree() diff -r 3808a6ffc881 -r 2bf246207140 src/cospy.c --- 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.