smap.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * @(#)smap.h 1.1 30/08/88 16:07:36 agc
  3. *
  4. * Copyright 1988, Joypace Ltd., UK. This product is "careware".
  5. * If you find it useful, I suggest that you send what you think
  6. * it is worth to the charity of your choice.
  7. *
  8. * Alistair G. Crooks, +44 5805 3114
  9. * Joypace Ltd.,
  10. * 2 Vale Road,
  11. * Hawkhurst,
  12. * Kent TN18 4BU,
  13. * UK.
  14. *
  15. * UUCP Europe ...!mcvax!unido!nixpbe!nixbln!agc
  16. * UUCP everywhere else ...!uunet!linus!nixbur!nixpbe!nixbln!agc
  17. *
  18. * smap.h - include file for debugging aids. This file must be included,
  19. * before any calls, in any source file that calls malloc, calloc,
  20. * realloc, or free. (Note alloca is not included in this list).
  21. */
  22. /*+:EDITS:*/
  23. /*:04-26-2000-11:16-wht@bob-RELEASE 4.42 */
  24. /*:01-24-1997-02:38-wht@yuriatin-SOURCE RELEASE 4.00 */
  25. /*:09-11-1996-20:01-wht@yuriatin-3.48-major telnet,curses,structural overhaul */
  26. /*:11-23-1995-11:20-wht@kepler-source control 3.37 for tsx-11 */
  27. /*:11-14-1995-10:23-wht@kepler-3.37.80-source control point: SOCKETS */
  28. /*:05-04-1994-04:40-wht@n4hgf-ECU release 3.30 */
  29. /*:09-10-1992-14:00-wht@n4hgf-ECU release 3.20 */
  30. /*:08-22-1992-15:39-wht@n4hgf-ECU release 3.20 BETA */
  31. /*:03-27-1992-16:21-wht@n4hgf-re-include protection for all .h files */
  32. /*:11-30-1991-13:46-wht@n4hgf-smap conditional compilation reorg */
  33. /*:07-25-1991-12:59-wht@n4hgf-ECU release 3.10 */
  34. /*:08-14-1990-20:40-wht@n4hgf-ecu3.00-flush old edit history */
  35. #ifndef _smap_h
  36. #define _smap_h
  37. #ifdef MEMCHECK
  38. #if !defined(VTYPE)
  39. #if __STDC__ /* sigh ... malloc and such types */
  40. #define VTYPE void
  41. #else
  42. #define VTYPE char
  43. #endif /* __STDC__ */
  44. #endif /* VTYPE */
  45. #define malloc _malloc
  46. #define calloc _calloc
  47. #define realloc _realloc
  48. #define free _free
  49. VTYPE *_malloc();
  50. VTYPE *_calloc();
  51. VTYPE *_realloc();
  52. #if !defined(sun)
  53. void _free();
  54. #endif /* sun */
  55. void _blkstart();
  56. void _blkend();
  57. void _blkignore();
  58. #endif /* MEMCHECK */
  59. #endif /* _smap_h */
  60. /* vi: set tabstop=4 shiftwidth=4: */
  61. /* end of smap.h */