freebsd-ports/lang/gforth/files/patch-engine::signals.c
Mark Linimon a39bc0b003 CONFIGURE_ENV and MAKE_ENV added; PLIST_SUB updated; WORDSIZE
and BYTEORDER added; EMPTY_DIRS split (the second one will be deleted
upon 0.6.2 update, if any); SIZE added to distinfo; plist generalized;
-fno-inline and FPE_* build fix added from 0.6.2.

The 0.6.2 runtime causes a Segmentation Fault at compilation time,
so, no update is planned right now... sorry.

PR:		ports/63991
Submitted by:	Cyrille Lefevre <cyrille.lefevre@laposte.net>
2004-03-17 20:03:17 +00:00

21 lines
756 B
C

--- engine/signals.c.orig Sun Mar 9 16:06:56 2003
+++ engine/signals.c Tue Mar 9 14:44:48 2004
@@ -142,10 +142,18 @@
#ifdef FPE_INTOVF
case FPE_INTOVF: code=-11; break; /* integer overflow */
#endif
+#ifdef FPE_FLTDIV
case FPE_FLTDIV: code=-42; break; /* floating point divide by zero */
+#endif
+#ifdef FPE_FLTOVF
case FPE_FLTOVF: code=-43; break; /* floating point overflow */
+#endif
+#ifdef FPE_FLTUND
case FPE_FLTUND: code=-54; break; /* floating point underflow */
+#endif
+#ifdef FPE_FLTRES
case FPE_FLTRES: code=-41; break; /* floating point inexact result */
+#endif
#if 0 /* defined by Unix95, but unnecessary */
case FPE_FLTINV: /* invalid floating point operation */
case FPE_FLTSUB: /* subscript out of range */