diff options
-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; |