refactor: remove vim.h from more headers (#26244)

This commit is contained in:
zeertzjq 2023-11-27 18:37:35 +08:00 committed by GitHub
parent a03bd2b878
commit acf5252879
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 4 deletions

View File

@ -2,11 +2,13 @@
#include <stdbool.h> #include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#include <stdint.h>
#include "klib/kvec.h" #include "klib/kvec.h"
#include "nvim/api/private/defs.h" #include "nvim/api/private/defs.h"
#include "nvim/api/private/dispatch.h" #include "nvim/api/private/dispatch.h"
#include "nvim/decoration.h" #include "nvim/decoration.h"
#include "nvim/eval/typval_defs.h"
#include "nvim/ex_eval_defs.h" #include "nvim/ex_eval_defs.h"
#include "nvim/getchar.h" #include "nvim/getchar.h"
#include "nvim/gettext.h" #include "nvim/gettext.h"
@ -14,7 +16,7 @@
#include "nvim/macros.h" #include "nvim/macros.h"
#include "nvim/map.h" #include "nvim/map.h"
#include "nvim/memory.h" #include "nvim/memory.h"
#include "nvim/vim.h" #include "nvim/message.h"
#define OBJECT_OBJ(o) o #define OBJECT_OBJ(o) o

View File

@ -9,7 +9,6 @@
#include "nvim/eval/typval.h" #include "nvim/eval/typval.h"
#include "nvim/eval/typval_defs.h" #include "nvim/eval/typval_defs.h"
#include "nvim/garray_defs.h" #include "nvim/garray_defs.h"
#include "nvim/vim.h"
/// Convert Vimscript value to msgpack string /// Convert Vimscript value to msgpack string
/// ///

View File

@ -17,6 +17,10 @@
# include <sanitizer/ubsan_interface.h> # include <sanitizer/ubsan_interface.h>
#endif #endif
// uncrustify:off
#include "nvim/vim.h"
// uncrustify:on
#include "nvim/arglist.h" #include "nvim/arglist.h"
#include "nvim/ascii.h" #include "nvim/ascii.h"
#include "nvim/autocmd.h" #include "nvim/autocmd.h"
@ -82,7 +86,6 @@
#include "nvim/ui_client.h" #include "nvim/ui_client.h"
#include "nvim/ui_compositor.h" #include "nvim/ui_compositor.h"
#include "nvim/version.h" #include "nvim/version.h"
#include "nvim/vim.h"
#include "nvim/window.h" #include "nvim/window.h"
#ifdef MSWIN #ifdef MSWIN
# include "nvim/os/os_win_console.h" # include "nvim/os/os_win_console.h"

View File

@ -10,7 +10,6 @@
#include "nvim/event/process.h" #include "nvim/event/process.h"
#include "nvim/event/socket.h" #include "nvim/event/socket.h"
#include "nvim/map.h" #include "nvim/map.h"
#include "nvim/vim.h"
typedef struct Channel Channel; typedef struct Channel Channel;
typedef struct Unpacker Unpacker; typedef struct Unpacker Unpacker;