mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 06:46:07 +00:00
refactor: move some constants out of vim_defs.h (#26298)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user