diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-12-18 06:18:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-18 06:18:11 +0800 |
commit | d82a586a9e39f1d346c1aea78167a85c586ed3f4 (patch) | |
tree | 7444a55eb7e7dd2351bab6f57f11b4ef0b322ef1 /src/nvim/api/private/helpers.h | |
parent | 69bc519b53ebf78fd95c8256468e7d538ebcb948 (diff) | |
download | rneovim-d82a586a9e39f1d346c1aea78167a85c586ed3f4.tar.gz rneovim-d82a586a9e39f1d346c1aea78167a85c586ed3f4.tar.bz2 rneovim-d82a586a9e39f1d346c1aea78167a85c586ed3f4.zip |
refactor: move some anonymous enums back to non-defs headers (#26622)
It isn't really useful to put anonymous enums only used as arguments to
functions calls in _defs.h headers, as they will only be used by a file
that calls those functions, which requires including a non-defs header.
Also move os_msg() and os_errmsg() back to message.h, as on Windows they
are actual functions instead of macros.
Also remove gettext.h and globals.h from private/helpers.h.
Diffstat (limited to 'src/nvim/api/private/helpers.h')
-rw-r--r-- | src/nvim/api/private/helpers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/api/private/helpers.h b/src/nvim/api/private/helpers.h index 64558f0410..701ce91257 100644 --- a/src/nvim/api/private/helpers.h +++ b/src/nvim/api/private/helpers.h @@ -5,9 +5,9 @@ #include "klib/kvec.h" #include "nvim/api/private/defs.h" +#include "nvim/buffer_defs.h" // IWYU pragma: keep +#include "nvim/eval/typval_defs.h" // IWYU pragma: keep #include "nvim/ex_eval_defs.h" -#include "nvim/gettext.h" -#include "nvim/globals.h" #include "nvim/macros_defs.h" #include "nvim/map_defs.h" #include "nvim/message_defs.h" // IWYU pragma: keep |