PageRenderTime 64ms CodeModel.GetById 38ms RepoModel.GetById 1ms app.codeStats 0ms

/xdebug_mm.h

http://github.com/derickr/xdebug
C Header | 39 lines | 18 code | 3 blank | 18 comment | 0 complexity | bc89b9b19fd05d3a7ec200f5e7f35650 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Xdebug |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 2002-2016 Derick Rethans |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 1.0 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. | http://xdebug.derickrethans.nl/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. | xdebug@derickrethans.nl so we can mail you a copy immediately. |
  14. +----------------------------------------------------------------------+
  15. | Authors: Derick Rethans <derick@xdebug.org> |
  16. +----------------------------------------------------------------------+
  17. */
  18. #ifndef __HAVE_XDEBUG_MM_H__
  19. #define __HAVE_XDEBUG_MM_H__
  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. #endif