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
54cdeba9
Commit
54cdeba9
authored
Aug 30, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inline PyObject_CallObject (Marc-Andre Lemburg).
parent
fb0ad21c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
Include/ceval.h
Include/ceval.h
+4
-1
Python/ceval.c
Python/ceval.c
+5
-0
No files found.
Include/ceval.h
View file @
54cdeba9
...
...
@@ -37,10 +37,13 @@ PERFORMANCE OF THIS SOFTWARE.
/* Interface to random parts in ceval.c */
PyObject
*
PyEval_CallObject
Py_PROTO
((
PyObject
*
,
PyObject
*
));
PyObject
*
PyEval_CallObjectWithKeywords
Py_PROTO
((
PyObject
*
,
PyObject
*
,
PyObject
*
));
/* Inline this */
#define PyEval_CallObject(func,arg) \
PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL)
PyObject
*
PyEval_GetBuiltins
Py_PROTO
((
void
));
PyObject
*
PyEval_GetGlobals
Py_PROTO
((
void
));
PyObject
*
PyEval_GetLocals
Py_PROTO
((
void
));
...
...
Python/ceval.c
View file @
54cdeba9
...
...
@@ -2254,6 +2254,9 @@ Py_FlushLine()
/* External interface to call any callable object.
The arg must be a tuple or NULL. */
#undef PyEval_CallObject
/* for backward compatibility: export this interface */
PyObject
*
PyEval_CallObject
(
func
,
arg
)
PyObject
*
func
;
...
...
@@ -2261,6 +2264,8 @@ PyEval_CallObject(func, arg)
{
return
PyEval_CallObjectWithKeywords
(
func
,
arg
,
(
PyObject
*
)
NULL
);
}
#define PyEval_CallObject(func,arg) \
PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL)
PyObject
*
PyEval_CallObjectWithKeywords
(
func
,
arg
,
kw
)
...
...
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