diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-03-10 16:52:53 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | 79bf40f909cefdc611bfa13f70ae55b52ac41d23 (patch) | |
tree | a022cbf8e0548aab677aabb5a9138619cb9aa562 /include | |
parent | 470a60a3ea8723852568df2ecf7587303b250664 (diff) |
Load @import files relative to the file that uses @import
Diffstat (limited to 'include')
-rw-r--r-- | include/std/file.h | 4 |
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 |