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

Function scratch_alloc

src/pipeline/doc_links_msbuild.c:682–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680}
681
682static void *scratch_alloc(msb_eval_t *ev, size_t n) {
683 void *p = msb_fail_item_operation(ev->item_alloc_operation)
684 ? NULL
685 : cbm_arena_alloc(&ev->scratch, n ? n : SKIP_ONE);
686 ev->oom = ev->oom || !p;
687 ev_peak(ev);
688 return p;
689}
690
691static char *scratch_strndup(msb_eval_t *ev, const char *s, size_t n) {
692 char *p = msb_fail_item_operation(ev->item_alloc_operation)

Callers 4

msb_sb_putFunction · 0.85
msb_import_targetFunction · 0.85
msb_nearestFunction · 0.85
ulist_add_uniqueFunction · 0.85

Calls 3

msb_fail_item_operationFunction · 0.85
ev_peakFunction · 0.85
cbm_arena_allocFunction · 0.50

Tested by

no test coverage detected