From 776276d5c7e67356a880f3e31076d32cdc1c1882 Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Tue, 10 Nov 2026 11:29:58 +0300 Subject: publish --- src/transaction-heap.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/transaction-heap.h (limited to 'src/transaction-heap.h') diff --git a/src/transaction-heap.h b/src/transaction-heap.h new file mode 100644 index 0000000..43eeea3 --- /dev/null +++ b/src/transaction-heap.h @@ -0,0 +1,18 @@ +// transaction-heap.h +#ifndef INCLUDED_TRANSACTION_HEAP_H +#define INCLUDED_TRANSACTION_HEAP_H + +#include + +#include "transaction.h" + +struct transaction_heap { + struct transaction array[100]; + int count; +}; + +void transaction_heap__pop (struct transaction_heap *); +void transaction_heap__push (struct transaction_heap *, struct transaction); + +#endif // INCLUDED_TRANSACTION_HEAP_H +// transaction-heap.h ends here -- cgit v1.3.1