diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-04-24 21:22:53 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | 7f524c427597cc998f243769b0e22e4f450c55cf (patch) | |
tree | 0dba782c2214d1ce5309ba71cfd3dddaee4a52a1 /include/std | |
parent | 328a9c8310e8bab250b04e9e001ab0d890d33074 (diff) |
Progressing on bytecode (to c), fix ssa resolving multiple times
Diffstat (limited to 'include/std')
-rw-r--r-- | include/std/file.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/std/file.h b/include/std/file.h index c6753fd..9184053 100644 --- a/include/std/file.h +++ b/include/std/file.h @@ -32,8 +32,7 @@ CHECK_RESULT int mapped_file_init(MappedFile *self, const char *filepath, Mapped CHECK_RESULT int mapped_file_deinit(MappedFile *self); #endif -/* @data will be allocated with am_malloc, should be deallocated with am_free */ -CHECK_RESULT int read_whole_file(const char *filepath, char **data, usize *size); +CHECK_RESULT int read_whole_file(const char *filepath, Buffer *result); /* @result_path will be allocated with am_malloc, should be deallocated with am_free */ CHECK_RESULT int file_get_canonical_path(const char *filepath, char **result_path, usize *result_path_size); |