Searched refs:paramflags (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython3/Modules/_ctypes/ |
D | _ctypes.c | 3245 _validate_paramflags(PyTypeObject *type, PyObject *paramflags) in _validate_paramflags() argument 3259 if (paramflags == NULL || dict->argtypes == NULL) in _validate_paramflags() 3262 if (!PyTuple_Check(paramflags)) { in _validate_paramflags() 3268 len = PyTuple_GET_SIZE(paramflags); in _validate_paramflags() 3276 PyObject *item = PyTuple_GET_ITEM(paramflags, i); in _validate_paramflags() 3343 PyObject *paramflags = NULL; in PyCFuncPtr_FromDll() local 3345 if (!PyArg_ParseTuple(args, "O|O", &ftuple, ¶mflags)) in PyCFuncPtr_FromDll() 3347 if (paramflags == Py_None) in PyCFuncPtr_FromDll() 3348 paramflags = NULL; in PyCFuncPtr_FromDll() 3412 if (!_validate_paramflags(type, paramflags)) { in PyCFuncPtr_FromDll() [all …]
|
D | ctypes.h | 101 PyObject *paramflags; member
|
/external/python/cpython2/Modules/_ctypes/ |
D | _ctypes.c | 3356 _validate_paramflags(PyTypeObject *type, PyObject *paramflags) in _validate_paramflags() argument 3370 if (paramflags == NULL || dict->argtypes == NULL) in _validate_paramflags() 3373 if (!PyTuple_Check(paramflags)) { in _validate_paramflags() 3379 len = PyTuple_GET_SIZE(paramflags); in _validate_paramflags() 3387 PyObject *item = PyTuple_GET_ITEM(paramflags, i); in _validate_paramflags() 3450 PyObject *paramflags = NULL; in PyCFuncPtr_FromDll() local 3452 if (!PyArg_ParseTuple(args, "O|O", &ftuple, ¶mflags)) in PyCFuncPtr_FromDll() 3454 if (paramflags == Py_None) in PyCFuncPtr_FromDll() 3455 paramflags = NULL; in PyCFuncPtr_FromDll() 3519 if (!_validate_paramflags(type, paramflags)) in PyCFuncPtr_FromDll() [all …]
|
D | ctypes.h | 141 PyObject *paramflags; member
|
/external/python/cpython3/Doc/library/ |
D | ctypes.rst | 1643 .. function:: prototype(func_spec[, paramflags]) 1653 .. function:: prototype(vtbl_index, name[, paramflags[, iid]]) 1666 The optional *paramflags* parameter creates foreign function wrappers with much 1669 *paramflags* must be a tuple of the same length as :attr:`argtypes`. 1707 …>>> paramflags = (1, "hwnd", 0), (1, "text", "Hi"), (1, "caption", "Hello from ctypes"), (1, "flag… 1708 >>> MessageBox = prototype(("MessageBoxW", windll.user32), paramflags) 1730 >>> paramflags = (1, "hwnd"), (2, "lprect") 1731 >>> GetWindowRect = prototype(("GetWindowRect", windll.user32), paramflags)
|
/external/python/cpython2/Doc/library/ |
D | ctypes.rst | 1675 .. function:: prototype(func_spec[, paramflags]) 1685 .. function:: prototype(vtbl_index, name[, paramflags[, iid]]) 1698 The optional *paramflags* parameter creates foreign function wrappers with much 1701 *paramflags* must be a tuple of the same length as :attr:`argtypes`. 1739 >>> paramflags = (1, "hwnd", 0), (1, "text", "Hi"), (1, "caption", None), (1, "flags", 0) 1740 >>> MessageBox = prototype(("MessageBoxA", windll.user32), paramflags) 1764 >>> paramflags = (1, "hwnd"), (2, "lprect") 1765 >>> GetWindowRect = prototype(("GetWindowRect", windll.user32), paramflags)
|