From 79bf40f909cefdc611bfa13f70ae55b52ac41d23 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 10 Mar 2019 16:52:53 +0100 Subject: Load @import files relative to the file that uses @import --- include/std/file.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/std') 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 -- cgit v1.2.3