diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-11-30 17:16:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-30 17:16:57 +0800 |
commit | ce56e0a845d68862118f44cb66c5f080e3c1bbed (patch) | |
tree | 3f3b593cb8574a99546b9c8324e840c4aa0451b7 /src/nvim/ui.c | |
parent | 543e0256c19f397921a332e06b423215fd9aecb5 (diff) | |
download | rneovim-ce56e0a845d68862118f44cb66c5f080e3c1bbed.tar.gz rneovim-ce56e0a845d68862118f44cb66c5f080e3c1bbed.tar.bz2 rneovim-ce56e0a845d68862118f44cb66c5f080e3c1bbed.zip |
refactor(IWYU): move UI and LineFlags to ui_defs.h (#26318)
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r-- | src/nvim/ui.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c index 36f34bc75a..07166d229e 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -1,7 +1,6 @@ #include <assert.h> #include <limits.h> #include <stdbool.h> -#include <stddef.h> #include <stdint.h> #include <stdlib.h> #include <string.h> @@ -37,6 +36,11 @@ #include "nvim/window.h" #include "nvim/winfloat.h" +typedef struct ui_event_callback { + LuaRef cb; + bool ext_widgets[kUIGlobalCount]; +} UIEventCallback; + #ifdef INCLUDE_GENERATED_DECLARATIONS # include "ui.c.generated.h" #endif @@ -692,7 +696,7 @@ void ui_call_event(char *name, Array args) ui_log(name); } -void ui_cb_update_ext(void) +static void ui_cb_update_ext(void) { memset(ui_cb_ext, 0, ARRAY_SIZE(ui_cb_ext)); @@ -708,7 +712,7 @@ void ui_cb_update_ext(void) } } -void free_ui_event_callback(UIEventCallback *event_cb) +static void free_ui_event_callback(UIEventCallback *event_cb) { api_free_luaref(event_cb->cb); xfree(event_cb); |