summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-05-22 16:35:33 (GMT)
committerGuido van Rossum <guido@python.org>1996-05-22 16:35:33 (GMT)
commitaae0d32f6639894f33f336bad115660ad82de5d2 (patch)
tree9822f3be17be427e2db2eb279ff6178499e31486 /Python
parent84a9032cd3779e240f78ccf95b31822c4e7d0046 (diff)
downloadcpython-aae0d32f6639894f33f336bad115660ad82de5d2.zip
cpython-aae0d32f6639894f33f336bad115660ad82de5d2.tar.gz
cpython-aae0d32f6639894f33f336bad115660ad82de5d2.tar.bz2
Use new names for debug macros. Don't include pythonrun.h.
Diffstat (limited to 'Python')
-rw-r--r--Python/pythonrun.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 7ab6c58..c789881 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -37,7 +37,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "compile.h"
#include "eval.h"
#include "ceval.h"
-#include "pythonrun.h"
#include "import.h"
#include "marshal.h"
@@ -148,7 +147,7 @@ run_tty_loop(fp, filename)
}
for (;;) {
ret = run_tty_1(fp, filename);
-#ifdef REF_DEBUG
+#ifdef Py_REF_DEBUG
fprintf(stderr, "[%ld refs]\n", _Py_RefTotal);
#endif
if (ret == E_EOF)
@@ -653,15 +652,15 @@ goaway(sts)
err_clear();
-#ifdef REF_DEBUG
+#ifdef Py_REF_DEBUG
fprintf(stderr, "[%ld refs]\n", _Py_RefTotal);
#endif
-#ifdef TRACE_REFS
+#ifdef Py_TRACE_REFS
if (askyesno("Print left references?")) {
printrefs(stderr);
}
-#endif /* TRACE_REFS */
+#endif /* Py_TRACE_REFS */
#ifdef macintosh
PyMac_Exit(sts);
@@ -714,7 +713,7 @@ initsigs()
initintr(); /* May imply initsignal() */
}
-#ifdef TRACE_REFS
+#ifdef Py_TRACE_REFS
/* Ask a yes/no question */
int