refactor: move some constants out of vim_defs.h (#26298)

This commit is contained in:
zeertzjq
2023-11-29 20:32:40 +08:00
committed by GitHub
parent f4001d27ef
commit a6cba103ce
89 changed files with 339 additions and 352 deletions

View File

@@ -11,6 +11,15 @@ enum {
MFS_ZERO = 8, ///< only write block 0
};
enum {
/// Minimal size for block 0 of a swap file.
/// NOTE: This depends on size of struct block0! It's not done with a sizeof(),
/// because struct block0 is defined in memline.c (Sorry).
/// The maximal block size is arbitrary.
MIN_SWAP_PAGE_SIZE = 1048,
MAX_SWAP_PAGE_SIZE = 50000,
};
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "memfile.h.generated.h"
#endif