summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-02-10 13:32:29 +0100
committerVictor Stinner <victor.stinner@gmail.com>2017-02-10 13:32:29 +0100
commitd3f4d3fd74ca4924bbca57433ba13435c164978e (patch)
tree1aaa12b7205fc811dfd72143450a399d35f4fb53 /Include
parentd4f3f7cf3514466c9d3c4b1b66825f1ec159f1f8 (diff)
downloadcpython-d3f4d3fd74ca4924bbca57433ba13435c164978e.tar.gz
Issue #29465: Add Objects/call.c file
* Move all functions to call objects in a new Objects/call.c file. * Rename fast_function() to _PyFunction_FastCallKeywords(). * Copy null_error() from Objects/abstract.c * Inline type_error() in call.c to not have to copy it, it was only called once. * Export _PyEval_EvalCodeWithName() since it is now called from call.c.
Diffstat (limited to 'Include')
-rw-r--r--Include/eval.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/Include/eval.h b/Include/eval.h
index a1c6e817dd..9541e106e2 100644
--- a/Include/eval.h
+++ b/Include/eval.h
@@ -10,14 +10,24 @@ extern "C" {
PyAPI_FUNC(PyObject *) PyEval_EvalCode(PyObject *, PyObject *, PyObject *);
PyAPI_FUNC(PyObject *) PyEval_EvalCodeEx(PyObject *co,
- PyObject *globals,
- PyObject *locals,
- PyObject **args, int argc,
- PyObject **kwds, int kwdc,
- PyObject **defs, int defc,
- PyObject *kwdefs, PyObject *closure);
+ PyObject *globals,
+ PyObject *locals,
+ PyObject **args, int argc,
+ PyObject **kwds, int kwdc,
+ PyObject **defs, int defc,
+ PyObject *kwdefs, PyObject *closure);
#ifndef Py_LIMITED_API
+PyAPI_FUNC(PyObject *) _PyEval_EvalCodeWithName(
+ PyObject *co,
+ PyObject *globals, PyObject *locals,
+ PyObject **args, Py_ssize_t argcount,
+ PyObject **kwnames, PyObject **kwargs,
+ Py_ssize_t kwcount, int kwstep,
+ PyObject **defs, Py_ssize_t defcount,
+ PyObject *kwdefs, PyObject *closure,
+ PyObject *name, PyObject *qualname);
+
PyAPI_FUNC(PyObject *) _PyEval_CallTracing(PyObject *func, PyObject *args);
#endif