| 275 | **************************************************************************/ |
| 276 | |
| 277 | explain_chunk_str* find_chunk(agent* thisAgent, explain_chunk_str* chunk, char* name) |
| 278 | { |
| 279 | |
| 280 | while (chunk != NULL) |
| 281 | { |
| 282 | if (strcmp(chunk->name, name) == 0) |
| 283 | { |
| 284 | return (chunk); |
| 285 | } |
| 286 | chunk = chunk->next_chunk; |
| 287 | } |
| 288 | |
| 289 | print(thisAgent, "Could not find the chunk. Maybe explain was not on when it was created."); |
| 290 | /* BUGBUG: this doesn't belong here! changed for bug 608 */ |
| 291 | print(thisAgent, "\nTo turn on explain: save-backtraces --enable before the chunk is created.\n"); |
| 292 | |
| 293 | return (NULL); |
| 294 | } |
| 295 | |
| 296 | |
| 297 | /*************************************************************************** |
no test coverage detected