| 411 | } |
| 412 | |
| 413 | int object_list_contains(struct object_list *list, struct object *obj) |
| 414 | { |
| 415 | while (list) { |
| 416 | if (list->item == obj) |
| 417 | return 1; |
| 418 | list = list->next; |
| 419 | } |
| 420 | return 0; |
| 421 | } |
| 422 | |
| 423 | void object_list_free(struct object_list **list) |
| 424 | { |