add: ByteStr uses Allocator

This commit is contained in:
2026-05-26 22:40:20 -06:00
parent 910f63bf07
commit af8bf3a747
2 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
#include "lae_strings.h"
#include "lae_allocator.h"
#include <stdint.h>
#include <stdlib.h>
@@ -6,4 +7,6 @@ struct ByteStr {
uint8_t* buf;
size_t len;
size_t cap;
Allocator allocator;
};

View File

@@ -32,7 +32,7 @@ option_end()
-- =========================================================
add_requires("cmocka", { optional = true })
add_requires("lae_allocator")
add_requires("lae_allocator 1.0.0")
-- =========================================================
-- Library