Merge branch 'master' into code-formatting

This commit is contained in:
2025-06-06 20:44:39 +02:00
13 changed files with 112 additions and 54 deletions

View File

@@ -15,12 +15,14 @@ void strcln(char **dest, const char *source);
struct Vector {
uint32_t length;
uint32_t alloc_len;
uint16_t alloc_size;
uint32_t capacity;
void **pages;
};
struct Vector vec_new();
int vec_resize(struct Vector *, size_t size);
int vec_reserve(struct Vector *, size_t size);
int vec_reserve_exact(struct Vector *, size_t size);
int vec_push(struct Vector *, void *item);
void vec_free(struct Vector *);
void vec_clear(struct Vector *);