os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/win/tclWinMtherr.c
First public contribution.
4 * This function provides a default implementation of the
5 * _matherr function for Borland C++.
7 * Copyright (c) 1995 Sun Microsystems, Inc.
9 * See the file "license.terms" for information on usage and redistribution
10 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
12 * RCS: @(#) $Id: tclWinMtherr.c,v 1.5 2002/05/31 22:20:22 dgp Exp $
15 #include "tclWinInt.h"
20 *----------------------------------------------------------------------
24 * This procedure is invoked by Borland C++ when certain
25 * errors occur in mathematical functions. This procedure
26 * replaces the default implementation which generates pop-up
30 * Returns 1 to indicate that we've handled the error
34 * Sets errno based on what's in xPtr.
36 *----------------------------------------------------------------------
41 struct exception *xPtr; /* Describes error that occurred. */
43 if ((xPtr->type == DOMAIN)
45 || (xPtr->type == TLOSS)
47 || (xPtr->type == SING)) {