MCPcopy Create free account
hub / github.com/csound/csound / csp_set_alloc

Function csp_set_alloc

Engine/cs_par_base.c:186–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184 struct set_element_t *set_element);
185#endif
186struct set_t *csp_set_alloc(CSOUND *csound,
187 set_element_data_eq *ele_eq_func,
188 set_element_data_print *ele_print_func)
189{
190 struct set_t *p = csound->Malloc(csound, sizeof(struct set_t));
191 if (UNLIKELY(p == NULL)) {
192 csound->Die(csound, Str("Failed to allocate set"));
193 }
194 memset(p, 0, sizeof(struct set_t));
195 memcpy(p->hdr, SET_HDR, HDR_LEN);
196 p->ele_eq_func = ele_eq_func;
197 p->ele_print_func = ele_print_func;
198 p->cache = NULL;
199 //printf("csp_set_alloc: %p\n", p);
200 return p;
201}
202
203void csp_set_dealloc(CSOUND *csound, struct set_t **set)
204{

Callers 3

csp_set_alloc_stringFunction · 0.85
csp_set_unionFunction · 0.85
csp_set_intersectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected