| 572 | } |
| 573 | |
| 574 | static int we_want_redo(int desired_ndx) |
| 575 | { |
| 576 | static int redo_ndx = -1; |
| 577 | |
| 578 | while (redo_ndx < desired_ndx) { |
| 579 | if (redo_ndx >= 0) |
| 580 | no_batched_update(redo_ndx, True); |
| 581 | if ((redo_ndx = flist_ndx_pop(&batch_redo_list)) < 0) |
| 582 | return 0; |
| 583 | } |
| 584 | |
| 585 | if (redo_ndx == desired_ndx) { |
| 586 | redo_ndx = -1; |
| 587 | return 1; |
| 588 | } |
| 589 | |
| 590 | return 0; |
| 591 | } |
| 592 | |
| 593 | static int gen_wants_ndx(int desired_ndx, int flist_num) |
| 594 | { |
no test coverage detected