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

@@ -1,14 +1,6 @@
#pragma once
typedef struct vim_state VimState;
typedef int (*state_check_callback)(VimState *state);
typedef int (*state_execute_callback)(VimState *state, int key);
struct vim_state {
state_check_callback check;
state_execute_callback execute;
};
#include "nvim/state_defs.h" // IWYU pragma: export
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "state.h.generated.h"