refactor: move some constants out of vim_defs.h (#26298)

This commit is contained in:
zeertzjq
2023-11-29 20:32:40 +08:00
committed by GitHub
parent f4001d27ef
commit a6cba103ce
89 changed files with 339 additions and 352 deletions

View File

@@ -55,6 +55,9 @@
#include "nvim/types_defs.h"
#include "nvim/usercmd.h"
#include "nvim/vim_defs.h"
#ifdef USE_CRNL
# include "nvim/highlight.h"
#endif
/// Structure used to store info for each sourced file.
/// It is shared between do_source() and getsourceline().
@@ -65,7 +68,7 @@ struct source_cookie {
char *nextline; ///< if not NULL: line that was read ahead
linenr_T sourcing_lnum; ///< line number of the source file
int finished; ///< ":finish" used
#if defined(USE_CRNL)
#ifdef USE_CRNL
int fileformat; ///< EOL_UNKNOWN, EOL_UNIX or EOL_DOS
bool error; ///< true if LF found after CR-LF
#endif