[Python-checkins] CVS: python/dist/src/Include pymem.h,2.9,2.10

Tim Peters tim_one@users.sourceforge.net
Wed, 27 Mar 2002 23:32:13 -0800


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv29408/python/Include

Modified Files:
	pymem.h 
Log Message:
PYMALLOC_DEBUG routines:  The "check API family" gimmick was going nowhere
fast, and just cluttered the code.  Get rid of it for now.  If a compelling
case can be made for it, easy to restore it later.


Index: pymem.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pymem.h,v
retrieving revision 2.9
retrieving revision 2.10
diff -C2 -d -r2.9 -r2.10
*** pymem.h	23 Mar 2002 10:03:50 -0000	2.9
--- pymem.h	28 Mar 2002 07:32:11 -0000	2.10
***************
*** 98,109 ****
  
  #ifdef PYMALLOC_DEBUG
! DL_IMPORT(void *) _PyMalloc_DebugMalloc(size_t nbytes, int family);
! DL_IMPORT(void *) _PyMalloc_DebugRealloc(void *p, size_t nbytes, int family);
! DL_IMPORT(void) _PyMalloc_DebugFree(void *p, int family);
  DL_IMPORT(void) _PyMalloc_DebugDumpAddress(const void *p);
  DL_IMPORT(void) _PyMalloc_DebugCheckAddress(const void *p);
! #define _PyMalloc_MALLOC(N) _PyMalloc_DebugMalloc(N, 0)
! #define _PyMalloc_REALLOC(P, N) _PyMalloc_DebugRealloc(P, N, 0)
! #define _PyMalloc_FREE(P) _PyMalloc_DebugFree(P, 0)
  
  #else	/* WITH_PYMALLOC && ! PYMALLOC_DEBUG */
--- 98,109 ----
  
  #ifdef PYMALLOC_DEBUG
! DL_IMPORT(void *) _PyMalloc_DebugMalloc(size_t nbytes);
! DL_IMPORT(void *) _PyMalloc_DebugRealloc(void *p, size_t nbytes);
! DL_IMPORT(void) _PyMalloc_DebugFree(void *p);
  DL_IMPORT(void) _PyMalloc_DebugDumpAddress(const void *p);
  DL_IMPORT(void) _PyMalloc_DebugCheckAddress(const void *p);
! #define _PyMalloc_MALLOC _PyMalloc_DebugMalloc
! #define _PyMalloc_REALLOC _PyMalloc_DebugRealloc
! #define _PyMalloc_FREE _PyMalloc_DebugFree
  
  #else	/* WITH_PYMALLOC && ! PYMALLOC_DEBUG */