Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
5b7f945b
Commit
5b7f945b
authored
Apr 03, 1991
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved get*doublearg() routines to modsupport.c
parent
4a450d06
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
+0
-29
Modules/mathmodule.c
Modules/mathmodule.c
+0
-29
No files found.
Modules/mathmodule.c
View file @
5b7f945b
...
@@ -35,35 +35,6 @@ extern int errno;
...
@@ -35,35 +35,6 @@ extern int errno;
#include <math.h>
#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
*
static
object
*
math_1
(
args
,
func
)
math_1
(
args
,
func
)
object
*
args
;
object
*
args
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment