emergency commit
[cl-cudd.git] / distr / mnemosyne / mnemosyne.h
blob910af91d5f756a0c3e57835140fa2da0d08413ea
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 ************************************************************************/
30 #ifndef _INCL_MNEMOSYNE_H
33 /fats/tools/hsv/mnemosyne/mnemosyne.h,v 1.1.1.1 1995/06/06 18:18:28 fabio Exp
38 main include file for the mnemosyne memory allocation tracker. this file
39 provides some pre-processor fakes for malloc(), realloc() and family,
40 as well as forward declarations for the mnemosyne functions.
42 Marcus J. Ranum, 1990. (mjr@decuac.dec.com)
46 /* these disguise mnemosyne calls as calls to malloc and family */
47 #ifndef NOFAKEMALLOC
48 #define malloc(siz) mnem_malloc(siz,__FILE__,__LINE__)
49 #define calloc(siz,cnt) mnem_calloc(siz,cnt,__FILE__,__LINE__)
50 #define realloc(ptr,siz) mnem_realloc(ptr,siz,__FILE__,__LINE__)
51 #define free(ptr) mnem_free(ptr,__FILE__,__LINE__)
52 #endif
55 #ifdef MALLOC_IS_VOIDSTAR
56 typedef void *mall_t;
57 #else
58 typedef char *mall_t;
59 #endif
61 extern mall_t mnem_malloc();
62 extern mall_t mnem_calloc();
63 extern mall_t mnem_realloc();
64 extern void mnem_free();
66 /* some internal functions and oddimentia */
67 extern int mnem_recording();
68 extern int mnem_setrecording();
69 extern void mnem_setlog();
70 extern int mnem_writestats();
72 #define _INCL_MNEMOSYNE_H
73 #endif