From ad72d252b57104ba3597f9730b283c03a5edb2de Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Tue, 28 Jan 2025 00:52:18 -0600 Subject: [PATCH] Added LFS_BIGGEST for enabling all opt-in features Like LFS_LITTLER, this is a simple alias for existing defines. In this case it enables all opt-in features, which is useful for testing: LFS_BIGGEST => LFS_CKPROGS LFS_CKFETCHES LFS_CKPARITY LFS_CKDATACKSUMS LFS_GC This lowers the risk of forgetting a feature when running tests, which has already happend a couple times. The name comes from the idea of adding other tiers of features ( LFS_LITTLER, LFS_LITTLERER, LFS_BIGGER, etc), but I'm not entirely sure what these would all look like. --- lfs_util.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lfs_util.h b/lfs_util.h index 861b42fd..88f1a779 100644 --- a/lfs_util.h +++ b/lfs_util.h @@ -35,6 +35,15 @@ #define LFS_NO_ASSERT #endif +// LFS_BIGGEST enables all opt-in features +#ifdef LFS_BIGGEST +#define LFS_CKPROGS +#define LFS_CKFETCHES +#define LFS_CKPARITY +#define LFS_CKDATACKSUMS +#define LFS_GC +#endif + // System includes #include