MCPcopy Create free account
hub / github.com/acl-dev/acl / mime_state_alloc

Function mime_state_alloc

lib_acl_cpp/src/mime/internal/mime_state.cpp:379–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379MIME_STATE *mime_state_alloc()
380{
381 MIME_STATE *state;
382
383 state = (MIME_STATE*) acl_mycalloc(1, sizeof(MIME_STATE));
384 state->root = mime_node_new(state);
385 state->curr_node = state->root;
386 state->curr_status = MIME_S_HEAD;
387 state->token_buffer = acl_vstring_alloc(256);
388 state->key_buffer = acl_vstring_alloc(128);
389
390 state->iter_head = mime_iter_head;
391 state->iter_next = mime_iter_next;
392 state->iter_tail = mime_iter_tail;
393 state->iter_prev = mime_iter_prev;
394
395 return (state);
396}
397
398int mime_state_free(MIME_STATE *state)
399{

Callers 2

http_mimeMethod · 0.85
mimeMethod · 0.85

Calls 2

mime_node_newFunction · 0.85
acl_vstring_allocFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…