refactor: fix runtime_defs.h (#26259)

This commit is contained in:
zeertzjq
2023-11-28 07:47:36 +08:00
committed by GitHub
parent 6c14ae6bfa
commit 718053b7a9
59 changed files with 299 additions and 335 deletions

View File

@@ -2,7 +2,7 @@
#include "nvim/buffer_defs.h" // IWYU pragma: keep
#include "nvim/eval/typval_defs.h" // IWYU pragma: keep
#include "nvim/types_defs.h"
#include "nvim/types_defs.h" // IWYU pragma: keep
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "eval/buffer.h.generated.h"

View File

@@ -4,7 +4,7 @@
#include <stddef.h> // IWYU pragma: keep
#include "nvim/eval/typval_defs.h" // IWYU pragma: keep
#include "nvim/types_defs.h"
#include "nvim/types_defs.h" // IWYU pragma: keep
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "eval/decode.h.generated.h"

View File

@@ -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 {

View File

@@ -6,7 +6,7 @@
#include "nvim/garray_defs.h" // IWYU pragma: keep
#include "nvim/hashtab.h"
#include "nvim/option_defs.h" // IWYU pragma: keep
#include "nvim/types_defs.h"
#include "nvim/types_defs.h" // IWYU pragma: keep
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "eval/vars.h.generated.h"