aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-11-26 22:58:52 +0800
committerGitHub <noreply@github.com>2023-11-26 22:58:52 +0800
commit6361806aa28edca55ad3316a58bc3e936df9c0eb (patch)
treefed82d95b3cadb76112b6a1124e7d7def6b7bc2c /src
parent34509bbea3e8c6a8033911aea645b1b5579f7d1a (diff)
downloadrneovim-6361806aa28edca55ad3316a58bc3e936df9c0eb.tar.gz
rneovim-6361806aa28edca55ad3316a58bc3e936df9c0eb.tar.bz2
rneovim-6361806aa28edca55ad3316a58bc3e936df9c0eb.zip
refactor: move garray_T to garray_defs.h (#26227)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/clint.py2
-rw-r--r--src/nvim/api/deprecated.c1
-rw-r--r--src/nvim/api/extmark.c1
-rw-r--r--src/nvim/api/win_config.c1
-rw-r--r--src/nvim/arglist_defs.h2
-rw-r--r--src/nvim/assert.h1
-rw-r--r--src/nvim/buffer_defs.h2
-rw-r--r--src/nvim/channel.c1
-rw-r--r--src/nvim/channel.h2
-rw-r--r--src/nvim/cmdexpand.c1
-rw-r--r--src/nvim/cmdexpand.h2
-rw-r--r--src/nvim/drawline.c1
-rw-r--r--src/nvim/drawscreen.c1
-rw-r--r--src/nvim/eval/encode.h2
-rw-r--r--src/nvim/eval/typval.c1
-rw-r--r--src/nvim/eval/typval.h2
-rw-r--r--src/nvim/eval/typval_defs.h2
-rw-r--r--src/nvim/eval/userfunc.c1
-rw-r--r--src/nvim/eval/userfunc.h2
-rw-r--r--src/nvim/extmark.c1
-rw-r--r--src/nvim/fileio.c1
-rw-r--r--src/nvim/fileio.h2
-rw-r--r--src/nvim/fold.c2
-rw-r--r--src/nvim/fold.h2
-rw-r--r--src/nvim/garray.h15
-rw-r--r--src/nvim/garray_defs.h17
-rw-r--r--src/nvim/main.c6
-rw-r--r--src/nvim/marktree.c1
-rw-r--r--src/nvim/marktree.h2
-rw-r--r--src/nvim/os/os.h2
-rw-r--r--src/nvim/path.c1
-rw-r--r--src/nvim/path.h2
-rw-r--r--src/nvim/plines.c1
-rw-r--r--src/nvim/rbuffer.h2
-rw-r--r--src/nvim/runtime.h2
-rw-r--r--src/nvim/sign.c1
-rw-r--r--src/nvim/spell_defs.h2
-rw-r--r--src/nvim/spellsuggest.c1
-rw-r--r--src/nvim/spellsuggest.h2
-rw-r--r--src/nvim/usercmd.h2
40 files changed, 49 insertions, 46 deletions
diff --git a/src/clint.py b/src/clint.py
index e302a10505..79c916c0b9 100755
--- a/src/clint.py
+++ b/src/clint.py
@@ -916,7 +916,6 @@ def CheckIncludes(filename, lines, error):
"src/nvim/api/window.h",
"src/nvim/arabic.h",
"src/nvim/arglist.h",
- "src/nvim/arglist_defs.h",
"src/nvim/ascii.h",
"src/nvim/assert.h",
"src/nvim/autocmd.h",
@@ -1067,7 +1066,6 @@ def CheckIncludes(filename, lines, error):
"src/nvim/spell.h",
"src/nvim/spell_defs.h",
"src/nvim/spellfile.h",
- "src/nvim/spellsuggest.h",
"src/nvim/state.h",
"src/nvim/statusline.h",
"src/nvim/statusline_defs.h",
diff --git a/src/nvim/api/deprecated.c b/src/nvim/api/deprecated.c
index 9ea0de4b89..47d3e1146c 100644
--- a/src/nvim/api/deprecated.c
+++ b/src/nvim/api/deprecated.c
@@ -13,7 +13,6 @@
#include "nvim/api/vimscript.h"
#include "nvim/buffer_defs.h"
#include "nvim/decoration.h"
-#include "nvim/decoration_defs.h"
#include "nvim/extmark.h"
#include "nvim/globals.h"
#include "nvim/highlight.h"
diff --git a/src/nvim/api/extmark.c b/src/nvim/api/extmark.c
index d2e387f478..5112d2474d 100644
--- a/src/nvim/api/extmark.c
+++ b/src/nvim/api/extmark.c
@@ -13,7 +13,6 @@
#include "nvim/buffer_defs.h"
#include "nvim/charset.h"
#include "nvim/decoration.h"
-#include "nvim/decoration_defs.h"
#include "nvim/decoration_provider.h"
#include "nvim/drawscreen.h"
#include "nvim/extmark.h"
diff --git a/src/nvim/api/win_config.c b/src/nvim/api/win_config.c
index a35ad57d8f..de26c1255c 100644
--- a/src/nvim/api/win_config.c
+++ b/src/nvim/api/win_config.c
@@ -11,7 +11,6 @@
#include "nvim/autocmd.h"
#include "nvim/buffer_defs.h"
#include "nvim/decoration.h"
-#include "nvim/decoration_defs.h"
#include "nvim/drawscreen.h"
#include "nvim/globals.h"
#include "nvim/grid.h"
diff --git a/src/nvim/arglist_defs.h b/src/nvim/arglist_defs.h
index 02651954db..a79d540a6e 100644
--- a/src/nvim/arglist_defs.h
+++ b/src/nvim/arglist_defs.h
@@ -1,6 +1,6 @@
#pragma once
-#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
/// Argument list: Array of file names.
/// Used for the global argument list and the argument lists local to a window.
diff --git a/src/nvim/assert.h b/src/nvim/assert.h
index 6048b8f30b..cfc27ee994 100644
--- a/src/nvim/assert.h
+++ b/src/nvim/assert.h
@@ -1,6 +1,7 @@
#pragma once
#include "auto/config.h"
+#include "nvim/log.h"
// support static asserts (aka compile-time asserts)
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index 21cbefdb90..803d2aa0c6 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -19,7 +19,7 @@ typedef struct {
#include "nvim/arglist_defs.h"
#include "nvim/eval/typval_defs.h"
#include "nvim/extmark_defs.h"
-#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/grid_defs.h"
#include "nvim/hashtab.h"
#include "nvim/highlight_defs.h"
diff --git a/src/nvim/channel.c b/src/nvim/channel.c
index 0ad37c08ee..b601d50b49 100644
--- a/src/nvim/channel.c
+++ b/src/nvim/channel.c
@@ -18,6 +18,7 @@
#include "nvim/event/rstream.h"
#include "nvim/event/socket.h"
#include "nvim/event/wstream.h"
+#include "nvim/garray.h"
#include "nvim/gettext.h"
#include "nvim/globals.h"
#include "nvim/log.h"
diff --git a/src/nvim/channel.h b/src/nvim/channel.h
index a042faeb82..69485da030 100644
--- a/src/nvim/channel.h
+++ b/src/nvim/channel.h
@@ -10,7 +10,7 @@
#include "nvim/event/process.h"
#include "nvim/event/socket.h"
#include "nvim/event/stream.h"
-#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/macros.h"
#include "nvim/main.h"
#include "nvim/map.h"
diff --git a/src/nvim/cmdexpand.c b/src/nvim/cmdexpand.c
index 1f97214401..9b40a17d20 100644
--- a/src/nvim/cmdexpand.c
+++ b/src/nvim/cmdexpand.c
@@ -26,6 +26,7 @@
#include "nvim/ex_docmd.h"
#include "nvim/ex_getln.h"
#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/getchar.h"
#include "nvim/gettext.h"
#include "nvim/globals.h"
diff --git a/src/nvim/cmdexpand.h b/src/nvim/cmdexpand.h
index ebdffc9b80..dabef1125e 100644
--- a/src/nvim/cmdexpand.h
+++ b/src/nvim/cmdexpand.h
@@ -3,7 +3,7 @@
#include "nvim/cmdexpand_defs.h"
#include "nvim/eval/typval_defs.h"
#include "nvim/ex_getln.h"
-#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/types.h"
// Values for nextwild() and ExpandOne(). See ExpandOne() for meaning.
diff --git a/src/nvim/drawline.c b/src/nvim/drawline.c
index 0d405622b6..188d7f68c6 100644
--- a/src/nvim/drawline.c
+++ b/src/nvim/drawline.c
@@ -15,7 +15,6 @@
#include "nvim/cursor.h"
#include "nvim/cursor_shape.h"
#include "nvim/decoration.h"
-#include "nvim/decoration_defs.h"
#include "nvim/decoration_provider.h"
#include "nvim/diff.h"
#include "nvim/drawline.h"
diff --git a/src/nvim/drawscreen.c b/src/nvim/drawscreen.c
index c6fd186ef2..b3d38cec0a 100644
--- a/src/nvim/drawscreen.c
+++ b/src/nvim/drawscreen.c
@@ -68,7 +68,6 @@
#include "nvim/cmdexpand.h"
#include "nvim/cursor.h"
#include "nvim/decoration.h"
-#include "nvim/decoration_defs.h"
#include "nvim/decoration_provider.h"
#include "nvim/diff.h"
#include "nvim/digraph.h"
diff --git a/src/nvim/eval/encode.h b/src/nvim/eval/encode.h
index a30016e724..15a8277b7c 100644
--- a/src/nvim/eval/encode.h
+++ b/src/nvim/eval/encode.h
@@ -8,7 +8,7 @@
#include "nvim/eval.h"
#include "nvim/eval/typval.h"
#include "nvim/eval/typval_defs.h"
-#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/vim.h"
/// Convert Vimscript value to msgpack string
diff --git a/src/nvim/eval/typval.c b/src/nvim/eval/typval.c
index 74bde0147d..a0329221d5 100644
--- a/src/nvim/eval/typval.c
+++ b/src/nvim/eval/typval.c
@@ -18,6 +18,7 @@
#include "nvim/eval/userfunc.h"
#include "nvim/eval/vars.h"
#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/gettext.h"
#include "nvim/globals.h"
#include "nvim/hashtab.h"
diff --git a/src/nvim/eval/typval.h b/src/nvim/eval/typval.h
index d39425a327..b9f2f9b1b0 100644
--- a/src/nvim/eval/typval.h
+++ b/src/nvim/eval/typval.h
@@ -8,7 +8,7 @@
#include "nvim/eval/typval_defs.h"
#include "nvim/func_attr.h"
-#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/gettext.h"
#include "nvim/hashtab.h"
#include "nvim/lib/queue.h"
diff --git a/src/nvim/eval/typval_defs.h b/src/nvim/eval/typval_defs.h
index 996dac20bc..3c539863f8 100644
--- a/src/nvim/eval/typval_defs.h
+++ b/src/nvim/eval/typval_defs.h
@@ -3,7 +3,7 @@
#include <inttypes.h>
#include <limits.h>
-#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/hashtab.h"
#include "nvim/lib/queue.h"
#include "nvim/pos.h"
diff --git a/src/nvim/eval/userfunc.c b/src/nvim/eval/userfunc.c
index c2c4405c31..cd1ee94298 100644
--- a/src/nvim/eval/userfunc.c
+++ b/src/nvim/eval/userfunc.c
@@ -24,6 +24,7 @@
#include "nvim/ex_eval.h"
#include "nvim/ex_getln.h"
#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/getchar.h"
#include "nvim/gettext.h"
#include "nvim/globals.h"
diff --git a/src/nvim/eval/userfunc.h b/src/nvim/eval/userfunc.h
index 61ada9dd73..4c4d35177e 100644
--- a/src/nvim/eval/userfunc.h
+++ b/src/nvim/eval/userfunc.h
@@ -7,7 +7,7 @@
#include "nvim/eval.h"
#include "nvim/eval/typval_defs.h"
#include "nvim/ex_cmds_defs.h"
-#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/hashtab.h"
#include "nvim/pos.h"
#include "nvim/types.h"
diff --git a/src/nvim/extmark.c b/src/nvim/extmark.c
index 7bfa7ae62f..bc8d794906 100644
--- a/src/nvim/extmark.c
+++ b/src/nvim/extmark.c
@@ -31,7 +31,6 @@
#include "nvim/buffer_defs.h"
#include "nvim/buffer_updates.h"
#include "nvim/decoration.h"
-#include "nvim/decoration_defs.h"
#include "nvim/extmark.h"
#include "nvim/extmark_defs.h"
#include "nvim/globals.h"
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index fce2ddc211..0efd826f1d 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -31,6 +31,7 @@
#include "nvim/fileio.h"
#include "nvim/fold.h"
#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/getchar.h"
#include "nvim/gettext.h"
#include "nvim/globals.h"
diff --git a/src/nvim/fileio.h b/src/nvim/fileio.h
index 85d41e466a..318be20c91 100644
--- a/src/nvim/fileio.h
+++ b/src/nvim/fileio.h
@@ -3,7 +3,7 @@
#include "nvim/buffer_defs.h"
#include "nvim/eval/typval_defs.h"
#include "nvim/ex_cmds_defs.h"
-#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/globals.h"
#include "nvim/os/fs_defs.h"
#include "nvim/os/os.h"
diff --git a/src/nvim/fold.c b/src/nvim/fold.c
index 477e4a20cd..1cd57946a6 100644
--- a/src/nvim/fold.c
+++ b/src/nvim/fold.c
@@ -20,7 +20,6 @@
#include "nvim/charset.h"
#include "nvim/cursor.h"
#include "nvim/decoration.h"
-#include "nvim/decoration_defs.h"
#include "nvim/diff.h"
#include "nvim/drawscreen.h"
#include "nvim/eval.h"
@@ -29,6 +28,7 @@
#include "nvim/extmark.h"
#include "nvim/fold.h"
#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/gettext.h"
#include "nvim/globals.h"
#include "nvim/indent.h"
diff --git a/src/nvim/fold.h b/src/nvim/fold.h
index 43eb152fc0..9992295ca4 100644
--- a/src/nvim/fold.h
+++ b/src/nvim/fold.h
@@ -4,7 +4,7 @@
#include "nvim/buffer_defs.h"
#include "nvim/fold_defs.h"
-#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/macros.h"
#include "nvim/pos.h"
#include "nvim/types.h"
diff --git a/src/nvim/garray.h b/src/nvim/garray.h
index d5322053bb..bebf6fc35f 100644
--- a/src/nvim/garray.h
+++ b/src/nvim/garray.h
@@ -3,24 +3,11 @@
#include <stdbool.h>
#include <stddef.h>
+#include "nvim/garray_defs.h"
#include "nvim/log.h"
#include "nvim/memory.h"
#include "nvim/types.h"
-/// Structure used for growing arrays.
-/// This is used to store information that only grows, is deleted all at
-/// once, and needs to be accessed by index. See ga_clear() and ga_grow().
-typedef struct growarray {
- int ga_len; // current number of items used
- int ga_maxlen; // maximum number of items possible
- int ga_itemsize; // sizeof(item)
- int ga_growsize; // number of items to grow each time
- void *ga_data; // pointer to the first item
-} garray_T;
-
-#define GA_EMPTY_INIT_VALUE { 0, 0, 0, 1, NULL }
-#define GA_INIT(itemsize, growsize) { 0, 0, (itemsize), (growsize), NULL }
-
#define GA_EMPTY(ga_ptr) ((ga_ptr)->ga_len <= 0)
#define GA_APPEND(item_type, gap, item) \
diff --git a/src/nvim/garray_defs.h b/src/nvim/garray_defs.h
new file mode 100644
index 0000000000..5f4032884e
--- /dev/null
+++ b/src/nvim/garray_defs.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include <stddef.h>
+
+/// Structure used for growing arrays.
+/// This is used to store information that only grows, is deleted all at
+/// once, and needs to be accessed by index. See ga_clear() and ga_grow().
+typedef struct growarray {
+ int ga_len; // current number of items used
+ int ga_maxlen; // maximum number of items possible
+ int ga_itemsize; // sizeof(item)
+ int ga_growsize; // number of items to grow each time
+ void *ga_data; // pointer to the first item
+} garray_T;
+
+#define GA_EMPTY_INIT_VALUE { 0, 0, 0, 1, NULL }
+#define GA_INIT(itemsize, growsize) { 0, 0, (itemsize), (growsize), NULL }
diff --git a/src/nvim/main.c b/src/nvim/main.c
index f61a671457..4dc2d59182 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -12,6 +12,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#ifdef ENABLE_ASAN_UBSAN
+# include <sanitizer/asan_interface.h>
+# include <sanitizer/ubsan_interface.h>
+#endif
#include "nvim/arglist.h"
#include "nvim/ascii.h"
@@ -2227,13 +2231,11 @@ static void check_swap_exists_action(void)
}
#ifdef ENABLE_ASAN_UBSAN
-const char *__ubsan_default_options(void); // NOLINT(bugprone-reserved-identifier)
const char *__ubsan_default_options(void)
{
return "print_stacktrace=1";
}
-const char *__asan_default_options(void); // NOLINT(bugprone-reserved-identifier)
const char *__asan_default_options(void)
{
return "handle_abort=1,handle_sigill=1";
diff --git a/src/nvim/marktree.c b/src/nvim/marktree.c
index 110683a35c..6f6a91eae0 100644
--- a/src/nvim/marktree.c
+++ b/src/nvim/marktree.c
@@ -56,6 +56,7 @@
// only for debug functions
#include "nvim/api/private/defs.h"
#include "nvim/api/private/helpers.h"
+#include "nvim/garray_defs.h"
#include "nvim/macros.h"
#define T MT_BRANCH_FACTOR
diff --git a/src/nvim/marktree.h b/src/nvim/marktree.h
index c692cd8863..3e714bc196 100644
--- a/src/nvim/marktree.h
+++ b/src/nvim/marktree.h
@@ -8,7 +8,7 @@
#include "klib/kvec.h"
#include "nvim/assert.h"
#include "nvim/decoration_defs.h"
-#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/map.h"
#include "nvim/pos.h"
#include "nvim/types.h"
diff --git a/src/nvim/os/os.h b/src/nvim/os/os.h
index 54fff5c8e3..ede9234865 100644
--- a/src/nvim/os/os.h
+++ b/src/nvim/os/os.h
@@ -5,7 +5,7 @@
#include "nvim/buffer_defs.h"
#include "nvim/cmdexpand_defs.h"
-#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/os/fs_defs.h"
#include "nvim/os/stdpaths_defs.h"
#include "nvim/types.h"
diff --git a/src/nvim/path.c b/src/nvim/path.c
index 8ffa334370..ad1d8771aa 100644
--- a/src/nvim/path.c
+++ b/src/nvim/path.c
@@ -16,6 +16,7 @@
#include "nvim/file_search.h"
#include "nvim/fileio.h"
#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/gettext.h"
#include "nvim/globals.h"
#include "nvim/macros.h"
diff --git a/src/nvim/path.h b/src/nvim/path.h
index 48cbeaf684..66dbb53fb6 100644
--- a/src/nvim/path.h
+++ b/src/nvim/path.h
@@ -1,7 +1,7 @@
#pragma once
#include "nvim/func_attr.h"
-#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/types.h"
// Flags for expand_wildcards()
diff --git a/src/nvim/plines.c b/src/nvim/plines.c
index 7f6472ab42..acbb9637a4 100644
--- a/src/nvim/plines.c
+++ b/src/nvim/plines.c
@@ -8,7 +8,6 @@
#include "nvim/ascii.h"
#include "nvim/charset.h"
#include "nvim/decoration.h"
-#include "nvim/decoration_defs.h"
#include "nvim/diff.h"
#include "nvim/fold.h"
#include "nvim/globals.h"
diff --git a/src/nvim/rbuffer.h b/src/nvim/rbuffer.h
index 0a73fdf7d3..55e9849d3d 100644
--- a/src/nvim/rbuffer.h
+++ b/src/nvim/rbuffer.h
@@ -16,8 +16,6 @@
#include <stddef.h>
#include <stdint.h>
-struct rbuffer;
-
// Macros that simplify working with the read/write pointers directly by hiding
// ring buffer wrap logic. Some examples:
//
diff --git a/src/nvim/runtime.h b/src/nvim/runtime.h
index cf098bcdab..6f77f7fcd4 100644
--- a/src/nvim/runtime.h
+++ b/src/nvim/runtime.h
@@ -8,7 +8,7 @@
#include "nvim/eval/typval_defs.h"
#include "nvim/ex_cmds_defs.h"
#include "nvim/ex_eval_defs.h"
-#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/option_defs.h"
#include "nvim/pos.h"
#include "nvim/types.h"
diff --git a/src/nvim/sign.c b/src/nvim/sign.c
index af7b2ca5df..87b02aacae 100644
--- a/src/nvim/sign.c
+++ b/src/nvim/sign.c
@@ -18,7 +18,6 @@
#include "nvim/cmdexpand_defs.h"
#include "nvim/cursor.h"
#include "nvim/decoration.h"
-#include "nvim/decoration_defs.h"
#include "nvim/drawscreen.h"
#include "nvim/edit.h"
#include "nvim/eval/funcs.h"
diff --git a/src/nvim/spell_defs.h b/src/nvim/spell_defs.h
index 8b5412b3ad..234ecd5804 100644
--- a/src/nvim/spell_defs.h
+++ b/src/nvim/spell_defs.h
@@ -4,7 +4,7 @@
#include <stdint.h>
#include "nvim/buffer_defs.h"
-#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/regexp_defs.h"
#include "nvim/types.h"
diff --git a/src/nvim/spellsuggest.c b/src/nvim/spellsuggest.c
index 62508852b3..48c7c7e4a8 100644
--- a/src/nvim/spellsuggest.c
+++ b/src/nvim/spellsuggest.c
@@ -18,6 +18,7 @@
#include "nvim/eval/typval.h"
#include "nvim/fileio.h"
#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/getchar.h"
#include "nvim/gettext.h"
#include "nvim/globals.h"
diff --git a/src/nvim/spellsuggest.h b/src/nvim/spellsuggest.h
index 5b7278563c..a0acc3cc50 100644
--- a/src/nvim/spellsuggest.h
+++ b/src/nvim/spellsuggest.h
@@ -1,6 +1,6 @@
#pragma once
-#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "spellsuggest.h.generated.h"
diff --git a/src/nvim/usercmd.h b/src/nvim/usercmd.h
index afda0b9d49..b1485ca707 100644
--- a/src/nvim/usercmd.h
+++ b/src/nvim/usercmd.h
@@ -5,7 +5,7 @@
#include "nvim/cmdexpand_defs.h"
#include "nvim/eval/typval_defs.h"
#include "nvim/ex_cmds_defs.h"
-#include "nvim/garray.h"
+#include "nvim/garray_defs.h"
#include "nvim/types.h"
typedef struct ucmd {