| 157 | } |
| 158 | |
| 159 | tGraphNode *DebugGraph_FindNode(int index) { |
| 160 | if (index >= graph_num_nodes) |
| 161 | return NULL; |
| 162 | tDebugGraphNode *curr = DebugGraphNode_root; |
| 163 | int ci = 0; |
| 164 | while (curr) { |
| 165 | if (ci == index) { |
| 166 | return curr->node; |
| 167 | } |
| 168 | curr = curr->next; |
| 169 | ci++; |
| 170 | } |
| 171 | |
| 172 | return NULL; |
| 173 | } |
| 174 | |
| 175 | void DebugGraph_Free(void) { |
| 176 | tDebugGraphNode *curr, *next; |
no outgoing calls
no test coverage detected