| 680 | } |
| 681 | |
| 682 | static void *scratch_alloc(msb_eval_t *ev, size_t n) { |
| 683 | void *p = msb_fail_item_operation(ev->item_alloc_operation) |
| 684 | ? NULL |
| 685 | : cbm_arena_alloc(&ev->scratch, n ? n : SKIP_ONE); |
| 686 | ev->oom = ev->oom || !p; |
| 687 | ev_peak(ev); |
| 688 | return p; |
| 689 | } |
| 690 | |
| 691 | static char *scratch_strndup(msb_eval_t *ev, const char *s, size_t n) { |
| 692 | char *p = msb_fail_item_operation(ev->item_alloc_operation) |
no test coverage detected