From 46e482552c35456ddc836720df0a44ba25f60544 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Tue, 28 Jul 2026 23:33:23 +0200 Subject: feat: config.h GOSPEL_ONLY -- print all readings (default) or just the Gospel Add a compile-time toggle in config.h: GOSPEL_ONLY=0 (default) prints every reading; GOSPEL_ONLY=1 prints only the Gospel. The Gospel is matched by its part label, so it works for both forms. Help and the compiled-settings line report the mode. Also tidy print_day's header underline to match the width of the "
for " line instead of the reading count. No data change; strict -Wsign-conversion clean in both modes. Claude-Session: https://claude.ai/code/session_01S1CD1u3tgSS4xNu6WHfp5a --- config.def.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 0447669..e22075f 100644 --- a/config.def.h +++ b/config.def.h @@ -12,7 +12,15 @@ /* --- Colourize the day name with its liturgical colour on a terminal. ---- */ #define COLOR 1 +/* --- Which readings to print. -------------------------------------------- */ +#define GOSPEL_ONLY 0 /* 0 = all readings; 1 = the Gospel only */ + /* ------------------------- derived (do not edit) ------------------------- */ +#if GOSPEL_ONLY +# define READMODE "Gospel only" +#else +# define READMODE "all readings" +#endif #ifdef FORM_EF # define LITURGY "gen/liturgy_ef.h" # define FORMNAME "Extraordinary Form (1962)" -- cgit v1.3