Fixed some minor compilation errors and indented the function names in the utilities further
This commit is contained in:
parent
20f1d2b5ac
commit
9fa1d70eb2
|
@ -49,14 +49,16 @@ void pac_memory_zero (void *region, usz_t len_region);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct pac_arena
|
typedef struct pac_arena pac_arena_s;
|
||||||
|
|
||||||
|
struct pac_arena
|
||||||
{
|
{
|
||||||
usz_t len_allocation;
|
usz_t len_allocation;
|
||||||
usz_t offset;
|
usz_t offset;
|
||||||
void *allocation;
|
void *allocation;
|
||||||
pac_arena_s *continuation;
|
pac_arena_s *continuation;
|
||||||
|
|
||||||
} pac_arena_s;
|
};
|
||||||
|
|
||||||
pac_arena_s pac_create_arena (usz_t size);
|
pac_arena_s pac_create_arena (usz_t size);
|
||||||
void pac_delete_arena (pac_arena_s arena);
|
void pac_delete_arena (pac_arena_s arena);
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#include <utility.h>
|
#include <utility.h>
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
pac_arena_s pac_create_arena(usz_t size)
|
pac_arena_s pac_create_arena(usz_t size)
|
||||||
{
|
{
|
||||||
pac_arena_s arena;
|
pac_arena_s arena;
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#include <logger.h>
|
#include <logger.h>
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
pac_logger_s pac_create_logger()
|
pac_logger_s pac_create_logger()
|
||||||
{
|
{
|
||||||
pac_logger_s logger;
|
pac_logger_s logger;
|
||||||
|
@ -41,5 +43,5 @@ void pac_log_naming_error(pac_logger_s *logger, pac_naming_error_s error)
|
||||||
|
|
||||||
void * pac_log_alloc(pac_logger_s *logger, usz_t num_bytes)
|
void * pac_log_alloc(pac_logger_s *logger, usz_t num_bytes)
|
||||||
{
|
{
|
||||||
return ac_arena_alloc(logger->string_arena, num_bytes);
|
return pac_arena_alloc(&logger->string_arena, num_bytes);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue