Sun, 27 Apr 2025 12:54:16 +0200
add explanation of depth to the iterator/visitor field
src/cx/tree.h | file | annotate | diff | comparison | revisions |
--- a/src/cx/tree.h Sun Apr 27 12:37:29 2025 +0200 +++ b/src/cx/tree.h Sun Apr 27 12:54:16 2025 +0200 @@ -120,6 +120,7 @@ size_t stack_size; /** * The current depth in the tree. + * The node with which the iteration starts has depth 1. */ size_t depth; }; @@ -135,6 +136,7 @@ void *node; /** * The depth of the node. + * The first visited node has depth 1. */ size_t depth; /**