add cstr union field to String8 and remove char* casts from the Linux code

This commit is contained in:
Nikita Smith committed 2026-01-22 14:04:40 -08:00
1 parent e724ee8185
commit be350c4147
3 files changed
+39 -35

No files matched your search

+5 -1
View File
@@ -10,7 +10,11 @@
typedef struct String8 String8;
struct String8
{
U8 *str;
union
{
U8 *str;
char *cstr;
};
U64 size;
};