107 *result = (void*)root; |
107 *result = (void*)root; |
108 return ret; |
108 return ret; |
109 } |
109 } |
110 |
110 |
111 // create a working stack |
111 // create a working stack |
112 cx_array_declare(void const*, work); |
112 CX_ARRAY_DECLARE(void const*, work); |
113 cx_array_initialize(work, 32); |
113 cx_array_initialize(work, 32); |
114 |
114 |
115 // add the children of root to the working stack |
115 // add the children of root to the working stack |
116 { |
116 { |
117 void *c = tree_children(root); |
117 void *c = tree_children(root); |