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
+4 -4
View File
@@ -12,7 +12,7 @@ string_builder_t sb_create(allocator_t builder_allocator) {
};
}
void sb_add_string(string_builder_t *this, const char *string) {
void sb_add_string(string_builder_t *this, char const *string) {
string_builder_node_t *node = allocator_alloc(this->allocator, sizeof(string_builder_node_t));
node->length = strlen(string);
node->string = string;
@@ -78,7 +78,7 @@ void sb_add_u8(string_builder_t *this, uint8_t u8) {
sb_add_string(this, buffer);
}
void sb_add_substring(string_builder_t *this, const char *string, size_t substring_length) {
void sb_add_substring(string_builder_t *this, char const *string, size_t substring_length) {
size_t string_length = strlen(string);
size_t min_length = string_length < substring_length
? string_length
@@ -91,7 +91,7 @@ void sb_add_substring(string_builder_t *this, const char *string, size_t substri
sb_add_string(this, buffer);
}
const char *sb_build_and_clear(
char const *sb_build_and_clear(
string_builder_t *this,
allocator_t output_allocator
) {
@@ -111,7 +111,7 @@ const char *sb_build_and_clear(
node != NULL;
node = node->next
) {
for (const char *c = node->string; (*c) != '\0'; c++) {
for (char const *c = node->string; (*c) != '\0'; c++) {
buffer[i] = *c;
i++;
}