core.sx owns the libc escape hatches (libc_write / libc_malloc / libc_free / memcpy / memset, all `extern libc "..."`) but never declared the `libc` #library constant — it free-rode on `#library` being program-global, satisfied by other std modules (socket/fs/cli) in a full std build. So core.sx — and list.sx, which imports it for Allocator/List — could not be imported without assembling the whole std prelude (`extern library 'libc' is not declared`). Declare `libc :: #library "c"` in core.sx itself. `#library` constants are program-global and dedup, so this is harmless alongside the other declarers, and it makes core.sx / list.sx self-contained — importable standalone. No snapshot drift (a #library decl adds no type/global), full suite green 817/0.
6.3 KiB
6.3 KiB