collection structs name replaced with macro

This commit is contained in:
2025-07-24 12:56:53 +03:00
parent 2dd6316b7b
commit eb6432470c
11 changed files with 47 additions and 43 deletions

View File

@@ -55,7 +55,7 @@ void StringBuilder_append_f64(StringBuilder* b, f64 n){
StringBuilder_append_cstr(b, buf);
}
void StringBuilder_append_memory(StringBuilder* b, Array mem, bool uppercase) {
void StringBuilder_append_memory(StringBuilder* b, Array(u8) mem, bool uppercase) {
if(mem.data == NULL)
return;

View File

@@ -1,5 +1,4 @@
#include "tlibc/string/cstr.h"
#include <stdarg.h>
char* _strcat_malloc(size_t n, cstr str0, ...){
va_list argv;

View File

@@ -125,7 +125,7 @@ str str_toLower(str src){
return r;
}
str hex_to_str(Array buf, bool uppercase){
str hex_to_str(Array(u8) buf, bool uppercase){
StringBuilder sb = StringBuilder_alloc(buf.size * 2 + 1);
StringBuilder_append_memory(&sb, buf, uppercase);
return StringBuilder_getStr(&sb);