aboutsummaryrefslogtreecommitdiff
path: root/src/un_mem_std.c
blob: 0d5d288aedc7975c5adb77ba10c7d6f7c0738e9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
static ALLOCATOR_PROC_SIGNATURE(un_std_alloc_proc) {
    UNUSED(data);

    switch (message) {
        case UN_ALLOC_MSG_ALLOCATE:
            return calloc(1, size);
        case UN_ALLOC_MSG_FREE:
            free(p);
            break;
        case UN_ALLOC_MSG_SELF_DELETE: break;
    }

    return NULL;
}