diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-11-30 19:52:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-30 19:52:23 +0800 |
commit | c8e37a589a4bffbdf374a5893ef269d2fe233ce6 (patch) | |
tree | 187293673d04522398bf79dfa743596d26d455b7 /src/nvim/file_search.h | |
parent | 3b6dd8608d05aea4144cf05730e7b6c6db6052e8 (diff) | |
download | rneovim-c8e37a589a4bffbdf374a5893ef269d2fe233ce6.tar.gz rneovim-c8e37a589a4bffbdf374a5893ef269d2fe233ce6.tar.bz2 rneovim-c8e37a589a4bffbdf374a5893ef269d2fe233ce6.zip |
refactor(IWYU): move typedefs out of globals.h (#26322)
Diffstat (limited to 'src/nvim/file_search.h')
-rw-r--r-- | src/nvim/file_search.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nvim/file_search.h b/src/nvim/file_search.h index d4b5c5d352..a2d578a668 100644 --- a/src/nvim/file_search.h +++ b/src/nvim/file_search.h @@ -1,14 +1,14 @@ #pragma once -#include <stdlib.h> - -#include "nvim/globals.h" #include "nvim/types_defs.h" // IWYU pragma: keep - -// Flags for find_file_*() functions. -#define FINDFILE_FILE 0 // only files -#define FINDFILE_DIR 1 // only directories -#define FINDFILE_BOTH 2 // files and directories +#include "nvim/vim_defs.h" // IWYU pragma: keep + +/// Flags for find_file_*() functions. +enum { + FINDFILE_FILE = 0, ///< only files + FINDFILE_DIR = 1, ///< only directories + FINDFILE_BOTH = 2, ///< files and directories +}; #ifdef INCLUDE_GENERATED_DECLARATIONS # include "file_search.h.generated.h" |