Repository navigation
Sword 0.2.4 — Fold
2026-10-21. A patch to Fold for programs that talk to C: C's types by their
C names, and the errno a failing C function leaves behind.
Standard library
std/cnames C's types the way a header does —c.Int,c.Long,
c.SizeT,c.SSizeT,c.Double,c.Bool,c.Stringfor a
const char *,c.Ptrfor avoid *, and the rest — so a declaration
copied from a header reads like the original. Each is an alias, so ac.Int
is ani32and passes for one.c.Charisu8, for text; a plainchar
passed by value takesc.SCharorc.UChar, since whether it is signed is
the platform's choice.os.Errnoreads the errno a C function just left, and
os.ClearErrnozeroes it forstrtoland its family, which say they
failed only through errno. errno belongs to the thread, so it is read
straight after the call, before anything that could wait.
Documentation
- The Neovim section of the editors' README, with a fix for installing
swordlsunder Lua's conventions.
Nothing that compiled before stops compiling.