Home
last modified time | relevance | path

Searched refs:paramflags (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Modules/_ctypes/
D_ctypes.c3262 _validate_paramflags(PyTypeObject *type, PyObject *paramflags) in _validate_paramflags() argument
3272 if (paramflags == NULL || dict->argtypes == NULL) in _validate_paramflags()
3275 if (!PyTuple_Check(paramflags)) { in _validate_paramflags()
3281 len = PyTuple_GET_SIZE(paramflags); in _validate_paramflags()
3289 PyObject *item = PyTuple_GET_ITEM(paramflags, i); in _validate_paramflags()
3352 PyObject *paramflags = NULL; in PyCFuncPtr_FromDll() local
3354 if (!PyArg_ParseTuple(args, "O|O", &ftuple, &paramflags)) in PyCFuncPtr_FromDll()
3356 if (paramflags == Py_None) in PyCFuncPtr_FromDll()
3357 paramflags = NULL; in PyCFuncPtr_FromDll()
3421 if (!_validate_paramflags(type, paramflags)) in PyCFuncPtr_FromDll()
[all …]
Dctypes.h141 PyObject *paramflags; member
/external/python/cpython2/Doc/library/
Dctypes.rst1675 .. 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)