Home
last modified time | relevance | path

Searched refs:restype (Results 1 – 25 of 47) sorted by relevance

12

/third_party/python/Lib/ctypes/test/
Dtest_cfuncs.py19 self._dll.tf_b.restype = c_byte
25 self._dll.tf_bb.restype = c_byte
31 self._dll.tf_B.restype = c_ubyte
37 self._dll.tf_bB.restype = c_ubyte
43 self._dll.tf_h.restype = c_short
49 self._dll.tf_bh.restype = c_short
55 self._dll.tf_H.restype = c_ushort
61 self._dll.tf_bH.restype = c_ushort
67 self._dll.tf_i.restype = c_int
73 self._dll.tf_bi.restype = c_int
[all …]
Dtest_functions.py69 f.restype = c_wchar
75 f.restype = None
84 f.restype = c_int
95 f.restype = c_short
110 f.restype = c_float
122 f.restype = c_double
134 f.restype = c_longdouble
146 f.restype = c_longlong
152 f.restype = c_longlong
160 f.restype = c_char_p
[all …]
Dtest_prototypes.py49 func.restype = c_long
73 func.restype = c_longlong
75 func.restype = c_long
95 func.restype = c_char_p
110 func.restype = c_char_p
125 func.restype = c_char_p
145 func.restype = c_wchar_p
153 func.restype = c_void_p
169 func.restype = c_int
175 func.restype = c_wchar_p
[all …]
Dtest_slicing.py66 dll.my_strdup.restype = POINTER(c_char)
67 dll.my_free.restype = None
90 dll.my_strdup.restype = POINTER(c_byte)
103 dll.my_free.restype = None
109 dll.my_strdup.restype = allocated_c_char_p
134 dll.my_wcsdup.restype = POINTER(c_wchar)
136 dll.my_free.restype = None
149 dll.my_wcsdup.restype = POINTER(c_short)
151 dll.my_wcsdup.restype = POINTER(c_int)
153 dll.my_wcsdup.restype = POINTER(c_long)
Dtest_as_parameter.py31 f.restype = POINTER(c_int)
74 f.restype = c_int
110 f.restype = c_int
128 f.restype = c_longlong
156 dll._testfunc_byval.restype = c_int
166 dll.ret_2h_func.restype = S2H
186 dll.ret_8i_func.restype = S8I
Dtest_structures.py422 func.restype = None
452 func.restype = None
479 func.restype = None
518 func.restype = c_int
531 func.restype = c_double
547 func.restype = c_double
614 func.restype = c_long
622 func.restype = c_long
631 func.restype = c_long
641 func.restype = c_long
[all …]
Dtest_python_api.py23 PyBytes_FromStringAndSize.restype = py_object
30 pythonapi.PyBytes_FromString.restype = py_object
44 pythonapi.PyLong_FromLong.restype = py_object
50 pythonapi.PyLong_AsLong.restype = c_long
Dtest_checkretval.py20 dll._testfunc_p_p.restype = CHECKED
23 dll._testfunc_p_p.restype = None
26 del dll._testfunc_p_p.restype
Dtest_pointers.py26 func.restype = c_longlong
28 func.restype = c_long
35 func.restype = POINTER(c_int)
45 func.restype = POINTER(c_int)
148 func.restype = c_char_p
Dtest_funcptr.py21 self.assertEqual(x.restype, c_int)
98 strchr.restype = c_char_p
105 strtok.restype = c_char_p
Dtest_libc.py15 lib.my_sqrt.restype = c_double
23 lib.my_qsort.restype = None
Dtest_random_things.py19 windll.kernel32.LoadLibraryA.restype = c_void_p
21 windll.kernel32.GetProcAddress.restype = c_void_p
Dtest_unicode.py42 func.restype = ctypes.c_char_p
46 func.restype = ctypes.c_int
Dtest_stringptr.py48 strchr.restype = c_char_p
67 strchr.restype = POINTER(c_char)
Dtest_returnfuncptrs.py13 get_strchr.restype = CFUNCTYPE(c_char_p, c_char_p, c_char)
26 get_strchr.restype = c_void_p
Dtest_callbacks.py171 integrate.restype = c_double
219 func.restype = c_int
237 func.restype = c_double
277 func.restype = None
Dtest_win32.py37 f.restype = S
120 ReturnRect.restype = RECT
/third_party/pulseaudio/src/tests/
Dvolume-ui.py19 _to_name.restype = c_char_p
23 _to_pretty_name.restype = c_char_p
27 _snprint.restype = c_char_p
31 _position_to_string.restype = c_char_p
35 _position_to_pretty_string.restype = c_char_p
39 _can_balance.restype = c_int
43 _can_fade.restype = c_int
47 _parse.restype = c_void_p
87 _snprint.restype = c_char_p
91 _max.restype = c_uint32
[all …]
/third_party/python/Modules/_ctypes/
Dcallbacks.c21 Py_XDECREF(self->restype); in CThunkObject_dealloc()
33 Py_VISIT(self->restype); in CThunkObject_traverse()
43 Py_CLEAR(self->restype); in CThunkObject_clear()
135 ffi_type *restype, in _CallPythonObject() argument
257 if (restype != &ffi_type_void && result) { in _CallPythonObject()
263 if (restype->type != FFI_TYPE_FLOAT && restype->size < sizeof(ffi_arg)) { in _CallPythonObject()
264 mem = (char *)mem + sizeof(ffi_arg) - restype->size; in _CallPythonObject()
340 p->restype = NULL; in CThunkObject_new()
352 PyObject *restype, in _ctypes_alloc_callback() argument
383 Py_INCREF(restype); in _ctypes_alloc_callback()
[all …]
Dctypes.h65 PyObject *restype; member
94 PyObject *restype; member
159 PyObject *restype,
207 PyObject *restype; /* CDataObject or NULL */ member
278 PyObject *restype,
Dcallproc.c802 ffi_type *restype, in _call_function_pointer() argument
817 if (restype == NULL) { in _call_function_pointer()
862 restype, in _call_function_pointer()
872 restype, in _call_function_pointer()
886 restype, in _call_function_pointer()
962 static PyObject *GetResult(PyObject *restype, void *result, PyObject *checker) in GetResult() argument
967 if (restype == NULL) in GetResult()
970 if (restype == Py_None) { in GetResult()
974 dict = PyType_stgdict(restype); in GetResult()
976 return PyObject_CallFunction(restype, "i", *(int *)result); in GetResult()
[all …]
/third_party/python/Lib/ctypes/
D__init__.py76 def CFUNCTYPE(restype, *argtypes, **kw): argument
100 return _c_functype_cache[(restype, argtypes, flags)]
104 _restype_ = restype
106 _c_functype_cache[(restype, argtypes, flags)] = CFunctionType
114 def WINFUNCTYPE(restype, *argtypes, **kw): argument
124 return _win_functype_cache[(restype, argtypes, flags)]
128 _restype_ = restype
130 _win_functype_cache[(restype, argtypes, flags)] = WinFunctionType
501 def PYFUNCTYPE(restype, *argtypes): argument
504 _restype_ = restype
/third_party/python/Lib/test/
Dtest_code.py357 RequestCodeExtraIndex.restype = ctypes.c_ssize_t
361 SetExtra.restype = ctypes.c_int
366 GetExtra.restype = ctypes.c_int
Dwin_console_handler.py35 SetConsoleCtrlHandler.restype = wintypes.BOOL
/third_party/python/Tools/unicode/
Dgenwincodec.py16 MultiByteToWideChar.restype = ctypes.c_int

12