We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ce9f4a commit d7ee59aCopy full SHA for d7ee59a
README
@@ -8,7 +8,7 @@ To be used in an embedded environment with small ram.
8
9
Use the heap by doing something like this:
10
11
- #include "tinyheap.c"
+ #include "tinyheap.h"
12
13
// use this space as heap
14
static char heap_space[4096];
src/tinyheap.c
@@ -306,11 +306,11 @@ void th_free(tinyheap* heap, void* p) {
306
#if TH_DUMP
307
void th_dump(tinyheap* heap) {
308
#if TH_SEEK_STRAT_MIN_MAX
309
- heap->smallFree = 0;
310
- heap->bigFree = 0;
+ //heap->smallFree = 0;
+ //heap->bigFree = 0;
311
#endif
312
#if TH_SEEK_STRAT_LAST_FREE
313
- heap->lastFree = 0;
+ //heap->lastFree = 0;
314
315
316
0 commit comments