+EMHOME=../../..
INTS=em2_t--- em2_---- em2_t-cp em2_t-c- em2_t--p \
em4_t--- em4_---- em4_t-cp em4_t-c- em4_t--p
P = mloop
FILES=deffile $P0 $P1 $P2 $P3 $P4 $P5 $P6 $P7 $P8 $P9 $Pa $Pb $Pc
-CPP=../../../lib/cpp
-b=../../../lib/em
+CPP=$(EMHOME)/lib/cpp
+b=$(EMHOME)/lib/em
+CFLAGS=-I$(EMHOME)/h -O
FLTRAP=
all: $(INTS) em
em: em.c
- $(CC) -o em -I../../../h em.c
+ $(CC) $(CFLAGS) -o em em.c
tmp.s: $(FILES)
cat $(FILES) > tmp.s
con_float.o: con_float.c
case `ack_sys` in m68k2|pmds) \
- acc -mm68k4 -c -L -O con_float.c;; \
- *) acc -c -L -O con_float.c;; \
+ acc -I$(EMHOME)/mach -mm68k4 -c -L -O con_float.c;; \
+ *) acc -c -I$(EMHOME)/mach -L -O con_float.c;; \
esac
compile: Makefile
/* unfortunately, we cannot just do an atof and convert result to float
- is neccessary, because that might result in over/underflow at an
+ if neccessary, because that might result in over/underflow at an
unexpected moment. For the time being, overflow in floating point
constants goes undetected
*/
-con_float(argval, str, res)
+
+#include <con_float>
+
+con_float(str, argval, res)
char *str, *res;
{
- double f;
- double atof();
- int i;
- double frexp(), ldexp();
- int j;
- float fl;
- char *p;
-
- f = atof(str);
- if (f == 0 || argval == 8) {
- p = (char *) &f;
- while (argval--) *res++ = *p++;
- return;
- }
- fl = f;
- p = (char *) &fl;
- while (argval--) *res++ = *p++;
+ float_cst(str, argval, res);
}