summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1990-11-02 17:50:43 (GMT)
committerGuido van Rossum <guido@python.org>1990-11-02 17:50:43 (GMT)
commit6923e134fc525b3d8a8089267ecb4bb98d08d3a3 (patch)
tree5618e90d53b1062ce50f7cfd319e3765941697d5 /Objects
parentf5401bd49ead1734906f97e5e289772d086378be (diff)
downloadcpython-6923e134fc525b3d8a8089267ecb4bb98d08d3a3.zip
cpython-6923e134fc525b3d8a8089267ecb4bb98d08d3a3.tar.gz
cpython-6923e134fc525b3d8a8089267ecb4bb98d08d3a3.tar.bz2
Moved prototyes for fmod and pow, and don't use them for THINK C.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/floatobject.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index 1707c30..c2b132e 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -14,6 +14,11 @@
#include "objimpl.h"
#include "errors.h"
+#ifndef THINK_C
+extern double fmod PROTO((double, double));
+extern double pow PROTO((double, double));
+#endif
+
object *
newfloatobject(fval)
double fval;
@@ -157,7 +162,6 @@ float_rem(v, w)
object *w;
{
double wx;
- extern double fmod PROTO((double, double));
if (!is_floatobject(w)) {
err_badarg();
return NULL;
@@ -176,7 +180,6 @@ float_pow(v, w)
object *w;
{
double iv, iw, ix;
- extern double pow PROTO((double, double));
if (!is_floatobject(w)) {
err_badarg();
return NULL;