File: cxsa_memory.c

package info (click to toggle)
libclass-xsaccessor-perl 1.13-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 520 kB
  • sloc: perl: 841; ansic: 359; makefile: 6
file content (27 lines) | stat: -rw-r--r-- 454 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

#include "cxsa_memory.h"

void* _cxa_realloc(void *ptr, STRLEN size) {
    return realloc(ptr, size);
}

void* _cxa_malloc(STRLEN size) {
    return malloc(size);
}

void* _cxa_zmalloc(STRLEN size) {
    return calloc(1, size);
}

void _cxa_free(void *ptr) {
    free(ptr);
}

void* _cxa_memcpy(void *dest, void *src, STRLEN size) {
    return memcpy(dest, src, size);
}

void* _cxa_memzero(void *ptr, STRLEN size) {
    return memset(ptr, 0, size);
}