summaryrefslogtreecommitdiffstats
path: root/unix/tclMtherr.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/tclMtherr.c')
-rw-r--r--unix/tclMtherr.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/unix/tclMtherr.c b/unix/tclMtherr.c
index 24b815d..dd86154 100644
--- a/unix/tclMtherr.c
+++ b/unix/tclMtherr.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * SCCS: @(#) tclMtherr.c 1.12 96/06/22 16:36:57
+ * SCCS: @(#) tclMtherr.c 1.14 98/02/13 15:35:28
*/
#include "tclInt.h"
@@ -29,15 +29,6 @@ extern int errno; /* Use errno from tclExecute.c. */
#endif
/*
- * The following variable is secretly shared with Tcl so we can
- * tell if expression evaluation is in progress. If not, matherr
- * just emulates the default behavior, which includes printing
- * a message.
- */
-
-extern int tcl_MathInProgress;
-
-/*
* The following definitions allow matherr to compile on systems
* that don't really support it. The compiled procedure is bogus,
* but it will never be executed on these systems anyway.
@@ -74,7 +65,7 @@ int
matherr(xPtr)
struct exception *xPtr; /* Describes error that occurred. */
{
- if (!tcl_MathInProgress) {
+ if (TclMathInProgress()) {
return 0;
}
if ((xPtr->type == DOMAIN) || (xPtr->type == SING)) {