From dfda6b6e55f75cc0dd77b13b08d83d8ca3b3842f Mon Sep 17 00:00:00 2001 From: pryazha Date: Thu, 11 Sep 2025 19:22:37 +0500 Subject: change final build target to libprb.a that one can link with --- example/arena.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'example/arena.c') diff --git a/example/arena.c b/example/arena.c index addf4ee..6579849 100644 --- a/example/arena.c +++ b/example/arena.c @@ -1,14 +1,15 @@ #include "prb.h" +#include +#include i32 main(void) { - printf("Arenas:\n"); - - arena_t arena = alloc_arena(10); + info("arenas"); + struct arena arena = alloc_arena(10); u8 *first = push_arena(&arena, 5); - prb_memset(first, 5, 5); + memset(first, 5, 5); u8 *second = push_arena(&arena, 5); - prb_memset(second, 10, 5); + memset(second, 10, 5); printf("|"); for (i32 i = 0; i < 10; i++) printf("%x%s", first[i], ((i+1) % 5 == 0) ? "|" : " "); -- cgit v1.2.3-70-g09d2