summaryrefslogtreecommitdiff
path: root/t/t4013/diff.diff_initial..side
diff options
context:
space:
mode:
authorKristofer Karlsson <krka@spotify.com>2026-06-08 19:10:50 +0000
committerJunio C Hamano <gitster@pobox.com>2026-06-09 11:11:46 -0700
commit3c5783698854b56376b775af5053ae6fbe825cc0 (patch)
tree3b12723853e88b79a3f197ff999bc168e06d8912 /t/t4013/diff.diff_initial..side
parent9ac3f193c05c2237e2b14ebaa1149e9fc8a1abe0 (diff)
prio-queue: rename .nr to .nr_ and add accessor helpers
Rename the .nr member to .nr_ so that callers outside prio-queue.c that directly reference .nr get a compilation error. This catches both existing misuse and future in-flight topics. Add prio_queue_size() for callers that need to know the element count and prio_queue_for_each() for callers that need to walk all elements. Convert all external .nr users: - Loop conditions: use prio_queue_size(), prio_queue_get(), or prio_queue_peek() as the loop condition - Array iterations: use prio_queue_for_each() Signed-off-by: Kristofer Karlsson <krka@spotify.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions