print.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * DUMA - Red-Zone memory allocator.
  3. * Copyright (C) 2002-2008 Hayati Ayguen <h_ayguen@web.de>, Procitec GmbH
  4. * Copyright (C) 1987-1999 Bruce Perens <bruce@perens.com>
  5. * License: GNU GPL (GNU General Public License, see COPYING-GPL)
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. *
  21. *
  22. * FILE CONTENTS:
  23. * internal header file
  24. * contains aborting, printing functions with minor system/platform dependencies
  25. */
  26. #ifndef DUMA_PRINT_H
  27. #define DUMA_PRINT_H
  28. /*
  29. * These routines do their printing without using stdio. Stdio can't
  30. * be used because it calls malloc(). Internal routines of a malloc()
  31. * debugger should not re-enter malloc(), so stdio is out.
  32. */
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36. void DUMA_Abort(const char * pattern, ...);
  37. void DUMA_Print(const char * pattern, ...);
  38. void DUMA_Exit(const char * pattern, ...);
  39. void DUMA_sprintf(char* buffer, const char * pattern, ...);
  40. const char * DUMA_strerror(int duma_errno);
  41. #ifdef __cplusplus
  42. } /* extern "C" */
  43. #endif
  44. #endif /* DUMA_PRINT_H */