From 408027ea4635de5c892b28c4fdf41840eb9089a4 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 30 Dec 1996 16:17:54 +0000 Subject: Rename DEBUG macro to Py_DEBUG --- Python/thread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Python/thread.c') diff --git a/Python/thread.c b/Python/thread.c index 0e6d6ee216..ad7dd5c76d 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -83,7 +83,7 @@ extern char *getenv(); #define _P2(v1,t1,v2,t2) (v1,v2) t1; t2; #endif /* __STDC__ */ -#ifdef DEBUG +#ifdef Py_DEBUG static int thread_debug = 0; #define dprintf(args) ((thread_debug & 1) && printf args) #define d2printf(args) ((thread_debug & 8) && printf args) @@ -98,7 +98,7 @@ static void _init_thread(); /* Forward */ void init_thread _P0() { -#ifdef DEBUG +#ifdef Py_DEBUG char *p = getenv("THREADDEBUG"); if (p) { @@ -107,7 +107,7 @@ void init_thread _P0() else thread_debug = 1; } -#endif /* DEBUG */ +#endif /* Py_DEBUG */ if (initialized) return; initialized = 1; -- cgit v1.2.1