aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-28 23:33:23 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-28 23:33:23 +0200
commit46e482552c35456ddc836720df0a44ba25f60544 (patch)
tree241d18be89022e7e0951b80752f7b2c3815de0e1 /config.def.h
parent4a0ab3d2f390a68b18c40b04269c46a6373c08f9 (diff)
downloadclectio-46e482552c35456ddc836720df0a44ba25f60544.tar.gz
clectio-46e482552c35456ddc836720df0a44ba25f60544.zip
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 "<form> for <date>" line instead of the reading count. No data change; strict -Wsign-conversion clean in both modes. Claude-Session: https://claude.ai/code/session_01S1CD1u3tgSS4xNu6WHfp5a
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h8
1 files changed, 8 insertions, 0 deletions
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)"