refactor: move Arena and ArenaMem to memory_defs.h (#26240)

This commit is contained in:
zeertzjq
2023-11-27 17:21:58 +08:00
committed by GitHub
parent 84bbe4b0ca
commit 574d25642f
109 changed files with 274 additions and 309 deletions

View File

@@ -1,15 +1,16 @@
#pragma once
#include "nvim/ex_cmds_defs.h"
#include "nvim/buffer_defs.h" // IWYU pragma: keep
#include "nvim/ex_cmds_defs.h" // IWYU pragma: keep
//
// flags for check_changed()
//
#define CCGD_AW 1 // do autowrite if buffer was changed
#define CCGD_MULTWIN 2 // check also when several wins for the buf
#define CCGD_FORCEIT 4 // ! used
#define CCGD_ALLBUF 8 // may write all buffers
#define CCGD_EXCMD 16 // may suggest using !
/// flags for check_changed()
enum {
CCGD_AW = 1, ///< do autowrite if buffer was changed
CCGD_MULTWIN = 2, ///< check also when several wins for the buf
CCGD_FORCEIT = 4, ///< ! used
CCGD_ALLBUF = 8, ///< may write all buffers
CCGD_EXCMD = 16, ///< may suggest using !
};
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "ex_cmds2.h.generated.h"