Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/python2....
File: funcobject.h
[0] Fix | Delete
/* Function object interface */
[1] Fix | Delete
[2] Fix | Delete
#ifndef Py_FUNCOBJECT_H
[3] Fix | Delete
#define Py_FUNCOBJECT_H
[4] Fix | Delete
#ifdef __cplusplus
[5] Fix | Delete
extern "C" {
[6] Fix | Delete
#endif
[7] Fix | Delete
[8] Fix | Delete
/* Function objects and code objects should not be confused with each other:
[9] Fix | Delete
*
[10] Fix | Delete
* Function objects are created by the execution of the 'def' statement.
[11] Fix | Delete
* They reference a code object in their func_code attribute, which is a
[12] Fix | Delete
* purely syntactic object, i.e. nothing more than a compiled version of some
[13] Fix | Delete
* source code lines. There is one code object per source code "fragment",
[14] Fix | Delete
* but each code object can be referenced by zero or many function objects
[15] Fix | Delete
* depending only on how many times the 'def' statement in the source was
[16] Fix | Delete
* executed so far.
[17] Fix | Delete
*/
[18] Fix | Delete
[19] Fix | Delete
typedef struct {
[20] Fix | Delete
PyObject_HEAD
[21] Fix | Delete
PyObject *func_code; /* A code object */
[22] Fix | Delete
PyObject *func_globals; /* A dictionary (other mappings won't do) */
[23] Fix | Delete
PyObject *func_defaults; /* NULL or a tuple */
[24] Fix | Delete
PyObject *func_closure; /* NULL or a tuple of cell objects */
[25] Fix | Delete
PyObject *func_doc; /* The __doc__ attribute, can be anything */
[26] Fix | Delete
PyObject *func_name; /* The __name__ attribute, a string object */
[27] Fix | Delete
PyObject *func_dict; /* The __dict__ attribute, a dict or NULL */
[28] Fix | Delete
PyObject *func_weakreflist; /* List of weak references */
[29] Fix | Delete
PyObject *func_module; /* The __module__ attribute, can be anything */
[30] Fix | Delete
[31] Fix | Delete
/* Invariant:
[32] Fix | Delete
* func_closure contains the bindings for func_code->co_freevars, so
[33] Fix | Delete
* PyTuple_Size(func_closure) == PyCode_GetNumFree(func_code)
[34] Fix | Delete
* (func_closure may be NULL if PyCode_GetNumFree(func_code) == 0).
[35] Fix | Delete
*/
[36] Fix | Delete
} PyFunctionObject;
[37] Fix | Delete
[38] Fix | Delete
PyAPI_DATA(PyTypeObject) PyFunction_Type;
[39] Fix | Delete
[40] Fix | Delete
#define PyFunction_Check(op) (Py_TYPE(op) == &PyFunction_Type)
[41] Fix | Delete
[42] Fix | Delete
PyAPI_FUNC(PyObject *) PyFunction_New(PyObject *, PyObject *);
[43] Fix | Delete
PyAPI_FUNC(PyObject *) PyFunction_GetCode(PyObject *);
[44] Fix | Delete
PyAPI_FUNC(PyObject *) PyFunction_GetGlobals(PyObject *);
[45] Fix | Delete
PyAPI_FUNC(PyObject *) PyFunction_GetModule(PyObject *);
[46] Fix | Delete
PyAPI_FUNC(PyObject *) PyFunction_GetDefaults(PyObject *);
[47] Fix | Delete
PyAPI_FUNC(int) PyFunction_SetDefaults(PyObject *, PyObject *);
[48] Fix | Delete
PyAPI_FUNC(PyObject *) PyFunction_GetClosure(PyObject *);
[49] Fix | Delete
PyAPI_FUNC(int) PyFunction_SetClosure(PyObject *, PyObject *);
[50] Fix | Delete
[51] Fix | Delete
/* Macros for direct access to these values. Type checks are *not*
[52] Fix | Delete
done, so use with care. */
[53] Fix | Delete
#define PyFunction_GET_CODE(func) \
[54] Fix | Delete
(((PyFunctionObject *)func) -> func_code)
[55] Fix | Delete
#define PyFunction_GET_GLOBALS(func) \
[56] Fix | Delete
(((PyFunctionObject *)func) -> func_globals)
[57] Fix | Delete
#define PyFunction_GET_MODULE(func) \
[58] Fix | Delete
(((PyFunctionObject *)func) -> func_module)
[59] Fix | Delete
#define PyFunction_GET_DEFAULTS(func) \
[60] Fix | Delete
(((PyFunctionObject *)func) -> func_defaults)
[61] Fix | Delete
#define PyFunction_GET_CLOSURE(func) \
[62] Fix | Delete
(((PyFunctionObject *)func) -> func_closure)
[63] Fix | Delete
[64] Fix | Delete
/* The classmethod and staticmethod types lives here, too */
[65] Fix | Delete
PyAPI_DATA(PyTypeObject) PyClassMethod_Type;
[66] Fix | Delete
PyAPI_DATA(PyTypeObject) PyStaticMethod_Type;
[67] Fix | Delete
[68] Fix | Delete
PyAPI_FUNC(PyObject *) PyClassMethod_New(PyObject *);
[69] Fix | Delete
PyAPI_FUNC(PyObject *) PyStaticMethod_New(PyObject *);
[70] Fix | Delete
[71] Fix | Delete
#ifdef __cplusplus
[72] Fix | Delete
}
[73] Fix | Delete
#endif
[74] Fix | Delete
#endif /* !Py_FUNCOBJECT_H */
[75] Fix | Delete
[76] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function