Squash merge feature/scanner_v2 into main
C Tests / Build and Test (push) Successful in 10m52s

This commit is contained in:
2026-10-01 22:19:09 +02:00
parent 27c5c4a55b
commit af356a0d71
10 changed files with 260 additions and 247 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
#include "cig.h"
#include <assert.h>
char *read_entire_file(const char *path, allocator_t allocator) {
char *read_entire_file(char const *path, allocator_t allocator) {
FILE *fp = fopen(path, "rb");
assert(fp != NULL);
fseek(fp, 0, SEEK_END);
@@ -17,7 +17,7 @@ char *read_entire_file(const char *path, allocator_t allocator) {
}
// Returns dynamic array, of fixed char strings.
char **read_all_file_lines(const char *path, allocator_t allocator) {
char **read_all_file_lines(char const *path, allocator_t allocator) {
char *contents = read_entire_file(path, allocator);
char **lines = make_arr(char*, allocator);
arr_append(lines, contents);