renaming an object used to result in it having a different address, so the sequence start eating/opening, get interrupted, name the food, resume eating/opening would restart from scratch */
| 406 | so the sequence start eating/opening, get interrupted, name the food, |
| 407 | resume eating/opening would restart from scratch */ |
| 408 | void |
| 409 | food_substitution(struct obj *old_obj, struct obj *new_obj) |
| 410 | { |
| 411 | if (old_obj == svc.context.victual.piece) { |
| 412 | svc.context.victual.piece = new_obj; |
| 413 | svc.context.victual.o_id = new_obj->o_id; |
| 414 | } |
| 415 | if (old_obj == svc.context.tin.tin) { |
| 416 | svc.context.tin.tin = new_obj; |
| 417 | svc.context.tin.o_id = new_obj->o_id; |
| 418 | } |
| 419 | } |
| 420 | |
| 421 | staticfn void |
| 422 | do_reset_eat(void) |
nothing calls this directly
no outgoing calls
no test coverage detected