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

Delta Between Two Patch Sets: Include/methodobject.h

Issue 29259: Add tp_fastcall to PyTypeObject: support FASTCALL calling convention for all callable objects
Left Patch Set: Created 3 years, 1 month ago
Right Patch Set: Created 3 years 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
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',
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 #ifndef Py_LIMITED_API 86 #ifndef Py_LIMITED_API
87 #define METH_FASTCALL 0x0080 87 #define METH_FASTCALL 0x0080
88 88
89 typedef struct { 89 typedef struct {
90 PyObject_HEAD 90 PyObject_HEAD
91 PyMethodDef *m_ml; /* Description of the C function to call */ 91 PyMethodDef *m_ml; /* Description of the C function to call */
92 PyObject *m_self; /* Passed as 'self' arg to the C func, can be NULL */ 92 PyObject *m_self; /* Passed as 'self' arg to the C func, can be NULL */
93 PyObject *m_module; /* The __module__ attribute, can be anything */ 93 PyObject *m_module; /* The __module__ attribute, can be anything */
94 PyObject *m_weakreflist; /* List of weak references */ 94 PyObject *m_weakreflist; /* List of weak references */
95 } PyCFunctionObject; 95 } PyCFunctionObject;
96
97 PyAPI_FUNC(PyObject *) _PyMethodDef_RawFastCallKeywords(
98 PyMethodDef *method,
99 PyObject *self,
100 PyObject **args,
101 Py_ssize_t nargs,
102 PyObject *kwnames);
96 #endif 103 #endif
97 104
98 PyAPI_FUNC(int) PyCFunction_ClearFreeList(void); 105 PyAPI_FUNC(int) PyCFunction_ClearFreeList(void);
99 106
100 #ifndef Py_LIMITED_API 107 #ifndef Py_LIMITED_API
101 PyAPI_FUNC(void) _PyCFunction_DebugMallocStats(FILE *out); 108 PyAPI_FUNC(void) _PyCFunction_DebugMallocStats(FILE *out);
102 PyAPI_FUNC(void) _PyMethod_DebugMallocStats(FILE *out); 109 PyAPI_FUNC(void) _PyMethod_DebugMallocStats(FILE *out);
103 #endif 110 #endif
104 111
105 #ifdef __cplusplus 112 #ifdef __cplusplus
106 } 113 }
107 #endif 114 #endif
108 #endif /* !Py_METHODOBJECT_H */ 115 #endif /* !Py_METHODOBJECT_H */
LEFTRIGHT

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