Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/python2....
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 *(*PyCFunctionWithKeywords)(PyObject *, PyObject *,
[18] Fix | Delete
PyObject *);
[19] Fix | Delete
typedef PyObject *(*PyNoArgsFunction)(PyObject *);
[20] Fix | Delete
[21] Fix | Delete
PyAPI_FUNC(PyCFunction) PyCFunction_GetFunction(PyObject *);
[22] Fix | Delete
PyAPI_FUNC(PyObject *) PyCFunction_GetSelf(PyObject *);
[23] Fix | Delete
PyAPI_FUNC(int) PyCFunction_GetFlags(PyObject *);
[24] Fix | Delete
[25] Fix | Delete
/* Macros for direct access to these values. Type checks are *not*
[26] Fix | Delete
done, so use with care. */
[27] Fix | Delete
#define PyCFunction_GET_FUNCTION(func) \
[28] Fix | Delete
(((PyCFunctionObject *)func) -> m_ml -> ml_meth)
[29] Fix | Delete
#define PyCFunction_GET_SELF(func) \
[30] Fix | Delete
(((PyCFunctionObject *)func) -> m_self)
[31] Fix | Delete
#define PyCFunction_GET_FLAGS(func) \
[32] Fix | Delete
(((PyCFunctionObject *)func) -> m_ml -> ml_flags)
[33] Fix | Delete
PyAPI_FUNC(PyObject *) PyCFunction_Call(PyObject *, PyObject *, PyObject *);
[34] Fix | Delete
[35] Fix | Delete
struct PyMethodDef {
[36] Fix | Delete
const char *ml_name; /* The name of the built-in function/method */
[37] Fix | Delete
PyCFunction ml_meth; /* The C function that implements it */
[38] Fix | Delete
int ml_flags; /* Combination of METH_xxx flags, which mostly
[39] Fix | Delete
describe the args expected by the C func */
[40] Fix | Delete
const char *ml_doc; /* The __doc__ attribute, or NULL */
[41] Fix | Delete
};
[42] Fix | Delete
typedef struct PyMethodDef PyMethodDef;
[43] Fix | Delete
[44] Fix | Delete
PyAPI_FUNC(PyObject *) Py_FindMethod(PyMethodDef[], PyObject *, const char *);
[45] Fix | Delete
[46] Fix | Delete
#define PyCFunction_New(ML, SELF) PyCFunction_NewEx((ML), (SELF), NULL)
[47] Fix | Delete
PyAPI_FUNC(PyObject *) PyCFunction_NewEx(PyMethodDef *, PyObject *,
[48] Fix | Delete
PyObject *);
[49] Fix | Delete
[50] Fix | Delete
/* Flag passed to newmethodobject */
[51] Fix | Delete
#define METH_OLDARGS 0x0000
[52] Fix | Delete
#define METH_VARARGS 0x0001
[53] Fix | Delete
#define METH_KEYWORDS 0x0002
[54] Fix | Delete
/* METH_NOARGS and METH_O must not be combined with the flags above. */
[55] Fix | Delete
#define METH_NOARGS 0x0004
[56] Fix | Delete
#define METH_O 0x0008
[57] Fix | Delete
[58] Fix | Delete
/* METH_CLASS and METH_STATIC are a little different; these control
[59] Fix | Delete
the construction of methods for a class. These cannot be used for
[60] Fix | Delete
functions in modules. */
[61] Fix | Delete
#define METH_CLASS 0x0010
[62] Fix | Delete
#define METH_STATIC 0x0020
[63] Fix | Delete
[64] Fix | Delete
/* METH_COEXIST allows a method to be entered eventhough a slot has
[65] Fix | Delete
already filled the entry. When defined, the flag allows a separate
[66] Fix | Delete
method, "__contains__" for example, to coexist with a defined
[67] Fix | Delete
slot like sq_contains. */
[68] Fix | Delete
[69] Fix | Delete
#define METH_COEXIST 0x0040
[70] Fix | Delete
[71] Fix | Delete
typedef struct PyMethodChain {
[72] Fix | Delete
PyMethodDef *methods; /* Methods of this type */
[73] Fix | Delete
struct PyMethodChain *link; /* NULL or base type */
[74] Fix | Delete
} PyMethodChain;
[75] Fix | Delete
[76] Fix | Delete
PyAPI_FUNC(PyObject *) Py_FindMethodInChain(PyMethodChain *, PyObject *,
[77] Fix | Delete
const char *);
[78] Fix | Delete
[79] Fix | Delete
typedef struct {
[80] Fix | Delete
PyObject_HEAD
[81] Fix | Delete
PyMethodDef *m_ml; /* Description of the C function to call */
[82] Fix | Delete
PyObject *m_self; /* Passed as 'self' arg to the C func, can be NULL */
[83] Fix | Delete
PyObject *m_module; /* The __module__ attribute, can be anything */
[84] Fix | Delete
} PyCFunctionObject;
[85] Fix | Delete
[86] Fix | Delete
PyAPI_FUNC(int) PyCFunction_ClearFreeList(void);
[87] Fix | Delete
[88] Fix | Delete
PyAPI_FUNC(void) _PyCFunction_DebugMallocStats(FILE *out);
[89] Fix | Delete
PyAPI_FUNC(void) _PyMethod_DebugMallocStats(FILE *out);
[90] Fix | Delete
[91] Fix | Delete
[92] Fix | Delete
#ifdef __cplusplus
[93] Fix | Delete
}
[94] Fix | Delete
#endif
[95] Fix | Delete
#endif /* !Py_METHODOBJECT_H */
[96] Fix | Delete
[97] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function