diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-22 13:40:21 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-22 13:40:21 +0300 |
| commit | 5b13d9bfa2b14c1231c5b19a9ccffb2d308112e4 (patch) | |
| tree | 635da16ef4652c7b3f06108d8069869940ef52a4 /priority_queue.h | |
| parent | 18acaac228db4b67acd375b6e5989dfbe71e8f2e (diff) | |
Implement 8dir breadth-first-search and some other stuff
Diffstat (limited to 'priority_queue.h')
| -rw-r--r-- | priority_queue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/priority_queue.h b/priority_queue.h index 1f933e7..2ac580e 100644 --- a/priority_queue.h +++ b/priority_queue.h @@ -19,7 +19,7 @@ typedef struct PositionPQNode_s PositionPQ; PositionPQ *ppq_new(Position pos, size_t priority); /* Insert a pos with priority into a given PositionPQ */ -void ppq_insert(PositionPQ **ppq, Position pos, size_t priority); +int ppq_insert(PositionPQ **ppq, Position pos, size_t priority); /* Remove and return the position with the lowest priority */ Position ppq_pop(PositionPQ **ppq); |
