[Python-checkins] CVS: python/dist/src/Include stringobject.h,2.24,2.25

Barry Warsaw bwarsaw@users.sourceforge.net
Fri, 23 Feb 2001 08:40:50 -0800


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

Modified Files:
	stringobject.h 
Log Message:
_Py_ReleaseInternedStrings(): Private API function to decref and
release the interned string dictionary.  This is useful for memory
use debugging because it eliminates a huge source of noise from the
reports.  Only defined when INTERN_STRINGS is defined.


Index: stringobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/stringobject.h,v
retrieving revision 2.24
retrieving revision 2.25
diff -C2 -r2.24 -r2.25
*** stringobject.h	2000/09/21 05:43:10	2.24
--- stringobject.h	2001/02/23 16:40:48	2.25
***************
*** 66,72 ****
--- 66,74 ----
  extern DL_IMPORT(void) PyString_InternInPlace(PyObject **);
  extern DL_IMPORT(PyObject *) PyString_InternFromString(const char *);
+ extern DL_IMPORT(void) _Py_ReleaseInternedStrings(void);
  #else
  #define PyString_InternInPlace(p)
  #define PyString_InternFromString(cp) PyString_FromString(cp)
+ #define _Py_ReleaseInternedStrings()
  #endif