1 /*
2    +----------------------------------------------------------------------+
3    | Xdebug                                                               |
4    +----------------------------------------------------------------------+
5    | Copyright (c) 2002-2020 Derick Rethans                               |
6    +----------------------------------------------------------------------+
7    | This source file is subject to version 1.01 of the Xdebug license,   |
8    | that is bundled with this package in the file LICENSE, and is        |
9    | available at through the world-wide-web at                           |
10    | https://xdebug.org/license.php                                       |
11    | If you did not receive a copy of the Xdebug license and are unable   |
12    | to obtain it through the world-wide-web, please send a note to       |
13    | derick@xdebug.org so we can mail you a copy immediately.             |
14    +----------------------------------------------------------------------+
15  */
16 
17 #ifndef __HAVE_XDEBUG_MM_H__
18 #define __HAVE_XDEBUG_MM_H__
19 
20 /* Memory allocators */
21 #if 0
22 #define xdmalloc    emalloc
23 #define xdcalloc    ecalloc
24 #define xdrealloc   erealloc
25 #define xdfree      efree
26 #define xdstrdup    estrdup
27 #define xdstrndup   estrndup
28 #else
29 #define xdmalloc    malloc
30 #define xdcalloc    calloc
31 #define xdrealloc   realloc
32 #define xdfree      free
33 #define xdstrdup    strdup
34 #define xdstrndup   xdebug_strndup
35 #endif
36 
37 #endif
38