Skip to content
pi-c View Ticket
Login

View Ticket

2026-11-22
12:24 • Closed ticket [e81260df5e]: amalgam: ship pic as an SQLite-style amalgamation plus 3 other changes artifact: 410060693b user: pi-c-lander
2026-11-21
21:18 • Ticket [e81260df5e]: 1 change artifact: d5f063d350 user: quarry
17:16 • Ticket [e81260df5e]: 1 change artifact: 5d7a34aa44 user: dmestas
17:14 • New ticket [e81260df5e]. artifact: 0430613463 user: dmestas

amalgam: ship pic as an SQLite-style amalgamation

Closede81260df5ec1c0f8a34f4ab3949606f950e7b64bCreated 9.2 days agoUpdated 8.4 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).