Files
metabuilder/typthon/Objects/mimalloc/prim
johndoe6345789 0e707caa56 feat: Add Typthon
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 17:10:58 +00:00
..
2026-01-21 17:10:58 +00:00
2026-01-21 17:10:58 +00:00
2026-01-21 17:10:58 +00:00
2026-01-21 17:10:58 +00:00
2026-01-21 17:10:58 +00:00
2026-01-21 17:10:58 +00:00

Portability Primitives

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

  • include/mimalloc/prim.h: primitive portability API definition.
  • prim.c: Selects one of unix/prim.c, wasi/prim.c, or windows/prim.c depending on the host platform (and on macOS, osx/prim.c defers to unix/prim.c).

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