Home
last modified time | relevance | path

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

/third_party/python/Modules/_ctypes/
D_ctypes.c3451 _validate_paramflags(PyTypeObject *type, PyObject *paramflags) in _validate_paramflags() argument
3465 if (paramflags == NULL || dict->argtypes == NULL) in _validate_paramflags()
3468 if (!PyTuple_Check(paramflags)) { in _validate_paramflags()
3474 len = PyTuple_GET_SIZE(paramflags); in _validate_paramflags()
3482 PyObject *item = PyTuple_GET_ITEM(paramflags, i); in _validate_paramflags()
3551 PyObject *paramflags = NULL; in PyCFuncPtr_FromDll() local
3553 if (!PyArg_ParseTuple(args, "O|O", &ftuple, &paramflags)) in PyCFuncPtr_FromDll()
3555 if (paramflags == Py_None) in PyCFuncPtr_FromDll()
3556 paramflags = NULL; in PyCFuncPtr_FromDll()
3634 if (!_validate_paramflags(type, paramflags)) { in PyCFuncPtr_FromDll()
[all …]
Dctypes.h101 PyObject *paramflags; member
/third_party/python/Doc/library/
Dctypes.rst1697 .. function:: prototype(func_spec[, paramflags])
1707 .. function:: prototype(vtbl_index, name[, paramflags[, iid]])
1720 The optional *paramflags* parameter creates foreign function wrappers with much
1723 *paramflags* must be a tuple of the same length as :attr:`argtypes`.
1761 …>>> paramflags = (1, "hwnd", 0), (1, "text", "Hi"), (1, "caption", "Hello from ctypes"), (1, "flag…
1762 >>> MessageBox = prototype(("MessageBoxW", windll.user32), paramflags)
1784 >>> paramflags = (1, "hwnd"), (2, "lprect")
1785 >>> GetWindowRect = prototype(("GetWindowRect", windll.user32), paramflags)