Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

mnemosyne.h

Go to the documentation of this file.
00001 /************************************************************************
00002  *                  *
00003  *      Copyright (c) 1985 by       *
00004  *    Digital Equipment Corporation, Maynard, MA    *
00005  *      All rights reserved.        *
00006  *                  *
00007  *   The information in this software is subject to change  without *
00008  *   notice  and should not be construed as a commitment by Digital *
00009  *   Equipment Corporation.           *
00010  *                  *
00011  *   Digital assumes no responsibility for the use  or  reliability *
00012  *   of its software on equipment which is not supplied by Digital. *
00013  *                  *
00014  *   Redistribution and use in source and binary forms are permitted  *
00015  *   provided that the above copyright notice and this paragraph are  *
00016  *   duplicated in all such forms and that any documentation,   *
00017  *   advertising materials, and other materials related to such   *
00018  *   distribution and use acknowledge that the software was developed *
00019  *   by Digital Equipment Corporation. The name of Digital Equipment  *
00020  *   Corporation may not be used to endorse or promote products derived *
00021  *   from this software without specific prior written permission.  *
00022  *   THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR *
00023  *   IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED *
00024  *   WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.*
00025  *   Do not take internally. In case of accidental ingestion, contact *
00026  *   your physician immediately.          *
00027  *                  *
00028  ************************************************************************/
00029 
00030 #ifndef _INCL_MNEMOSYNE_H
00031 
00032 /*
00033 /fats/tools/hsv/mnemosyne/mnemosyne.h,v 1.1.1.1 1995/06/06 18:18:28 fabio Exp
00034 */
00035 
00036 
00037 /*
00038 main include file for the mnemosyne memory allocation tracker. this file
00039 provides some pre-processor fakes for malloc(), realloc() and family,
00040 as well as forward declarations for the mnemosyne functions.
00041 
00042   Marcus J. Ranum, 1990. (mjr@decuac.dec.com)
00043 */
00044 
00045 
00046 /* these disguise mnemosyne calls as calls to malloc and family */
00047 #ifndef NOFAKEMALLOC
00048 #define malloc(siz)   mnem_malloc(siz,__FILE__,__LINE__)
00049 #define calloc(siz,cnt)   mnem_calloc(siz,cnt,__FILE__,__LINE__)
00050 #define realloc(ptr,siz)  mnem_realloc(ptr,siz,__FILE__,__LINE__)
00051 #define free(ptr)   mnem_free(ptr,__FILE__,__LINE__)
00052 #endif
00053 
00054 
00055 #ifdef  MALLOC_IS_VOIDSTAR
00056 typedef void  *mall_t;
00057 #else
00058 typedef char  *mall_t;
00059 #endif
00060 
00061 extern  mall_t  mnem_malloc();
00062 extern  mall_t  mnem_calloc();
00063 extern  mall_t  mnem_realloc();
00064 extern  void  mnem_free();
00065 
00066 /* some internal functions and oddimentia */
00067 extern  int mnem_recording();
00068 extern  int mnem_setrecording();
00069 extern  void  mnem_setlog();
00070 extern  int mnem_writestats();
00071 
00072 #define _INCL_MNEMOSYNE_H
00073 #endif

Generated on Fri Jan 14 08:28:59 2005 for SystemC2.1beta11(excludingMSLib)(IncludingSCV)\nProvidedby:www.openverificationfoundation.org by doxygen1.2.18