Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
osx/ | 04-Jul-2025 | - | 469 | 317 | ||
unix/ | 04-Jul-2025 | - | 861 | 624 | ||
wasi/ | 04-Jul-2025 | - | 277 | 166 | ||
windows/ | 04-Jul-2025 | - | 1,639 | 944 | ||
prim.c | D | 04-Jul-2025 | 867 | 25 | 10 | |
readme.md | D | 04-Jul-2025 | 456 | 9 | 6 |
readme.md
1## Portability Primitives 2 3This is the portability layer where all primitives needed from the OS are defined. 4 5- `include/mimalloc/prim.h`: primitive portability API definition. 6- `prim.c`: Selects one of `unix/prim.c`, `wasi/prim.c`, or `windows/prim.c` depending on the host platform 7 (and on macOS, `osx/prim.c` defers to `unix/prim.c`). 8 9Note: still work in progress, there may still be places in the sources that still depend on OS ifdef's.