Skip to content

Commit c22bfaa

Browse files
authored
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.
1 parent 3110a37 commit c22bfaa

File tree

9 files changed

+1393
-1345
lines changed

9 files changed

+1393
-1345
lines changed

Include/eval.h

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,24 @@ extern "C" {
1010
PyAPI_FUNC(PyObject *) PyEval_EvalCode(PyObject *, PyObject *, PyObject *);
1111

1212
PyAPI_FUNC(PyObject *) PyEval_EvalCodeEx(PyObject *co,
13-
PyObject *globals,
14-
PyObject *locals,
15-
PyObject **args, int argc,
16-
PyObject **kwds, int kwdc,
17-
PyObject **defs, int defc,
18-
PyObject *kwdefs, PyObject *closure);
13+
PyObject *globals,
14+
PyObject *locals,
15+
PyObject **args, int argc,
16+
PyObject **kwds, int kwdc,
17+
PyObject **defs, int defc,
18+
PyObject *kwdefs, PyObject *closure);
1919

2020
#ifndef Py_LIMITED_API
21+
PyAPI_FUNC(PyObject *) _PyEval_EvalCodeWithName(
22+
PyObject *co,
23+
PyObject *globals, PyObject *locals,
24+
PyObject **args, Py_ssize_t argcount,
25+
PyObject **kwnames, PyObject **kwargs,
26+
Py_ssize_t kwcount, int kwstep,
27+
PyObject **defs, Py_ssize_t defcount,
28+
PyObject *kwdefs, PyObject *closure,
29+
PyObject *name, PyObject *qualname);
30+
2131
PyAPI_FUNC(PyObject *) _PyEval_CallTracing(PyObject *func, PyObject *args);
2232
#endif
2333

Makefile.pre.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ OBJECT_OBJS= \
409409
Objects/bytes_methods.o \
410410
Objects/bytearrayobject.o \
411411
Objects/bytesobject.o \
412+
Objects/call.o \
412413
Objects/cellobject.o \
413414
Objects/classobject.o \
414415
Objects/codeobject.o \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy