Changes for Lee Busby's SIGFPE patch set.

Two new modules fpectl and fpetest.
Surround various and sundry f.p. operations with PyFPE_*_PROTECT macros.
This commit is contained in:
Guido van Rossum 1997-02-14 22:59:58 +00:00
parent 0ae748d3c4
commit 52fa3a6909
8 changed files with 492 additions and 1 deletions

View file

@ -724,10 +724,14 @@ Tkapp_ExprDouble (self, args)
{
char *s;
double v;
int retval;
if (!PyArg_Parse(args, "s", &s))
return NULL;
if (Tcl_ExprDouble(Tkapp_Interp(self), s, &v) == TCL_ERROR)
PyFPE_START_PROTECT("Tkapp_ExprDouble", return 0)
retval = Tcl_ExprDouble (Tkapp_Interp (self), s, &v);
PyFPE_END_PROTECT
if (retval == TCL_ERROR)
return Tkinter_Error(self);
return Py_BuildValue("d", v);
}