summaryrefslogtreecommitdiffstats
path: root/Modules/mathmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-04-03 19:06:03 (GMT)
committerGuido van Rossum <guido@python.org>1991-04-03 19:06:03 (GMT)
commit5b7f945bc3e86d26b7570d1dbc54f8012ba19d88 (patch)
tree8bbb1928c01f6343476d20af8be8e7b4e7ab9377 /Modules/mathmodule.c
parent4a450d06c71edaaab12dc983f057a8486ca99a02 (diff)
downloadcpython-5b7f945bc3e86d26b7570d1dbc54f8012ba19d88.zip
cpython-5b7f945bc3e86d26b7570d1dbc54f8012ba19d88.tar.gz
cpython-5b7f945bc3e86d26b7570d1dbc54f8012ba19d88.tar.bz2
Moved get*doublearg() routines to modsupport.c
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r--Modules/mathmodule.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index 7b2bdf2..f6e7286 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -35,35 +35,6 @@ extern int errno;
#include <math.h>
-static int
-getdoublearg(args, px)
- register object *args;
- double *px;
-{
- if (args == NULL)
- return err_badarg();
- if (is_floatobject(args)) {
- *px = getfloatvalue(args);
- return 1;
- }
- if (is_intobject(args)) {
- *px = getintvalue(args);
- return 1;
- }
- return err_badarg();
-}
-
-static int
-get2doublearg(args, px, py)
- register object *args;
- double *px, *py;
-{
- if (args == NULL || !is_tupleobject(args) || gettuplesize(args) != 2)
- return err_badarg();
- return getdoublearg(gettupleitem(args, 0), px) &&
- getdoublearg(gettupleitem(args, 1), py);
-}
-
static object *
math_1(args, func)
object *args;