Lines Matching refs:PyFunctionObject
12 PyFunctionObject *op = PyObject_GC_New(PyFunctionObject, in PyFunction_New()
70 return ((PyFunctionObject *) op) -> func_code; in PyFunction_GetCode()
80 return ((PyFunctionObject *) op) -> func_globals; in PyFunction_GetGlobals()
90 return ((PyFunctionObject *) op) -> func_module; in PyFunction_GetModule()
100 return ((PyFunctionObject *) op) -> func_defaults; in PyFunction_GetDefaults()
119 Py_XSETREF(((PyFunctionObject *)op)->func_defaults, defaults); in PyFunction_SetDefaults()
130 return ((PyFunctionObject *) op) -> func_closure; in PyFunction_GetClosure()
151 Py_XSETREF(((PyFunctionObject *)op)->func_closure, closure); in PyFunction_SetClosure()
157 #define OFF(x) offsetof(PyFunctionObject, x)
185 func_get_dict(PyFunctionObject *op) in func_get_dict()
199 func_set_dict(PyFunctionObject *op, PyObject *value) in func_set_dict()
225 func_get_code(PyFunctionObject *op) in func_get_code()
234 func_set_code(PyFunctionObject *op, PyObject *value) in func_set_code()
267 func_get_name(PyFunctionObject *op) in func_get_name()
274 func_set_name(PyFunctionObject *op, PyObject *value) in func_set_name()
295 func_get_defaults(PyFunctionObject *op) in func_get_defaults()
308 func_set_defaults(PyFunctionObject *op, PyObject *value) in func_set_defaults()
370 PyFunctionObject *newfunc; in func_new()
424 newfunc = (PyFunctionObject *)PyFunction_New((PyObject *)code, in func_new()
446 func_dealloc(PyFunctionObject *op) in func_dealloc()
463 func_repr(PyFunctionObject *op) in func_repr()
471 func_traverse(PyFunctionObject *f, visitproc visit, void *arg) in func_traverse()
547 sizeof(PyFunctionObject),
569 offsetof(PyFunctionObject, func_weakreflist), /* tp_weaklistoffset */
579 offsetof(PyFunctionObject, func_dict), /* tp_dictoffset */