summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-12-24 10:22:45 (GMT)
committerGuido van Rossum <guido@python.org>1993-12-24 10:22:45 (GMT)
commit2e1d433e4357a5a980a96f15b3802138a064fb64 (patch)
treeb76e57ff18a04aa0e6b17e37287e5efc671733bd /Objects
parent92fa23fd6d9c6819fe699de3d007c0848fccda0f (diff)
downloadcpython-2e1d433e4357a5a980a96f15b3802138a064fb64.zip
cpython-2e1d433e4357a5a980a96f15b3802138a064fb64.tar.gz
cpython-2e1d433e4357a5a980a96f15b3802138a064fb64.tar.bz2
Added getmaxint() so sys can initialize sys.maxint.
Added Makefile.in.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/Makefile.in20
-rw-r--r--Objects/intobject.c6
2 files changed, 17 insertions, 9 deletions
diff --git a/Objects/Makefile.in b/Objects/Makefile.in
index c86f06d..42671d9 100644
--- a/Objects/Makefile.in
+++ b/Objects/Makefile.in
@@ -9,18 +9,20 @@ VPATH= @srcdir@
CC= @CC@
RANLIB= @RANLIB@
+DEFS= @DEFS@
# === Other things that are customizable but not by configure ===
+TOP= ..
+INCLDIR= $(TOP)/Py
+OPT= -g
+CFLAGS= $(OPT) -I$(INCLDIR) $(DEFS)
+
AR= ar
MKDEP= mkdep
SHELL= /bin/sh
-INCLDIR= $(srcdir)/../Py
-OPT= -g
-CFLAGS= $(OPT) -I$(INCLDIR)
-
# === Fixed definitions ===
@@ -47,16 +49,16 @@ all: $(LIB)
$(LIB): $(OBJS)
$(AR) cr $(LIB) $(OBJS)
+ $(RANLIB) $(LIB)
clean:
- -rm -f $(OBJS)
- -rm -f core *~ [@,#]* *.old *.orig *.rej
+ -rm -f *.o core *~ [@,#]* *.old *.orig *.rej
clobber: clean
- -rm -f $(LIB) tags TAGS
+ -rm -f *.a tags TAGS
-Makefile: Makefile.in ../config.status
- (cd ..; $(SHELL) config.status)
+Makefile: Makefile.in $(TOP)/config.status
+ CONFIG_FILES=Makefile $(SHELL) $(TOP)/config.status
depend: $(SRCS)
$(MKDEP) $(CFLAGS) $(SRCS) $(PGENSRCS)
diff --git a/Objects/intobject.c b/Objects/intobject.c
index e9c35d7..c1d750c 100644
--- a/Objects/intobject.c
+++ b/Objects/intobject.c
@@ -47,6 +47,12 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define LONG_BIT (CHAR_BIT * sizeof(long))
#endif
+long
+getmaxint()
+{
+ return LONG_MAX; /* To initialize sys.maxint */
+}
+
/* Standard Booleans */
intobject FalseObject = {