comparison Python/pythonrun.c @ 37638:65ecb83ea7dd legacy-trunk

Ignore the references to the dummy objects used as deleted keys in dicts and sets when computing the total number of references.
author Armin Rigo <arigo@tunes.org>
date Wed, 12 Apr 2006 17:06:05 +0000
parents 57b1ff138995
children 2f3f2e32dfd9
comparison
equal deleted inserted replaced
37636:2e8ab797ceaf 37638:65ecb83ea7dd
32 #ifndef Py_REF_DEBUG 32 #ifndef Py_REF_DEBUG
33 #define PRINT_TOTAL_REFS() 33 #define PRINT_TOTAL_REFS()
34 #else /* Py_REF_DEBUG */ 34 #else /* Py_REF_DEBUG */
35 #define PRINT_TOTAL_REFS() fprintf(stderr, \ 35 #define PRINT_TOTAL_REFS() fprintf(stderr, \
36 "[%" PY_FORMAT_SIZE_T "d refs]\n", \ 36 "[%" PY_FORMAT_SIZE_T "d refs]\n", \
37 _Py_RefTotal) 37 _Py_GetRefTotal())
38 #endif 38 #endif
39 39
40 extern char *Py_GetPath(void); 40 extern char *Py_GetPath(void);
41 41
42 extern grammar _PyParser_Grammar; /* From graminit.c */ 42 extern grammar _PyParser_Grammar; /* From graminit.c */