aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rwxr-xr-xsrc/clint.py1
-rw-r--r--src/nvim/eval/encode.h1
-rw-r--r--src/nvim/event/defs.h3
-rw-r--r--src/nvim/highlight_group.h5
5 files changed, 3 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 079416eb43..9d9c0c7816 100644
--- a/Makefile
+++ b/Makefile
@@ -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;