Searched refs:setfunc (Results 1 – 6 of 6) sorted by relevance
/third_party/python/Modules/_ctypes/ |
D | callbacks.c | 136 SETFUNC setfunc, in _CallPythonObject() argument 258 assert(setfunc); in _CallPythonObject() 277 PyObject *keep = setfunc(mem, result, 0); in _CallPythonObject() 289 else if (setfunc != _ctypes_get_fielddesc("O")->setfunc) { in _CallPythonObject() 317 p->setfunc, in closure_fcn() 341 p->setfunc = NULL; in CThunkObject_new() 386 p->setfunc = NULL; in _ctypes_alloc_callback() 390 if (dict == NULL || dict->setfunc == NULL) { in _ctypes_alloc_callback() 395 p->setfunc = dict->setfunc; in _ctypes_alloc_callback()
|
D | ctypes.h | 66 SETFUNC setfunc; member 164 SETFUNC setfunc; member 179 SETFUNC setfunc; /* setter function if proto is NULL */ member 200 SETFUNC setfunc; /* Only for simple objects */ member 325 PyCData_set(PyObject *dst, PyObject *type, SETFUNC setfunc, PyObject *value,
|
D | _ctypes.c | 1704 parg->obj = fd->setfunc(&parg->value, value, 0); in c_wchar_p_from_param() 1724 if (dict && (dict->setfunc == _ctypes_get_fielddesc("u")->setfunc)) { in c_wchar_p_from_param() 1733 if (dict && (dict->setfunc == _ctypes_get_fielddesc("u")->setfunc)) { in c_wchar_p_from_param() 1771 parg->obj = fd->setfunc(&parg->value, value, 0); in c_char_p_from_param() 1791 if (dict && (dict->setfunc == _ctypes_get_fielddesc("c")->setfunc)) { in c_char_p_from_param() 1800 if (dict && (dict->setfunc == _ctypes_get_fielddesc("c")->setfunc)) { in c_char_p_from_param() 1843 parg->obj = fd->setfunc(&parg->value, value, 0); in c_void_p_from_param() 1861 parg->obj = fd->setfunc(&parg->value, value, 0); in c_void_p_from_param() 1878 parg->obj = fd->setfunc(&parg->value, value, 0); in c_void_p_from_param() 2020 stgdict->setfunc = fmt->setfunc_swapped; in CreateSwappedType() [all …]
|
D | cfield.c | 55 SETFUNC setfunc = NULL; in PyCField_FromDesc() local 126 setfunc = fd->setfunc; in PyCField_FromDesc() 131 setfunc = fd->setfunc; in PyCField_FromDesc() 136 self->setfunc = setfunc; in PyCField_FromDesc() 218 return PyCData_set(inst, self->proto, self->setfunc, value, in PyCField_set()
|
D | stgdict.c | 264 new_descr->setfunc = fdescr->setfunc; in MakeFields()
|
/third_party/python/Lib/test/ |
D | inspect_fodder2.py | 53 def setfunc(func): function 55 setfunc(lambda x, y: x*y)
|