From 6b5b7c9060f4e317ed5463772369e727fcfeeb05 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Sun, 29 Mar 2026 15:39:50 +0300 Subject: Implement ppq_remove() (possibly buggy idk) --- priority_queue.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'priority_queue.h') diff --git a/priority_queue.h b/priority_queue.h index c121487..241dcc7 100644 --- a/priority_queue.h +++ b/priority_queue.h @@ -25,6 +25,9 @@ int ppq_insert(PositionPQ **ppq, Position pos, size_t priority); /* Remove and return the position with the lowest priority */ Position ppq_pop(PositionPQ **ppq); +/* Remove a given pos fron ppq */ +void ppq_remove(PositionPQ **ppq, Position pos); + /* Change the priority of a given pos, moving it to a different place in the * linked list ("POTENTIALLY NOT NEEDED" since we don't use different weights */ void ppq_reprioritize(PositionPQ *ppq, Position pos, size_t priority); -- cgit v1.2.3