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

Function pdf_alloc

internal/cbm/pdf/pdf_obj.c:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54/* ── Memory ──────────────────────────────────────────────────────── */
55
56void *pdf_alloc(pdf_doc_t *d, size_t n) {
57 void *p = cbm_arena_alloc(d->cur, n ? n : 1);
58 if (!p) {
59 d->nomem = true;
60 }
61 return p;
62}
63
64void *pdf_calloc(pdf_doc_t *d, size_t n) {
65 void *p = cbm_arena_calloc(d->cur, n ? n : 1);

Callers 5

lex_nameFunction · 0.85
lex_lstrFunction · 0.85
lex_hstrFunction · 0.85
vl_finish_arrayFunction · 0.85
kl_finish_dictFunction · 0.85

Calls 1

cbm_arena_allocFunction · 0.50

Tested by

no test coverage detected