diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-12-01 09:38:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-01 09:38:04 +0800 |
commit | 0bbe8e7fc257bd06a857bfc762c2b1e8e84463e1 (patch) | |
tree | 73366485778e8ababa8160c921aada5e9b0c69e8 | |
parent | 09e93d7c4d33451ffe2dd2edeb7e2124b83c8078 (diff) | |
download | rneovim-0bbe8e7fc257bd06a857bfc762c2b1e8e84463e1.tar.gz rneovim-0bbe8e7fc257bd06a857bfc762c2b1e8e84463e1.tar.bz2 rneovim-0bbe8e7fc257bd06a857bfc762c2b1e8e84463e1.zip |
refactor(IWYU): fix includes for highlight_group.h (#26340)
-rw-r--r-- | Makefile | 1 | ||||
-rwxr-xr-x | src/clint.py | 1 | ||||
-rw-r--r-- | src/nvim/eval/encode.h | 1 | ||||
-rw-r--r-- | src/nvim/event/defs.h | 3 | ||||
-rw-r--r-- | src/nvim/highlight_group.h | 5 |
5 files changed, 3 insertions, 8 deletions
@@ -174,7 +174,6 @@ iwyu: build/.ran-cmake |src/nvim/globals.h\ |src/nvim/grid.h\ |src/nvim/highlight.h\ - |src/nvim/highlight_group.h\ |src/nvim/input.h\ |src/nvim/keycodes.h\ |src/nvim/lua/executor.h\ diff --git a/src/clint.py b/src/clint.py index 2a7eb16c9a..596e2d8a26 100755 --- a/src/clint.py +++ b/src/clint.py @@ -932,7 +932,6 @@ def CheckIncludes(filename, lines, error): "src/nvim/globals.h", "src/nvim/grid.h", "src/nvim/highlight.h", - "src/nvim/highlight_group.h", "src/nvim/input.h", "src/nvim/keycodes.h", "src/nvim/lua/executor.h", diff --git a/src/nvim/eval/encode.h b/src/nvim/eval/encode.h index 699956d8ac..11a0ce3932 100644 --- a/src/nvim/eval/encode.h +++ b/src/nvim/eval/encode.h @@ -5,7 +5,6 @@ #include <stddef.h> #include <string.h> -#include "nvim/eval.h" #include "nvim/eval/typval.h" #include "nvim/eval/typval_defs.h" #include "nvim/garray_defs.h" diff --git a/src/nvim/event/defs.h b/src/nvim/event/defs.h index 571f61dfdb..11563b99b6 100644 --- a/src/nvim/event/defs.h +++ b/src/nvim/event/defs.h @@ -3,14 +3,13 @@ #include <assert.h> #include <stdarg.h> -#define EVENT_HANDLER_MAX_ARGC 10 +enum { EVENT_HANDLER_MAX_ARGC = 10, }; typedef void (*argv_callback)(void **argv); typedef struct message { argv_callback handler; void *argv[EVENT_HANDLER_MAX_ARGC]; } Event; -typedef void (*event_scheduler)(Event event, void *data); #define VA_EVENT_INIT(event, h, a) \ do { \ diff --git a/src/nvim/highlight_group.h b/src/nvim/highlight_group.h index ca7bd36271..8a4eb83827 100644 --- a/src/nvim/highlight_group.h +++ b/src/nvim/highlight_group.h @@ -1,13 +1,12 @@ #pragma once -#include "nvim/api/keysets_defs.h" +#include "nvim/api/keysets_defs.h" // IWYU pragma: keep #include "nvim/api/private/defs.h" // IWYU pragma: keep -#include "nvim/api/private/helpers.h" #include "nvim/cmdexpand_defs.h" // IWYU pragma: keep #include "nvim/highlight_defs.h" #include "nvim/types_defs.h" // IWYU pragma: keep -#define MAX_HL_ID 20000 // maximum value for a highlight ID. +enum { MAX_HL_ID = 20000, }; ///< maximum value for a highlight ID. typedef struct { char *name; |