summaryrefslogtreecommitdiff
path: root/bin2h.c
Commit message (Collapse)AuthorAgeFilesLines
* license: relicense clectio's own code under GPL-3.0-or-laterLukasz Kasprzak2026-07-291-1/+2
| | | | | | | | | | | | | | | | | | | | Replace the ISC licence with GPL-3.0-or-later (Łukasz Kasprzak is sole copyright holder, so relicensing is unencumbered): - LICENSE: verbatim GNU GPL v3 text. - Add "Copyright (C) 2026 Łukasz Kasprzak. SPDX-License-Identifier: GPL-3.0-or-later" headers to the project-authored sources (clectio.c with the full grant, plus mktext.c and bin2h.c), replacing their old public-domain notes. - puff.c/.h keep Mark Adler's public-domain notice unchanged: third-party, not ours to relicense, and public domain is GPL-compatible. - README and man page LICENSE sections updated to GPL-3.0-or-later, noting puff's PD status; the scripture-text carve-out (Vulgate public domain, corpora under their own terms) is preserved. Code/comment change only; builds clean under -Wall -Wextra. Claude-Session: https://claude.ai/code/session_01S1CD1u3tgSS4xNu6WHfp5a
* clectio: tiny suckless C daily readings, all readings compiled inlectio2026-07-281-0/+22
clectio prints the Catholic liturgical day and its Mass readings for a date with a single table lookup -- no computation, config file, network, or deps beyond libc. The calendar, reading citations and scripture text are all compiled in; the whole shipped package fits on a 1.44 MB floppy (~1.29 MiB) and the binary is ~0.9 MB (OF) / ~0.3 MB (EF). - suckless config.h: FORM_OF/FORM_EF, SIGLA_ENGLISH/SIGLA_LATIN, COLOR. - Bring your own Bible: `make CORPUS=mybible.tsv` recompiles with any Vulgate-numbered 6-column TSV; only the ~12k cited verses are embedded. - The hard liturgical logic stays in lectio (Go, oracle-validated); its clectio-gen emits the corpus-independent tables in gen/. The scripture text is LZSS-packed (lz.h) to fit; mktext/bin2h resolve+embed it at build time. - Verified byte-identical to lectio's readings; day names match 157/157 over a 3-year sample. Default text: public-domain Latin Vulgate. ISC-licensed. Claude-Session: https://claude.ai/code/session_01S1CD1u3tgSS4xNu6WHfp5a