aboutsummaryrefslogtreecommitdiff
path: root/include/std/file.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-03-10 16:52:53 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit79bf40f909cefdc611bfa13f70ae55b52ac41d23 (patch)
treea022cbf8e0548aab677aabb5a9138619cb9aa562 /include/std/file.h
parent470a60a3ea8723852568df2ecf7587303b250664 (diff)
Load @import files relative to the file that uses @import
Diffstat (limited to 'include/std/file.h')
-rw-r--r--include/std/file.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/std/file.h b/include/std/file.h
index 4224346..8be0c66 100644
--- a/include/std/file.h
+++ b/include/std/file.h
@@ -3,6 +3,7 @@
#include "misc.h"
#include "types.h"
+#include "buffer_view.h"
/* Return bool_true if you want to continue scanning, otherwise return bool_false */
typedef bool (*scan_dir_callback_func)(const char *filepath, int filepath_length, void *userdata);
@@ -26,4 +27,7 @@ CHECK_RESULT int mapped_file_deinit(MappedFile *self);
CHECK_RESULT int read_whole_file(const char *filepath, char **data, usize *size);
+BufferView file_get_parent_directory(BufferView filepath);
+BufferView file_get_name(BufferView filepath);
+
#endif