diff options
| author | 0x221e <x221e@0xinfinity.dev> | 2026-06-22 13:18:43 +0300 |
|---|---|---|
| committer | 0x221e <x221e@0xinfinity.dev> | 2026-06-22 13:22:10 +0300 |
| commit | ad5d641ad41f415cca3cc01c88bc063319aba937 (patch) | |
| tree | f03b2c0116bb41535e2fe7aa11294948b66e99c8 /lib/vector.c | |
| parent | 45f4a6afd2a5683fa53f9d6787e3c5b0f70229fd (diff) | |
| download | metalc-master.tar.gz | |
lex: add bang
passes: add initial debug pass
Diffstat (limited to 'lib/vector.c')
| -rw-r--r-- | lib/vector.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/vector.c b/lib/vector.c index d338db2..91c349b 100644 --- a/lib/vector.c +++ b/lib/vector.c @@ -17,6 +17,12 @@ int vector_init(struct vector *v) return 0; } +int vector_free(struct vector *v) +{ + assert(v != NULL); + mem_free((void*)v->buffer); +} + int vector_reserve(struct vector *v, size_t nc) { assert(v != NULL); |
