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

Function mime_node_new

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

Source from the content-addressed store, hash-verified

79}
80
81MIME_NODE *mime_node_new(MIME_STATE *state)
82{
83 MIME_NODE *node = (MIME_NODE*) acl_mycalloc(1, sizeof(MIME_NODE));
84
85 node->buffer = acl_vstring_alloc(256);
86 node->state = state;
87 acl_ring_init(&node->children);
88 acl_ring_init(&node->node);
89 node->header_list = acl_fifo_new();
90
91 state->node_cnt++;
92
93 node->iter_head = node_iter_head;
94 node->iter_next = node_iter_next;
95 node->iter_tail = node_iter_tail;
96 node->iter_prev = node_iter_prev;
97
98 node->last_cr_pos = -1;
99 node->last_lf_pos = -1;
100 return (node);
101}
102
103static void mail_addr_list_free(ACL_FIFO *mail_addr_list)
104{

Callers 4

mime_state_allocFunction · 0.85
mime_state_resetFunction · 0.85

Calls 3

acl_vstring_allocFunction · 0.85
acl_ring_initFunction · 0.85
acl_fifo_newFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…