diff options
| author | Karsten Schmidt <k@postspectacular.com> | 2019-08-17 22:56:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-17 22:56:45 +0100 |
| commit | 96450f32d80fe7d23f6aa5426046143e57801bc4 (patch) | |
| tree | 061ac06af22117b10d5eb26be2acc17e7f109ea7 /tinyalloc.h | |
| parent | 9ebd4a406bf783a68b0e0ba57545f11f12bf5827 (diff) | |
| parent | 824a6403417482a3349616514ebdea3f790c271e (diff) | |
Merge pull request #5 from winduptoy/master
Move compile-time configuration into a runtime configuration
Diffstat (limited to 'tinyalloc.h')
| -rw-r--r-- | tinyalloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyalloc.h b/tinyalloc.h index 6a76d2a..947af94 100644 --- a/tinyalloc.h +++ b/tinyalloc.h @@ -1,7 +1,7 @@ #include <stdbool.h> #include <stddef.h> -bool ta_init(); +bool ta_init(const void *base, const void *limit, const size_t heap_blocks, const size_t split_thresh, const size_t alignment); void *ta_alloc(size_t num); void *ta_calloc(size_t num, size_t size); bool ta_free(void *ptr); |
