Rename struct String to struct dstr
This commit is contained in:
parent
293b16af31
commit
7e8de5f5fb
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "aliases.h"
|
#include "aliases.h"
|
||||||
|
|
||||||
typedef struct String String;
|
typedef struct dstr String;
|
||||||
|
|
||||||
String *dstr_with_capacity(u64 capacity);
|
String *dstr_with_capacity(u64 capacity);
|
||||||
String *dstr_from_string(const char *str);
|
String *dstr_from_string(const char *str);
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// constantly reallocate
|
// constantly reallocate
|
||||||
#define CAPACITY_SCALAR 8
|
#define CAPACITY_SCALAR 8
|
||||||
|
|
||||||
struct String {
|
struct dstr {
|
||||||
u64 capacity;
|
u64 capacity;
|
||||||
u64 size;
|
u64 size;
|
||||||
char buf[];
|
char buf[];
|
||||||
|
Loading…
Reference in New Issue
Block a user