Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7)

Side by Side Diff: Include/methodobject.h

Issue 29259: Add tp_fastcall to PyTypeObject: support FASTCALL calling convention for all callable objects
Patch Set: Created 3 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Include/abstract.h ('k') | Include/modsupport.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* Method object interface */ 2 /* Method object interface */
3 3
4 #ifndef Py_METHODOBJECT_H 4 #ifndef Py_METHODOBJECT_H
5 #define Py_METHODOBJECT_H 5 #define Py_METHODOBJECT_H
6 #ifdef __cplusplus 6 #ifdef __cplusplus
7 extern "C" { 7 extern "C" {
8 #endif 8 #endif
9 9
10 /* This is about the type 'builtin_function_or_method', 10 /* This is about the type 'builtin_function_or_method',
11 not Python methods in user-defined classes. See classobject.h 11 not Python methods in user-defined classes. See classobject.h
12 for the latter. */ 12 for the latter. */
13 13
14 PyAPI_DATA(PyTypeObject) PyCFunction_Type; 14 PyAPI_DATA(PyTypeObject) PyCFunction_Type;
15 15
16 #define PyCFunction_Check(op) (Py_TYPE(op) == &PyCFunction_Type) 16 #define PyCFunction_Check(op) (Py_TYPE(op) == &PyCFunction_Type)
17 17
18 typedef PyObject *(*PyCFunction)(PyObject *, PyObject *); 18 typedef PyObject *(*PyCFunction)(PyObject *, PyObject *);
19 typedef PyObject *(*_PyCFunctionFast) (PyObject *self, PyObject **args,
20 Py_ssize_t nargs, PyObject *kwnames);
21 typedef PyObject *(*PyCFunctionWithKeywords)(PyObject *, PyObject *, 19 typedef PyObject *(*PyCFunctionWithKeywords)(PyObject *, PyObject *,
22 PyObject *); 20 PyObject *);
23 typedef PyObject *(*PyNoArgsFunction)(PyObject *); 21 typedef PyObject *(*PyNoArgsFunction)(PyObject *);
24 22
25 PyAPI_FUNC(PyCFunction) PyCFunction_GetFunction(PyObject *); 23 PyAPI_FUNC(PyCFunction) PyCFunction_GetFunction(PyObject *);
26 PyAPI_FUNC(PyObject *) PyCFunction_GetSelf(PyObject *); 24 PyAPI_FUNC(PyObject *) PyCFunction_GetSelf(PyObject *);
27 PyAPI_FUNC(int) PyCFunction_GetFlags(PyObject *); 25 PyAPI_FUNC(int) PyCFunction_GetFlags(PyObject *);
28 26
29 /* Macros for direct access to these values. Type checks are *not* 27 /* Macros for direct access to these values. Type checks are *not*
30 done, so use with care. */ 28 done, so use with care. */
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 99
102 #ifndef Py_LIMITED_API 100 #ifndef Py_LIMITED_API
103 PyAPI_FUNC(void) _PyCFunction_DebugMallocStats(FILE *out); 101 PyAPI_FUNC(void) _PyCFunction_DebugMallocStats(FILE *out);
104 PyAPI_FUNC(void) _PyMethod_DebugMallocStats(FILE *out); 102 PyAPI_FUNC(void) _PyMethod_DebugMallocStats(FILE *out);
105 #endif 103 #endif
106 104
107 #ifdef __cplusplus 105 #ifdef __cplusplus
108 } 106 }
109 #endif 107 #endif
110 #endif /* !Py_METHODOBJECT_H */ 108 #endif /* !Py_METHODOBJECT_H */
OLDNEW
« no previous file with comments | « Include/abstract.h ('k') | Include/modsupport.h » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+