robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
38986188ba
master
1#pragma once 2 3#include "nvim/memfile_defs.h" // IWYU pragma: keep 4#include "nvim/types_defs.h" // IWYU pragma: keep 5 6/// flags for mf_sync() 7enum { 8MFS_ALL = 1 ,///< also sync blocks with negative numbers 9MFS_STOP = 2 ,///< stop syncing when a character is available 10MFS_FLUSH = 4 ,///< flushed file to disk 11MFS_ZERO = 8 ,///< only write block 0 12}; 13 14enum { 15/// Minimal size for block 0 of a swap file. 16/// NOTE: This depends on size of struct block0! It's not done with a sizeof(), 17/// because struct block0 is defined in memline.c (Sorry). 18/// The maximal block size is arbitrary. 19MIN_SWAP_PAGE_SIZE = 1048 , 20MAX_SWAP_PAGE_SIZE = 50000 , 21}; 22 23#include "memfile.h.generated.h"