X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fdmalloc.h;h=e7136875dd1630a1bd9d8cbc47577b19e9096b6b;hp=bf8e5d7a37eb6676ececc8c5850faa9e60c77b94;hb=559aecba0e61eca34706023436692ba23faa29a7;hpb=657fb99115b87a5244e9a33bbe4ca3d9d18849c4 diff --git a/include/dmalloc.h b/include/dmalloc.h index bf8e5d7..e713687 100644 --- a/include/dmalloc.h +++ b/include/dmalloc.h @@ -24,7 +24,16 @@ * OF THIS SOFTWARE. * * $Log: dmalloc.h,v $ - * Revision 1.3 1995-09-27 15:02:47 quinn + * Revision 1.6 1997-05-14 06:53:39 adam + * C++ support. + * + * Revision 1.5 1995/10/16 13:51:43 quinn + * Changes to provide Especs to the backend. + * + * Revision 1.4 1995/09/29 17:12:02 quinn + * Smallish + * + * Revision 1.3 1995/09/27 15:02:47 quinn * Modified function heads & prototypes. * * Revision 1.2 1995/05/16 08:50:30 quinn @@ -43,9 +52,11 @@ #ifndef DMALLOC_H #define DMALLOC_H -#ifdef DEBUG_MALLOC +#ifdef __cplusplus +extern "C" { +#endif -#include +#ifdef DEBUG_MALLOC #ifdef malloc #undef malloc @@ -60,10 +71,14 @@ #define free(p) d_free(__FILE__, __LINE__, (p)) #define realloc(p, n) d_realloc(__FILE__, __LINE__, (p), (n)) -void MDF *d_malloc(char *file, int line, int nbytes); -void MDF d_free(char *file, int line, char *ptr); -void MDF *d_realloc(char *file, int line, char *ptr, int nbytes); +void *d_malloc(char *file, int line, int nbytes); +void d_free(char *file, int line, char *ptr); +void *d_realloc(char *file, int line, char *ptr, int nbytes); + +#endif +#ifdef __cplusplus +} #endif #endif