… | |
… | |
412 | */ |
412 | */ |
413 | |
413 | |
414 | object * |
414 | object * |
415 | find_object (tag_t i) |
415 | find_object (tag_t i) |
416 | { |
416 | { |
417 | object *op; |
|
|
418 | |
|
|
419 | for (op = object::first; op != NULL; op = op->next) |
417 | for (object *op = object::first; op; op = op->next) |
420 | if (op->count == i) |
418 | if (op->count == i) |
421 | break; |
419 | return op; |
422 | |
420 | |
423 | return op; |
421 | return 0; |
424 | } |
422 | } |
425 | |
423 | |
426 | /* |
424 | /* |
427 | * Returns the first object which has a name equal to the argument. |
425 | * Returns the first object which has a name equal to the argument. |
428 | * Used only by the patch command, but not all that useful. |
426 | * Used only by the patch command, but not all that useful. |