diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-11-28 07:47:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-28 07:47:36 +0800 |
commit | 718053b7a97c4e2fbaa6077d3c9f4dc7012c8aad (patch) | |
tree | b9dcecd6373c0f9a51c5dde37c2c7c7cf5f43c62 /src/nvim/eval/funcs.h | |
parent | 6c14ae6bfaf51415b555e9a6b85d1d280976358d (diff) | |
download | rneovim-718053b7a97c4e2fbaa6077d3c9f4dc7012c8aad.tar.gz rneovim-718053b7a97c4e2fbaa6077d3c9f4dc7012c8aad.tar.bz2 rneovim-718053b7a97c4e2fbaa6077d3c9f4dc7012c8aad.zip |
refactor: fix runtime_defs.h (#26259)
Diffstat (limited to 'src/nvim/eval/funcs.h')
-rw-r--r-- | src/nvim/eval/funcs.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/nvim/eval/funcs.h b/src/nvim/eval/funcs.h index 09f709be06..0c345dacb4 100644 --- a/src/nvim/eval/funcs.h +++ b/src/nvim/eval/funcs.h @@ -3,18 +3,20 @@ #include <stdbool.h> #include <stdint.h> -#include "nvim/api/private/dispatch.h" -#include "nvim/buffer_defs.h" -#include "nvim/cmdexpand_defs.h" +#include "nvim/buffer_defs.h" // IWYU pragma: keep +#include "nvim/cmdexpand_defs.h" // IWYU pragma: keep #include "nvim/eval/typval_defs.h" +#include "nvim/pos_defs.h" // IWYU pragma: keep #include "nvim/types_defs.h" /// Prototype of C function that implements Vimscript function typedef void (*VimLFunc)(typval_T *args, typval_T *rvar, EvalFuncData data); /// Special flags for base_arg @see EvalFuncDef -#define BASE_NONE 0 ///< Not a method (no base argument). -#define BASE_LAST UINT8_MAX ///< Use the last argument as the method base. +enum { + BASE_NONE = 0, ///< Not a method (no base argument). + BASE_LAST = UINT8_MAX, ///< Use the last argument as the method base. +}; /// Structure holding Vimscript function definition typedef struct { |