Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aae0d32

Browse files
committed
Use new names for debug macros. Don't include pythonrun.h.
1 parent 84a9032 commit aae0d32

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

Python/pythonrun.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3737
#include "compile.h"
3838
#include "eval.h"
3939
#include "ceval.h"
40-
#include "pythonrun.h"
4140
#include "import.h"
4241
#include "marshal.h"
4342

@@ -148,7 +147,7 @@ run_tty_loop(fp, filename)
148147
}
149148
for (;;) {
150149
ret = run_tty_1(fp, filename);
151-
#ifdef REF_DEBUG
150+
#ifdef Py_REF_DEBUG
152151
fprintf(stderr, "[%ld refs]\n", _Py_RefTotal);
153152
#endif
154153
if (ret == E_EOF)
@@ -653,15 +652,15 @@ goaway(sts)
653652

654653
err_clear();
655654

656-
#ifdef REF_DEBUG
655+
#ifdef Py_REF_DEBUG
657656
fprintf(stderr, "[%ld refs]\n", _Py_RefTotal);
658657
#endif
659658

660-
#ifdef TRACE_REFS
659+
#ifdef Py_TRACE_REFS
661660
if (askyesno("Print left references?")) {
662661
printrefs(stderr);
663662
}
664-
#endif /* TRACE_REFS */
663+
#endif /* Py_TRACE_REFS */
665664

666665
#ifdef macintosh
667666
PyMac_Exit(sts);
@@ -714,7 +713,7 @@ initsigs()
714713
initintr(); /* May imply initsignal() */
715714
}
716715

717-
#ifdef TRACE_REFS
716+
#ifdef Py_TRACE_REFS
718717
/* Ask a yes/no question */
719718

720719
int

0 commit comments

Comments
 (0)