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

Function alloc_chunk

internal/cbm/lsp/scope.c:22–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22static CBMScopeChunk* alloc_chunk(CBMScope* scope) {
23 if (!scope->arena) {
24 return NULL;
25 }
26 CBMScopeChunk* c = (CBMScopeChunk*)cbm_arena_alloc(scope->arena, sizeof(CBMScopeChunk));
27 if (!c) {
28 return NULL;
29 }
30 memset(c, 0, sizeof(CBMScopeChunk));
31 c->next = scope->chunks;
32 scope->chunks = c;
33 return c;
34}
35
36void cbm_scope_bind(CBMScope* scope, const char* name, const CBMType* type) {
37 if (!scope || !name) {

Callers 1

cbm_scope_bindFunction · 0.85

Calls 1

cbm_arena_allocFunction · 0.50

Tested by

no test coverage detected