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.c | |
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.c')
-rw-r--r-- | src/nvim/api/private/helpers.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c index fad75d55be..315df72a53 100644 --- a/src/nvim/api/private/helpers.c +++ b/src/nvim/api/private/helpers.c @@ -19,6 +19,7 @@ #include "nvim/eval.h" #include "nvim/eval/typval.h" #include "nvim/ex_cmds_defs.h" +#include "nvim/ex_eval.h" #include "nvim/extmark.h" #include "nvim/fileio.h" #include "nvim/highlight_group.h" @@ -54,7 +55,7 @@ void try_enter(TryState *const tstate) // save_dbg_stuff()/restore_dbg_stuff(). *tstate = (TryState) { .current_exception = current_exception, - .msg_list = (const struct msglist *const *)msg_list, + .msg_list = (const msglist_T *const *)msg_list, .private_msg_list = NULL, .trylevel = trylevel, .got_int = got_int, @@ -89,7 +90,7 @@ bool try_leave(const TryState *const tstate, Error *const err) assert(msg_list == &tstate->private_msg_list); assert(*msg_list == NULL); assert(current_exception == NULL); - msg_list = (struct msglist **)tstate->msg_list; + msg_list = (msglist_T **)tstate->msg_list; current_exception = tstate->current_exception; trylevel = tstate->trylevel; got_int = tstate->got_int; |