| 189 | } |
| 190 | |
| 191 | void dumpInternal(RBTreeNode* n, int d) |
| 192 | { |
| 193 | if (!n) |
| 194 | return; |
| 195 | for (int i = 0; i < d; i++) |
| 196 | printf("--"); |
| 197 | printf("%d(%d %d)\n", n->k, n->k, n->v); |
| 198 | dumpInternal(n->left, d + 1); |
| 199 | dumpInternal(n->right, d + 1); |
| 200 | } |
| 201 | |
| 202 | void dump(RBTreeNode* n) |
| 203 | { |
nothing calls this directly
no outgoing calls
no test coverage detected