diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-12-05 20:05:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 20:05:12 +0800 |
commit | 14572727261278e5bf68080c9369a8507f3d564f (patch) | |
tree | c918aa050d5d0735d0f055b37c721649eba3bc6c /src/nvim/marktree.c | |
parent | 0b74ad0a641f28d9d3da5353e98372d87078bd9d (diff) | |
download | rneovim-14572727261278e5bf68080c9369a8507f3d564f.tar.gz rneovim-14572727261278e5bf68080c9369a8507f3d564f.tar.bz2 rneovim-14572727261278e5bf68080c9369a8507f3d564f.zip |
refactor(IWYU): move marktree types to marktree_defs.h (#26402)
Diffstat (limited to 'src/nvim/marktree.c')
-rw-r--r-- | src/nvim/marktree.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/nvim/marktree.c b/src/nvim/marktree.c index f14da1b605..fa5e7dcbe2 100644 --- a/src/nvim/marktree.c +++ b/src/nvim/marktree.c @@ -50,15 +50,15 @@ #include <sys/types.h> #include "klib/kvec.h" -#include "nvim/garray.h" +#include "nvim/macros_defs.h" +#include "nvim/map_defs.h" #include "nvim/marktree.h" #include "nvim/memory.h" #include "nvim/pos_defs.h" // only for debug functions #include "nvim/api/private/defs.h" #include "nvim/api/private/helpers.h" -#include "nvim/garray_defs.h" -#include "nvim/macros_defs.h" +#include "nvim/garray.h" #define T MT_BRANCH_FACTOR #define ILEN (sizeof(MTNode) + (2 * T) * sizeof(void *)) @@ -2200,7 +2200,12 @@ String mt_inspect(MarkTree *b, bool keys, bool dot) return ga_take_string(ga); } -void mt_inspect_node(MarkTree *b, garray_T *ga, bool keys, MTNode *n, MTPos off) +static inline uint64_t mt_dbg_id(uint64_t id) +{ + return (id >> 1) & 0xffffffff; +} + +static void mt_inspect_node(MarkTree *b, garray_T *ga, bool keys, MTNode *n, MTPos off) { static char buf[1024]; GA_PUT("["); @@ -2240,7 +2245,7 @@ void mt_inspect_node(MarkTree *b, garray_T *ga, bool keys, MTNode *n, MTPos off) ga_concat(ga, "]"); } -void mt_inspect_dotfile_node(MarkTree *b, garray_T *ga, MTNode *n, MTPos off, char *parent) +static void mt_inspect_dotfile_node(MarkTree *b, garray_T *ga, MTNode *n, MTPos off, char *parent) { static char buf[1024]; char namebuf[64]; |