aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/file_search.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-11-30 19:52:23 +0800
committerGitHub <noreply@github.com>2023-11-30 19:52:23 +0800
commitc8e37a589a4bffbdf374a5893ef269d2fe233ce6 (patch)
tree187293673d04522398bf79dfa743596d26d455b7 /src/nvim/file_search.h
parent3b6dd8608d05aea4144cf05730e7b6c6db6052e8 (diff)
downloadrneovim-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.h16
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"