diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-12 19:16:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-12 19:16:24 +0800 |
commit | f79773a3b4b3ce5a3b37652a72b12089880f32a4 (patch) | |
tree | f86eb1b3bf90d13844a7b2c43065e380ffd1bb13 /src/nvim/api/private/helpers.h | |
parent | 1cf3a4b4095913ff9a241c07294af74e573eed54 (diff) | |
download | rneovim-f79773a3b4b3ce5a3b37652a72b12089880f32a4.tar.gz rneovim-f79773a3b4b3ce5a3b37652a72b12089880f32a4.tar.bz2 rneovim-f79773a3b4b3ce5a3b37652a72b12089880f32a4.zip |
refactor: move non-symbols in ex_eval.h to ex_eval_defs.h (#19739)
This avoids including ex_eval.h in any other header, thus preventing
future circular includes.
Diffstat (limited to 'src/nvim/api/private/helpers.h')
-rw-r--r-- | src/nvim/api/private/helpers.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/api/private/helpers.h b/src/nvim/api/private/helpers.h index 1441da853c..4608554448 100644 --- a/src/nvim/api/private/helpers.h +++ b/src/nvim/api/private/helpers.h @@ -3,7 +3,7 @@ #include "nvim/api/private/defs.h" #include "nvim/decoration.h" -#include "nvim/ex_eval.h" +#include "nvim/ex_eval_defs.h" #include "nvim/getchar.h" #include "nvim/lib/kvec.h" #include "nvim/memory.h" @@ -130,8 +130,8 @@ EXTERN PMap(handle_T) tabpage_handles INIT(= MAP_INIT); /// processed and that “other VimL code” must not be affected. typedef struct { except_T *current_exception; - struct msglist *private_msg_list; - const struct msglist *const *msg_list; + msglist_T *private_msg_list; + const msglist_T *const *msg_list; int trylevel; int got_int; int need_rethrow; @@ -144,8 +144,8 @@ typedef struct { // TODO(bfredl): prepare error-handling at "top level" (nv_event). #define TRY_WRAP(code) \ do { \ - struct msglist **saved_msg_list = msg_list; \ - struct msglist *private_msg_list; \ + msglist_T **saved_msg_list = msg_list; \ + msglist_T *private_msg_list; \ msg_list = &private_msg_list; \ private_msg_list = NULL; \ code \ |