diff src/floatfns.c @ 284:558f606b08ae r21-0b40

Import from CVS: tag r21-0b40
author cvs
date Mon, 13 Aug 2007 10:34:13 +0200
parents c5d627a313b1
children e11d67e05968
line wrap: on
line diff
--- a/src/floatfns.c	Mon Aug 13 10:33:19 2007 +0200
+++ b/src/floatfns.c	Mon Aug 13 10:34:13 2007 +0200
@@ -929,6 +929,9 @@
 
 #endif /* FLOAT_CATCH_SIGILL */
 
+/* In C++, it is impossible to determine what type matherr expects
+   without some more configure magic.
+   We shouldn't be using matherr anyways - it's a non-standard SYSVism. */
 #if defined (HAVE_MATHERR) && !defined(__cplusplus)
 int
 matherr (struct exception *x)
@@ -947,11 +950,11 @@
                         : Qnil)));
   switch (x->type)
     {
-    case DOMAIN:	Fsignal (Qdomain_error, args);		break;
-    case SING:		Fsignal (Qsingularity_error, args);	break;
-    case OVERFLOW:	Fsignal (Qoverflow_error, args);	break;
-    case UNDERFLOW:	Fsignal (Qunderflow_error, args);	break;
-    default:		Fsignal (Qarith_error, args);		break;
+    case DOMAIN:    Fsignal (Qdomain_error,	 args); break;
+    case SING:	    Fsignal (Qsingularity_error, args); break;
+    case OVERFLOW:  Fsignal (Qoverflow_error,	 args); break;
+    case UNDERFLOW: Fsignal (Qunderflow_error,	 args); break;
+    default:	    Fsignal (Qarith_error,	 args); break;
     }
   return 1;	/* don't set errno or print a message */
 }