Skip to content
pi-c View Ticket
Login

View Ticket

amalgam: ship pic as an SQLite-style amalgamation

Closede81260df5ec1c0f8a34f4ab3949606f950e7b64bCreated 9.3 days agoUpdated 8.5 days ago
Description2026-11-21 17:14:28
Plan after research (SQLite mksqlite3c.tcl, libfossil make-amalgamation.bash): tools/amalgamate.sh in POSIX sh+awk, one pass; hand-ordered list with a check that every src/*.c is listed; internal headers inlined once at the top, #include "..." dropped; file banners; PIC_AMALGAMATION defined; optional -l for #line. Collisions fixed by per-file prefixes, enforced by a check that fails on any top-level static defined in two files. make test-amal builds pic.c plus deps and runs the suite against it. The release is a tarball of pic.c, deps and SHA256SUMS, verified with cc -O2 *.c -lm -lpthread.
2026-11-22 12:24:36

Landed in #83 (make amalgamation: a source bundle that builds with cc -O2 *.c -o pic -lm -lpthread; make test-amal in CI) and #85 (pic and pic-dev compile from the same generated pic.c, #line markers in dev).