add: ByteStr uses Allocator
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#include "lae_strings.h"
|
#include "lae_strings.h"
|
||||||
|
#include "lae_allocator.h"
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
@@ -6,4 +7,6 @@ struct ByteStr {
|
|||||||
uint8_t* buf;
|
uint8_t* buf;
|
||||||
size_t len;
|
size_t len;
|
||||||
size_t cap;
|
size_t cap;
|
||||||
|
|
||||||
|
Allocator allocator;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ option_end()
|
|||||||
-- =========================================================
|
-- =========================================================
|
||||||
|
|
||||||
add_requires("cmocka", { optional = true })
|
add_requires("cmocka", { optional = true })
|
||||||
add_requires("lae_allocator")
|
add_requires("lae_allocator 1.0.0")
|
||||||
|
|
||||||
-- =========================================================
|
-- =========================================================
|
||||||
-- Library
|
-- Library
|
||||||
|
|||||||
Reference in New Issue
Block a user