From 7e8de5f5fbb5970c9f6e1cd3b65a3c75d4d0d831 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sat, 24 Feb 2024 15:04:22 +0000 Subject: [PATCH] Rename struct String to struct dstr --- dstr/include/dstr.h | 2 +- dstr/src/dstr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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[];