/cudd-abstraction/cudd/mnemosyne/mnemosyne.h

https://bitbucket.org/ggutierrez/cprel4 · C Header · 70 lines · 22 code · 8 blank · 40 comment · 0 complexity · 18554fb13a5b8a2c29631bcf9a335080 MD5 · raw file

  1. /************************************************************************
  2. * *
  3. * Copyright (c) 1985 by *
  4. * Digital Equipment Corporation, Maynard, MA *
  5. * All rights reserved. *
  6. * *
  7. * The information in this software is subject to change without *
  8. * notice and should not be construed as a commitment by Digital *
  9. * Equipment Corporation. *
  10. * *
  11. * Digital assumes no responsibility for the use or reliability *
  12. * of its software on equipment which is not supplied by Digital. *
  13. * *
  14. * Redistribution and use in source and binary forms are permitted *
  15. * provided that the above copyright notice and this paragraph are *
  16. * duplicated in all such forms and that any documentation, *
  17. * advertising materials, and other materials related to such *
  18. * distribution and use acknowledge that the software was developed *
  19. * by Digital Equipment Corporation. The name of Digital Equipment *
  20. * Corporation may not be used to endorse or promote products derived *
  21. * from this software without specific prior written permission. *
  22. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR *
  23. * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED *
  24. * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.*
  25. * Do not take internally. In case of accidental ingestion, contact *
  26. * your physician immediately. *
  27. * *
  28. ************************************************************************/
  29. #ifndef _INCL_MNEMOSYNE_H
  30. /*
  31. /fats/tools/hsv/mnemosyne/mnemosyne.h,v 1.1.1.1 1995/06/06 18:18:28 fabio Exp
  32. */
  33. /*
  34. main include file for the mnemosyne memory allocation tracker. this file
  35. provides some pre-processor fakes for malloc(), realloc() and family,
  36. as well as forward declarations for the mnemosyne functions.
  37. Marcus J. Ranum, 1990. (mjr@decuac.dec.com)
  38. */
  39. /* these disguise mnemosyne calls as calls to malloc and family */
  40. #ifndef NOFAKEMALLOC
  41. #define malloc(siz) mnem_malloc(siz, __FILE__, __LINE__)
  42. #define calloc(siz, cnt) mnem_calloc(siz, cnt, __FILE__, __LINE__)
  43. #define realloc(ptr, siz) mnem_realloc(ptr, siz, __FILE__, __LINE__)
  44. #define free(ptr) mnem_free(ptr, __FILE__, __LINE__)
  45. #endif
  46. #ifdef MALLOC_IS_VOIDSTAR
  47. typedef void* mall_t;
  48. #else
  49. typedef char* mall_t;
  50. #endif
  51. extern mall_t mnem_malloc();
  52. extern mall_t mnem_calloc();
  53. extern mall_t mnem_realloc();
  54. extern void mnem_free();
  55. /* some internal functions and oddimentia */
  56. extern int mnem_recording();
  57. extern int mnem_setrecording();
  58. extern void mnem_setlog();
  59. extern int mnem_writestats();
  60. #define _INCL_MNEMOSYNE_H
  61. #endif