Change makefile to include "missing.o".
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/config.h,v 9.47 1989/09/20 23:07:08 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/config.h,v 9.48 1989/09/22 08:44:46 cph Exp $
Copyright (c) 1987, 1988, 1989 Massachusetts Institute of Technology
HAS_FREXP should be defined if the system has the double precision
procedures ldexp and frexp. On Unix, look for frexp(3C).
+ HAS_MODF should be defined if the system has the double precision
+ procedure modf. On Unix, look for frexp(3C). **** This flag is
+ new as of 22-SEP-89; please comment out any incorrect #define's as
+ we haven't been able to test this on all machines.
+
*/
\f
/* Possible values for FASL_INTERNAL_FORMAT. For the most part this
#define MAX_FLONUM_EXPONENT 127
#define HAS_FLOOR
#define HAS_FREXP
+#define HAS_MODF
/* Not on these, however */
#define MAX_FLONUM_EXPONENT 1023
#define HAS_FLOOR
#define HAS_FREXP
+#define HAS_MODF
/* C compiler bug in GC_Type */
#define term_type int
#endif
#define MAX_FLONUM_EXPONENT 1023
#define HAS_FLOOR
#define HAS_FREXP
+#define HAS_MODF
/* C Compiler bug when constant folding and anchor pointing */
#define And2(x, y) ((x) ? (y) : false)
#define HAS_FLOOR
#define HAS_FREXP
+#define HAS_MODF
#define HAVE_DOUBLE_TO_LONG_BUG
#endif /* sun */
#define MAX_FLONUM_EXPONENT 127
#include <public.h>
#define HAS_FREXP
+#define HAS_MODF
#define STACK_SIZE 4 /* 4K objects */
#endif
\f
#define FLOATING_ALIGNMENT 0x7 /* Low 3 MBZ for float storage */
#define HAS_FLOOR
#define HAS_FREXP
+#define HAS_MODF
#ifndef AVOID_SPECTRUM_TC_KLUDGE
#define MAX_FLONUM_EXPONENT 1023
#define HAS_FLOOR
#define HAS_FREXP
+#define HAS_MODF
#endif
#ifdef pyr
#define MAX_FLONUM_EXPONENT 1023
#define HAS_FLOOR
#define HAS_FREXP
+#define HAS_MODF
#endif
#ifdef mips
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/missing.c,v 9.23 1989/09/20 23:10:19 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/missing.c,v 9.24 1989/09/22 08:45:25 cph Exp $
Copyright (c) 1987, 1988, 1989 Massachusetts Institute of Technology
/* This file contains utilities potentially missing from the math library. */
\f
+#ifndef HAS_FREXP
+
double
frexp (value, eptr)
double value;
else
return (x);
}
+
+#endif /* not HAS_FREXP */
\f
+#ifndef HAS_MODF
+
double
modf (value, iptr)
double value;
}
}
+#endif /* not HAS_MODF */
+\f
+#ifndef HAS_FLOOR
+
double
floor (x)
double x;
double fraction = (modf (x, (&iptr)));
return ((fraction > 0) ? (iptr + 1) : iptr);
}
-\f
+
+#endif /* not HAS_FLOOR */
+
#ifdef DEBUG_MISSING
#include <stdio.h>
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/psbmap.h,v 9.29 1989/09/20 23:10:51 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/psbmap.h,v 9.30 1989/09/22 08:45:36 cph Exp $
Copyright (c) 1987, 1988, 1989 Massachusetts Institute of Technology
#include "const.h"
#include "gccode.h"
-#ifdef HAS_FREXP
extern double frexp(), ldexp();
-#else
-#include "missing.c"
-#endif
#define PORTABLE_VERSION 5
/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/unxutl/Attic/ymkfile,v 1.9 1989/09/20 23:13:36 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/unxutl/Attic/ymkfile,v 1.10 1989/09/22 08:45:03 cph Exp $
Copyright (c) 1989 Massachusetts Institute of Technology
/* Source and object files */
-SCHEME_SOURCES = $(X_SOURCES) $(CTERM_SOURCES) $(GRAPHICS_SOURCES) SOURCES_SYSTEM SOURCES_MACHINE $(USER_PRIM_SOURCES)
-SCHEME_OBJECTS = $(X_OBJECTS) $(CTERM_OBJECTS) $(GRAPHICS_OBJECTS) OBJECTS_SYSTEM OBJECTS_MACHINE $(USER_PRIM_OBJECTS) usrdef.o
+SCHEME_SOURCES = $(X_SOURCES) $(CTERM_SOURCES) $(GRAPHICS_SOURCES) SOURCES_SYSTEM SOURCES_MACHINE $(USER_PRIM_SOURCES) missing.c
+SCHEME_OBJECTS = $(X_OBJECTS) $(CTERM_OBJECTS) $(GRAPHICS_OBJECTS) OBJECTS_SYSTEM OBJECTS_MACHINE $(USER_PRIM_OBJECTS) missing.o usrdef.o
SCHEME_LIB = $(USER_LIBS) $(GRAPHICS_LIBS) $(X_LIB) $(CTERM_LIB) LIB_MATH LIBS_SYSTEM LIBS_MACHINE LIB_DEBUG LIB_STANDARD
SOURCES = \