summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-09-28 15:51:32 (GMT)
committerGuido van Rossum <guido@python.org>1994-09-28 15:51:32 (GMT)
commit03093a248d4ef3af23a5906dea276c01e0c1ae2c (patch)
treef58e5149812f94b2df57e1be321f227a5236ead6 /Objects/stringobject.c
parent2929527aede2eab56d39cf5f5244f997479cfe9d (diff)
downloadcpython-03093a248d4ef3af23a5906dea276c01e0c1ae2c.zip
cpython-03093a248d4ef3af23a5906dea276c01e0c1ae2c.tar.gz
cpython-03093a248d4ef3af23a5906dea276c01e0c1ae2c.tar.bz2
* Include/classobject.h, Objects/classobject.c, Python/ceval.c:
entirely redone operator overloading. The rules for class instances are now much more relaxed than for other built-in types (whose coerce must still return two objects of the same type) * Objects/floatobject.c: add overflow check when converting float to int and implement truncation towards zero using ceil/float * Objects/longobject.c: change ValueError to OverflowError when converting to int * Objects/rangeobject.c: modernized * Objects/stringobject.c: use HAVE_LIMITS instead of __STDC__ * Objects/xxobject.c: changed to use new style (not finished?)
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 4221d68..359e4e9 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -32,7 +32,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
int null_strings, one_strings;
#endif
-#ifdef __STDC__
+#ifdef HAVE_LIMITS_H
#include <limits.h>
#else
#ifndef UCHAR_MAX