|
| |||||||||||||||||||||||||||||||||||||||||||||||||
| Name | Size | |
|---|---|---|
| BumpAlloc.c | 2.8 KiB | log stats plain blame |
| BumpAlloc.h | 148 B | log stats plain blame |
| HashTable.c | 5.5 KiB | log stats plain blame |
| HashTable.h | 855 B | log stats plain blame |
| MemoryManager.c | 4.3 KiB | log stats plain blame |
| MemoryManager.h | 609 B | log stats plain blame |
| README.md | 568 B | log stats plain blame |
| String.c | 4.8 KiB | log stats plain blame |
| String.h | 790 B | log stats plain blame |
| Types.h | 1.9 KiB | log stats plain blame |
| Vector.c | 2.3 KiB | log stats plain blame |
| Vector.h | 476 B | log stats plain blame |
| example.c | 1.4 KiB | log stats plain blame |
foollib
A collection of C99 utilities and containers.
Memory manager
The primary concept behind this repository is the MemoryManager.
It provides a generic allocation/deallocation interface, allowing you to use different allocators in different scenarios.
The standard allocator (M_std) provides a trivial wrapper over malloc and free.
For convenience, M_STD is a global object, which contains the trivial wrappers.
In case you do not want any special memory management, you should pass M_STD when a MemoryManager is required.
