aboutsummaryrefslogtreecommitdiff
path: root/src/file_search.h
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-02-28 02:54:47 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-02-28 18:37:01 -0300
commite18c075b703f85a6b30866851a02b682debf041e (patch)
treeae5739cfe94f9ea436b4cdccb9c19268545f4ad1 /src/file_search.h
parent007a19c4971e42d1bb7fdafc8fc7d6d8885120f2 (diff)
downloadrneovim-e18c075b703f85a6b30866851a02b682debf041e.tar.gz
rneovim-e18c075b703f85a6b30866851a02b682debf041e.tar.bz2
rneovim-e18c075b703f85a6b30866851a02b682debf041e.zip
Extract file_search.c from misc2.c
Continue to split misc2.c in many other files (see #209). The only changed I made to the moved code was adding `vim_free(ff_expand_buffer)` to `free_finfile()`. This is was needed because `ff_expand_buffer` was moved from `misc2.c` to `file_search.c`.
Diffstat (limited to 'src/file_search.h')
-rw-r--r--src/file_search.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/file_search.h b/src/file_search.h
new file mode 100644
index 0000000000..3ea1d84a1b
--- /dev/null
+++ b/src/file_search.h
@@ -0,0 +1,23 @@
+#ifndef NEOVIM_FIND_FILE_H
+#define NEOVIM_FIND_FILE_H
+
+void *vim_findfile_init __ARGS((char_u *path, char_u *filename, char_u *
+ stopdirs, int level, int free_visited,
+ int find_what, void *search_ctx_arg,
+ int tagfile,
+ char_u *rel_fname));
+char_u *vim_findfile_stopdir __ARGS((char_u *buf));
+void vim_findfile_cleanup __ARGS((void *ctx));
+char_u *vim_findfile __ARGS((void *search_ctx_arg));
+void vim_findfile_free_visited __ARGS((void *search_ctx_arg));
+char_u *find_file_in_path __ARGS((char_u *ptr, int len, int options, int first,
+ char_u *rel_fname));
+void free_findfile __ARGS((void));
+char_u *find_directory_in_path __ARGS((char_u *ptr, int len, int options,
+ char_u *rel_fname));
+char_u *find_file_in_path_option __ARGS((char_u *ptr, int len, int options,
+ int first, char_u *path_option,
+ int find_what, char_u *rel_fname,
+ char_u *suffixes));
+
+#endif /* NEOVIM_FIND_FILE_H */