From 7f524c427597cc998f243769b0e22e4f450c55cf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 24 Apr 2019 21:22:53 +0200 Subject: Progressing on bytecode (to c), fix ssa resolving multiple times --- include/std/file.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/std/file.h') 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); -- cgit v1.2.3