diff options
author | omnisci3nce <omniscient.oce@gmail.com> | 2024-07-13 16:34:48 +1000 |
---|---|---|
committer | omnisci3nce <omniscient.oce@gmail.com> | 2024-07-13 16:34:48 +1000 |
commit | 8d6b838d0a5919620ca8562ac6be1da5c0c3237e (patch) | |
tree | 0cffbe159b23464e64cde1165e9e58031d0623b8 /src/platform/file.c | |
parent | f74cf52946f4e569a26bc81105537b40be95c2c7 (diff) |
add empty shell scripts
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 +} |