Mercurial > cpython-lru_cache-weakref
diff Python/thread.c @ 4839:4567e158d20c legacy-trunk
Rename DEBUG macro to Py_DEBUG
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 30 Dec 1996 16:17:54 +0000 |
| parents | 4fa19659591e |
| children | 339d4129d3f7 |
line wrap: on
line diff
--- a/Python/thread.c Mon Dec 30 02:37:07 1996 +0000 +++ b/Python/thread.c Mon Dec 30 16:17:54 1996 +0000 @@ -83,7 +83,7 @@ #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 @@ void init_thread _P0() { -#ifdef DEBUG +#ifdef Py_DEBUG char *p = getenv("THREADDEBUG"); if (p) { @@ -107,7 +107,7 @@ else thread_debug = 1; } -#endif /* DEBUG */ +#endif /* Py_DEBUG */ if (initialized) return; initialized = 1;
