diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-07-15 18:38:47 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-07-15 18:38:47 (GMT) |
commit | 0d5dd68692e8e7a4ebe16cf0902de6a778ea5200 (patch) | |
tree | fd1db4976fcd7090a2230d43012f37d1ede1afb4 | |
parent | b2c075bec452f66155d447ed9a1ae1a6479502a8 (diff) | |
download | cpython-0d5dd68692e8e7a4ebe16cf0902de6a778ea5200.zip cpython-0d5dd68692e8e7a4ebe16cf0902de6a778ea5200.tar.gz cpython-0d5dd68692e8e7a4ebe16cf0902de6a778ea5200.tar.bz2 |
Python.h: Don't attempt to redefine NDEBUG if it's already defined.
Others: Remove redundant includes of assert.h.
-rw-r--r-- | Include/Python.h | 2 | ||||
-rw-r--r-- | Modules/mpzmodule.c | 1 | ||||
-rw-r--r-- | Modules/regexpr.c | 1 | ||||
-rw-r--r-- | Objects/longobject.c | 1 | ||||
-rw-r--r-- | PC/import_nt.c | 1 |
5 files changed, 2 insertions, 4 deletions
diff --git a/Include/Python.h b/Include/Python.h index 334116c..5d91125 100644 --- a/Include/Python.h +++ b/Include/Python.h @@ -51,8 +51,10 @@ #endif #ifndef Py_DEBUG +#ifndef NDEBUG #define NDEBUG 1 #endif +#endif #include <assert.h> #include "pyport.h" diff --git a/Modules/mpzmodule.c b/Modules/mpzmodule.c index d4a7370..bcbd238 100644 --- a/Modules/mpzmodule.c +++ b/Modules/mpzmodule.c @@ -12,7 +12,6 @@ #include "Python.h" -#include <assert.h> #include <sys/types.h> /* For size_t */ /* diff --git a/Modules/regexpr.c b/Modules/regexpr.c index 8694c74..8fe1321 100644 --- a/Modules/regexpr.c +++ b/Modules/regexpr.c @@ -30,7 +30,6 @@ #include "Python.h" #include "regexpr.h" -#include <assert.h> /* The original code blithely assumed that sizeof(short) == 2. Not * always true. Original instances of "(short)x" were replaced by diff --git a/Objects/longobject.c b/Objects/longobject.c index 6e337d0..71bd1ce 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -6,7 +6,6 @@ #include "Python.h" #include "longintrepr.h" -#include <assert.h> #include <ctype.h> #define ABS(x) ((x) < 0 ? -(x) : (x)) diff --git a/PC/import_nt.c b/PC/import_nt.c index 573106f..58cd9e4 100644 --- a/PC/import_nt.c +++ b/PC/import_nt.c @@ -8,7 +8,6 @@ #include "Python.h" #include "osdefs.h" -#include <assert.h> #include <windows.h> #include "importdl.h" #include "malloc.h" /* for alloca */ |