summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-07 22:02:18 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-07 22:02:18 (GMT)
commit22201221cc64029e729236ae7ac9ef1772e2cb01 (patch)
treefddc5f881935264e9aea56ff90227c0a6cd76ec6
parentc77e24b233c0b1b06de077a252b78cfdc5d7df18 (diff)
downloadcpython-22201221cc64029e729236ae7ac9ef1772e2cb01.zip
cpython-22201221cc64029e729236ae7ac9ef1772e2cb01.tar.gz
cpython-22201221cc64029e729236ae7ac9ef1772e2cb01.tar.bz2
Oops. I killed a bit too much and not enough when I deleted intobject.c.
-rw-r--r--Makefile.pre.in1
-rw-r--r--Objects/longobject.c6
2 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 8f06c4e..1ca422a 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -296,7 +296,6 @@ OBJECT_OBJS= \
Objects/floatobject.o \
Objects/frameobject.o \
Objects/funcobject.o \
- Objects/intobject.o \
Objects/iterobject.o \
Objects/listobject.o \
Objects/longobject.o \
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 3659225..79d734e 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -7,6 +7,12 @@
#include <ctype.h>
+long
+PyInt_GetMax(void)
+{
+ return LONG_MAX; /* To initialize sys.maxint */
+}
+
#ifndef NSMALLPOSINTS
#define NSMALLPOSINTS 257
#endif