diff --git a/dstr/include/dstr.h b/dstr/include/dstr.h index cd991a0..88672a4 100644 --- a/dstr/include/dstr.h +++ b/dstr/include/dstr.h @@ -3,7 +3,7 @@ #include "aliases.h" -typedef struct String String; +typedef struct dstr String; String *dstr_with_capacity(u64 capacity); String *dstr_from_string(const char *str); diff --git a/dstr/src/dstr.c b/dstr/src/dstr.c index c2a2e47..3ecd824 100644 --- a/dstr/src/dstr.c +++ b/dstr/src/dstr.c @@ -8,7 +8,7 @@ // constantly reallocate #define CAPACITY_SCALAR 8 -struct String { +struct dstr { u64 capacity; u64 size; char buf[];