diff options
Diffstat (limited to 'src/platform/file.c')
-rw-r--r-- | src/platform/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/platform/file.c b/src/platform/file.c index 6030620..33194d7 100644 --- a/src/platform/file.c +++ b/src/platform/file.c @@ -33,7 +33,7 @@ const char *string_from_file(const char *path) { return string; } -str8_opt str8_from_file(arena *a, str8 path) { +str8_opt str8_from_file(arena *a, Str8 path) { char *p = cstr(a, path); str8_opt result = { .has_value = false }; @@ -51,7 +51,7 @@ str8_opt str8_from_file(arena *a, str8 path) { rewind(f); u8 *raw = arena_alloc(a, fsize + 1); - str8 contents = str8_create(raw, fsize); + Str8 contents = str8_create(raw, fsize); contents.buf[contents.len] = '\0'; fread(raw, fsize, 1, f); @@ -90,4 +90,4 @@ FileData load_spv_file(const char *path) { fclose(f); return (FileData){ data, bytesRead }; -}
\ No newline at end of file +} |