mimalloc/src/prim
2023-03-14 20:35:00 -07:00
..
prim-unix.c small fixes 2023-03-14 18:24:38 -07:00
prim-wasi.c small fixes 2023-03-14 18:24:38 -07:00
prim-windows.c small fixes 2023-03-14 18:24:38 -07:00
prim.c initial commit of new primitive layer 2023-03-14 16:54:46 -07:00
prim.h move threadid and mi_get_default_heap to primitives 2023-03-14 20:35:00 -07:00
readme.md initial commit of new primitive layer 2023-03-14 16:54:46 -07:00

This is the portability layer where all primitives needed from the OS are defined.

  • prim.h: API definition
  • prim.c: Selects one of prim-unix.c, prim-wasi.c, or prim-windows.c depending on the host platform.

Note: still work in progress, there may be other places in the sources that still depend on OS ifdef's.