| 184 | struct set_element_t *set_element); |
| 185 | #endif |
| 186 | struct 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 | |
| 203 | void csp_set_dealloc(CSOUND *csound, struct set_t **set) |
| 204 | { |
no outgoing calls
no test coverage detected