Added LFS_YES_* ifdefs for all mount/format flags
This lets you specify mount/format flags globally, via -DLFS_YES_REVDBG, for example. In addition to the convenience of not needing to edit code, these flags may also be able to reduce code cost by eliminating the various flag checks and untaken code paths. At the moment this relies on dead code elimination via the lfsr_m_is* functions, to keep the codebase from exploding too much.
This commit is contained in:
+26
@@ -49,6 +49,32 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// LFS_YES_* variants imply the relevant LFS_* macro
|
||||
#ifdef LFS_YES_RDONLY
|
||||
#define LFS_RDONLY
|
||||
#endif
|
||||
#ifdef LFS_YES_REVDBG
|
||||
#define LFS_REVDBG
|
||||
#endif
|
||||
#ifdef LFS_YES_REVNOISE
|
||||
#define LFS_REVNOISE
|
||||
#endif
|
||||
#ifdef LFS_YES_CKPROGS
|
||||
#define LFS_CKPROGS
|
||||
#endif
|
||||
#ifdef LFS_YES_CKFETCHES
|
||||
#define LFS_CKFETCHES
|
||||
#endif
|
||||
#ifdef LFS_YES_CKPARITY
|
||||
#define LFS_CKPARITY
|
||||
#endif
|
||||
#ifdef LFS_YES_CKDATACKSUMS
|
||||
#define LFS_CKDATACKSUMS
|
||||
#endif
|
||||
#ifdef LFS_YES_CKDATACKSUMS
|
||||
#define LFS_CKDATACKSUMS
|
||||
#endif
|
||||
|
||||
// LFS_NO_LOG disables all logging macros
|
||||
#ifdef LFS_NO_LOG
|
||||
#ifndef LFS_NO_DEBUG
|
||||
|
||||
Reference in New Issue
Block a user