Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/python3....
File: methodobject.h
[0] Fix | Delete
/* Method object interface */
[1] Fix | Delete
[2] Fix | Delete
#ifndef Py_METHODOBJECT_H
[3] Fix | Delete
#define Py_METHODOBJECT_H
[4] Fix | Delete
#ifdef __cplusplus
[5] Fix | Delete
extern "C" {
[6] Fix | Delete
#endif
[7] Fix | Delete
[8] Fix | Delete
/* This is about the type 'builtin_function_or_method',
[9] Fix | Delete
not Python methods in user-defined classes. See classobject.h
[10] Fix | Delete
for the latter. */
[11] Fix | Delete
[12] Fix | Delete
PyAPI_DATA(PyTypeObject) PyCFunction_Type;
[13] Fix | Delete
[14] Fix | Delete
#define PyCFunction_Check(op) (Py_TYPE(op) == &PyCFunction_Type)
[15] Fix | Delete
[16] Fix | Delete
typedef PyObject *(*PyCFunction)(PyObject *, PyObject *);
[17] Fix | Delete
typedef PyObject *(*_PyCFunctionFast) (PyObject *self, PyObject **args,
[18] Fix | Delete
Py_ssize_t nargs, PyObject *kwnames);
[19] Fix | Delete
typedef PyObject *(*PyCFunctionWithKeywords)(PyObject *, PyObject *,
[20] Fix | Delete
PyObject *);
[21] Fix | Delete
typedef PyObject *(*PyNoArgsFunction)(PyObject *);
[22] Fix | Delete
[23] Fix | Delete
PyAPI_FUNC(PyCFunction) PyCFunction_GetFunction(PyObject *);
[24] Fix | Delete
PyAPI_FUNC(PyObject *) PyCFunction_GetSelf(PyObject *);
[25] Fix | Delete
PyAPI_FUNC(int) PyCFunction_GetFlags(PyObject *);
[26] Fix | Delete
[27] Fix | Delete
/* Macros for direct access to these values. Type checks are *not*
[28] Fix | Delete
done, so use with care. */
[29] Fix | Delete
#ifndef Py_LIMITED_API
[30] Fix | Delete
#define PyCFunction_GET_FUNCTION(func) \
[31] Fix | Delete
(((PyCFunctionObject *)func) -> m_ml -> ml_meth)
[32] Fix | Delete
#define PyCFunction_GET_SELF(func) \
[33] Fix | Delete
(((PyCFunctionObject *)func) -> m_ml -> ml_flags & METH_STATIC ? \
[34] Fix | Delete
NULL : ((PyCFunctionObject *)func) -> m_self)
[35] Fix | Delete
#define PyCFunction_GET_FLAGS(func) \
[36] Fix | Delete
(((PyCFunctionObject *)func) -> m_ml -> ml_flags)
[37] Fix | Delete
#endif
[38] Fix | Delete
PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *);
[39] Fix | Delete
[40] Fix | Delete
#ifndef Py_LIMITED_API
[41] Fix | Delete
PyAPI_FUNC(PyObject *) _PyCFunction_FastCallDict(PyObject *func,
[42] Fix | Delete
PyObject **args,
[43] Fix | Delete
Py_ssize_t nargs,
[44] Fix | Delete
PyObject *kwargs);
[45] Fix | Delete
[46] Fix | Delete
PyAPI_FUNC(PyObject *) _PyCFunction_FastCallKeywords(PyObject *func,
[47] Fix | Delete
PyObject **stack,
[48] Fix | Delete
Py_ssize_t nargs,
[49] Fix | Delete
PyObject *kwnames);
[50] Fix | Delete
#endif
[51] Fix | Delete
[52] Fix | Delete
struct PyMethodDef {
[53] Fix | Delete
const char *ml_name; /* The name of the built-in function/method */
[54] Fix | Delete
PyCFunction ml_meth; /* The C function that implements it */
[55] Fix | Delete
int ml_flags; /* Combination of METH_xxx flags, which mostly
[56] Fix | Delete
describe the args expected by the C func */
[57] Fix | Delete
const char *ml_doc; /* The __doc__ attribute, or NULL */
[58] Fix | Delete
};
[59] Fix | Delete
typedef struct PyMethodDef PyMethodDef;
[60] Fix | Delete
[61] Fix | Delete
#define PyCFunction_New(ML, SELF) PyCFunction_NewEx((ML), (SELF), NULL)
[62] Fix | Delete
PyAPI_FUNC(PyObject *) PyCFunction_NewEx(PyMethodDef *, PyObject *,
[63] Fix | Delete
PyObject *);
[64] Fix | Delete
[65] Fix | Delete
/* Flag passed to newmethodobject */
[66] Fix | Delete
/* #define METH_OLDARGS 0x0000 -- unsupported now */
[67] Fix | Delete
#define METH_VARARGS 0x0001
[68] Fix | Delete
#define METH_KEYWORDS 0x0002
[69] Fix | Delete
/* METH_NOARGS and METH_O must not be combined with the flags above. */
[70] Fix | Delete
#define METH_NOARGS 0x0004
[71] Fix | Delete
#define METH_O 0x0008
[72] Fix | Delete
[73] Fix | Delete
/* METH_CLASS and METH_STATIC are a little different; these control
[74] Fix | Delete
the construction of methods for a class. These cannot be used for
[75] Fix | Delete
functions in modules. */
[76] Fix | Delete
#define METH_CLASS 0x0010
[77] Fix | Delete
#define METH_STATIC 0x0020
[78] Fix | Delete
[79] Fix | Delete
/* METH_COEXIST allows a method to be entered even though a slot has
[80] Fix | Delete
already filled the entry. When defined, the flag allows a separate
[81] Fix | Delete
method, "__contains__" for example, to coexist with a defined
[82] Fix | Delete
slot like sq_contains. */
[83] Fix | Delete
[84] Fix | Delete
#define METH_COEXIST 0x0040
[85] Fix | Delete
[86] Fix | Delete
#ifndef Py_LIMITED_API
[87] Fix | Delete
#define METH_FASTCALL 0x0080
[88] Fix | Delete
[89] Fix | Delete
typedef struct {
[90] Fix | Delete
PyObject_HEAD
[91] Fix | Delete
PyMethodDef *m_ml; /* Description of the C function to call */
[92] Fix | Delete
PyObject *m_self; /* Passed as 'self' arg to the C func, can be NULL */
[93] Fix | Delete
PyObject *m_module; /* The __module__ attribute, can be anything */
[94] Fix | Delete
PyObject *m_weakreflist; /* List of weak references */
[95] Fix | Delete
} PyCFunctionObject;
[96] Fix | Delete
#endif
[97] Fix | Delete
[98] Fix | Delete
PyAPI_FUNC(int) PyCFunction_ClearFreeList(void);
[99] Fix | Delete
[100] Fix | Delete
#ifndef Py_LIMITED_API
[101] Fix | Delete
PyAPI_FUNC(void) _PyCFunction_DebugMallocStats(FILE *out);
[102] Fix | Delete
PyAPI_FUNC(void) _PyMethod_DebugMallocStats(FILE *out);
[103] Fix | Delete
#endif
[104] Fix | Delete
[105] Fix | Delete
#ifdef __cplusplus
[106] Fix | Delete
}
[107] Fix | Delete
#endif
[108] Fix | Delete
#endif /* !Py_METHODOBJECT_H */
[109] Fix | Delete
[110] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function