diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-02-12 18:27:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-12 18:27:05 (GMT) |
commit | c22bfaae83ab5436d008ac0d13e7b47cbe776f08 (patch) | |
tree | 0d134ee68cbc104bb75aa5405d35ce066d41c0d4 /Include | |
parent | 3110a379bbb1ec10a84d70a2f0faffcf8d22c7ed (diff) | |
download | cpython-c22bfaae83ab5436d008ac0d13e7b47cbe776f08.zip cpython-c22bfaae83ab5436d008ac0d13e7b47cbe776f08.tar.gz cpython-c22bfaae83ab5436d008ac0d13e7b47cbe776f08.tar.bz2 |
bpo-29524: Add Objects/call.c file (#12)
* 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.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/Include/eval.h b/Include/eval.h index a1c6e81..9541e10 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 |