summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-03-14 04:32:50 (GMT)
committerGuido van Rossum <guido@python.org>1997-03-14 04:32:50 (GMT)
commit45b83915f8d5974045d374c981531d9b98570df1 (patch)
treef7212bc9be87ae8c5464633e0701cbf9a2f15b15 /Python
parent1aeb1047baa41af14e720f74f30d288417f1122e (diff)
downloadcpython-45b83915f8d5974045d374c981531d9b98570df1.zip
cpython-45b83915f8d5974045d374c981531d9b98570df1.tar.gz
cpython-45b83915f8d5974045d374c981531d9b98570df1.tar.bz2
New form of PyFPE_END_PROTECT macro.
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c4
-rw-r--r--Python/marshal.c6
-rw-r--r--Python/pyfpe.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 9f7d1f8..3bdd994 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -818,14 +818,14 @@ parsenumber(co, s)
c.real = 0.;
PyFPE_START_PROTECT("atof", return 0)
c.imag = atof(s);
- PyFPE_END_PROTECT
+ PyFPE_END_PROTECT(c)
return newcomplexobject(c);
}
else {
#endif
PyFPE_START_PROTECT("atof", return 0)
dx = atof(s);
- PyFPE_END_PROTECT
+ PyFPE_END_PROTECT(dx)
return newfloatobject(dx);
}
}
diff --git a/Python/marshal.c b/Python/marshal.c
index f4634f0..22d0242 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -422,7 +422,7 @@ r_object(p)
buf[n] = '\0';
PyFPE_START_PROTECT("atof", return 0)
dx = atof(buf);
- PyFPE_END_PROTECT
+ PyFPE_END_PROTECT(dx)
return newfloatobject(dx);
}
@@ -441,7 +441,7 @@ r_object(p)
buf[n] = '\0';
PyFPE_START_PROTECT("atof", return 0)
c.real = atof(buf);
- PyFPE_END_PROTECT
+ PyFPE_END_PROTECT(c)
n = r_byte(p);
if (r_string(buf, (int)n, p) != n) {
err_setstr(EOFError,
@@ -451,7 +451,7 @@ r_object(p)
buf[n] = '\0';
PyFPE_START_PROTECT("atof", return 0)
c.imag = atof(buf);
- PyFPE_END_PROTECT
+ PyFPE_END_PROTECT(c)
return newcomplexobject(c);
}
#endif
diff --git a/Python/pyfpe.c b/Python/pyfpe.c
index 0b38997..a1de1af 100644
--- a/Python/pyfpe.c
+++ b/Python/pyfpe.c
@@ -12,5 +12,5 @@
#ifdef WANT_SIGFPE_HANDLER
jmp_buf PyFPE_jbuf;
int PyFPE_counter = 0;
-double PyFPE_dummy(void){return(1.0);}
+double PyFPE_dummy(){return(1.0);}
#endif