robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

bfredlMerge pull request #35206 from bfredl/nopreproc_cleanup38986188ba

master
704 B23 linesraw
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 {
8  MFS_ALL   = 1,  ///< also sync blocks with negative numbers
9  MFS_STOP  = 2,  ///< stop syncing when a character is available
10  MFS_FLUSH = 4,  ///< flushed file to disk
11  MFS_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.
19  MIN_SWAP_PAGE_SIZE = 1048,
20  MAX_SWAP_PAGE_SIZE = 50000,
21};
22
23#include "memfile.h.generated.h"