mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 22:36:09 +00:00

These are not needed after #35129 but making uncrustify still play nice with them was a bit tricky. Unfortunately `uncrustify --update-config-with-doc` breaks strings with backslashes. This issue has been reported upstream, and in the meanwhile auto-update on every single run has been disabled.
24 lines
704 B
C
24 lines
704 B
C
#pragma once
|
|
|
|
#include "nvim/memfile_defs.h" // IWYU pragma: keep
|
|
#include "nvim/types_defs.h" // IWYU pragma: keep
|
|
|
|
/// flags for mf_sync()
|
|
enum {
|
|
MFS_ALL = 1, ///< also sync blocks with negative numbers
|
|
MFS_STOP = 2, ///< stop syncing when a character is available
|
|
MFS_FLUSH = 4, ///< flushed file to disk
|
|
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,
|
|
};
|
|
|
|
#include "memfile.h.generated.h"
|