Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc22bfaa

Browse files
authored
bpo-29524: Add Objects/call.c file (python#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 parent3110a37 commitc22bfaa

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,intargc,
16-
PyObject**kwds,intkwdc,
17-
PyObject**defs,intdefc,
18-
PyObject*kwdefs,PyObject*closure);
13+
PyObject*globals,
14+
PyObject*locals,
15+
PyObject**args,intargc,
16+
PyObject**kwds,intkwdc,
17+
PyObject**defs,intdefc,
18+
PyObject*kwdefs,PyObject*closure);
1919

2020
#ifndefPy_LIMITED_API
21+
PyAPI_FUNC(PyObject*)_PyEval_EvalCodeWithName(
22+
PyObject*co,
23+
PyObject*globals,PyObject*locals,
24+
PyObject**args,Py_ssize_targcount,
25+
PyObject**kwnames,PyObject**kwargs,
26+
Py_ssize_tkwcount,intkwstep,
27+
PyObject**defs,Py_ssize_tdefcount,
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)

[8]ページ先頭

©2009-2025 Movatter.jp