refactor: move extern variables out of _defs.h files (#26320)

This commit is contained in:
zeertzjq
2023-11-30 18:41:52 +08:00
committed by GitHub
parent ce56e0a845
commit 95dbf1af73
9 changed files with 205 additions and 183 deletions

View File

@@ -2,6 +2,17 @@
#include "nvim/api/private/defs.h" // IWYU pragma: keep
#include "nvim/buffer_defs.h" // IWYU pragma: keep
#include "nvim/macros_defs.h"
/// NW -> 0
/// NE -> kFloatAnchorEast
/// SW -> kFloatAnchorSouth
/// SE -> kFloatAnchorSouth | kFloatAnchorEast
EXTERN const char *const float_anchor_str[] INIT( = { "NW", "NE", "SW", "SE" });
/// Keep in sync with FloatRelative in buffer_defs.h
EXTERN const char *const float_relative_str[]
INIT( = { "editor", "win", "cursor", "mouse" });
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "winfloat.h.generated.h"