diff Objects/stringobject.c @ 1908:0437738279a8 legacy-trunk

* 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?)
author Guido van Rossum <guido@python.org>
date Wed, 28 Sep 1994 15:51:32 +0000
parents 0d318475f9e3
children de49d49044d7
line wrap: on
line diff
--- a/Objects/stringobject.c	Wed Sep 28 15:46:03 1994 +0000
+++ b/Objects/stringobject.c	Wed Sep 28 15:51:32 1994 +0000
@@ -32,7 +32,7 @@
 int null_strings, one_strings;
 #endif
 
-#ifdef __STDC__
+#ifdef HAVE_LIMITS_H
 #include <limits.h>
 #else
 #ifndef UCHAR_MAX