MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_arena_init

Function cbm_arena_init

internal/cbm/arena.c:7–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <stdio.h>
6
7void cbm_arena_init(CBMArena *a) {
8 memset(a, 0, sizeof(*a));
9 a->block_size = CBM_ARENA_DEFAULT_BLOCK_SIZE;
10 a->blocks[0] = (char *)malloc(a->block_size);
11 if (a->blocks[0]) {
12 a->nblocks = SKIP_ONE;
13 }
14}
15
16static int arena_grow(CBMArena *a, size_t min_size) {
17 if (a->nblocks >= CBM_ARENA_MAX_BLOCKS) {

Callers 15

cbm_extract_file_exFunction · 0.70
cbm_run_php_lsp_crossFunction · 0.50
cbm_batch_php_lsp_crossFunction · 0.50
cbm_run_py_lsp_crossFunction · 0.50
cbm_batch_py_lsp_crossFunction · 0.50
cbm_batch_c_lsp_crossFunction · 0.50
cbm_run_java_lsp_crossFunction · 0.50
cbm_batch_go_lsp_crossFunction · 0.50
cbm_run_perl_lspFunction · 0.50
cbm_batch_rust_lsp_crossFunction · 0.50
cbm_run_kotlin_lsp_crossFunction · 0.50

Calls

no outgoing calls

Tested by 2

setupFunction · 0.40