Home
last modified time | relevance | path

Searched refs:argtypes (Results 1 – 25 of 61) sorted by relevance

123

/third_party/python/Lib/ctypes/test/
Dtest_cfuncs.py20 self._dll.tf_b.argtypes = (c_byte,)
26 self._dll.tf_bb.argtypes = (c_byte, c_byte)
32 self._dll.tf_B.argtypes = (c_ubyte,)
38 self._dll.tf_bB.argtypes = (c_byte, c_ubyte)
44 self._dll.tf_h.argtypes = (c_short,)
50 self._dll.tf_bh.argtypes = (c_byte, c_short)
56 self._dll.tf_H.argtypes = (c_ushort,)
62 self._dll.tf_bH.argtypes = (c_byte, c_ushort)
68 self._dll.tf_i.argtypes = (c_int,)
74 self._dll.tf_bi.argtypes = (c_byte, c_int)
[all …]
Dtest_prototypes.py50 func.argtypes = None
80 func.argtypes = POINTER(c_int),
84 func.argtypes = c_char_p,
87 func.argtypes = POINTER(c_short),
90 func.argtypes = POINTER(c_double),
96 func.argtypes = POINTER(c_char),
111 func.argtypes = c_char_p,
126 func.argtypes = c_void_p,
146 func.argtypes = c_void_p,
158 func.argtypes = c_void_p,
[all …]
Dtest_functions.py60 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double]
68 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
76 f.argtypes = [c_int, c_int, POINTER(c_int)]
83 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
109 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
121 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
133 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_longdouble]
147 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
153 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double, c_longlong]
159 f.argtypes = None
[all …]
Dtest_as_parameter.py24 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double]
32 f.argtypes = [POINTER(c_int)]
75 f.argtypes = None
89 f.argtypes = [c_int, MyCallback]
114 f.argtypes = [c_int, MyCallback]
132 f.argtypes = [c_longlong, MyCallback]
155 dll._testfunc_byval.argtypes = (POINT, POINTER(POINT))
167 dll.ret_2h_func.argtypes = [S2H]
187 dll.ret_8i_func.argtypes = [S8I]
Dtest_errno.py18 libc_open.argtypes = c_char_p, c_int
34 libc_open.argtypes = c_char_p, c_int
49 GetModuleHandle.argtypes = [c_wchar_p]
62 GetModuleHandle.argtypes = [c_wchar_p]
Dtest_python_api.py24 PyBytes_FromStringAndSize.argtypes = c_char_p, c_py_ssize_t
31 pythonapi.PyBytes_FromString.argtypes = (c_char_p,)
49 pythonapi.PyLong_AsLong.argtypes = (py_object,)
71 PyOS_snprintf.argtypes = POINTER(c_char), c_size_t, c_char_p
Dtest_structures.py421 func.argtypes = (Test,)
451 func.argtypes = (Test,)
478 func.argtypes = (X,)
519 func.argtypes = (Test2,)
532 func.argtypes = (Test3,)
548 func.argtypes = (Test3B,)
615 func.argtypes = (Test4,)
623 func.argtypes = (Test5,)
632 func.argtypes = (POINTER(Test4),)
642 func.argtypes = (POINTER(Test4),)
[all …]
Dtest_unicode.py12 wcslen.argtypes = [ctypes.c_wchar_p]
41 func.argtypes = [ctypes.c_char_p]
45 func.argtypes = None
Dtest_libc.py14 lib.my_sqrt.argtypes = c_double,
22 lib.my_qsort.argtypes = c_void_p, c_size_t, c_size_t, comparefunc
Dtest_stringptr.py52 strchr.argtypes = c_char_p, c_char
58 strchr.argtypes = POINTER(c_char), c_char
Dtest_callbacks.py170 integrate.argtypes = (c_double, c_double, CALLBACK, c_long)
218 func.argtypes = (c_int, c_int, c_int, c_int, c_int, CALLBACK)
235 func.argtypes = (c_double, c_double, c_double,
276 func.argtypes = (X, CALLBACK)
Dtest_funcptr.py22 self.assertEqual(x.argtypes, (c_int, c_int))
99 strchr.argtypes = (c_char_p, c_char)
Dtest_win32.py114 PointInRect.argtypes = [POINTER(RECT), POINT]
118 ReturnRect.argtypes = [c_int, RECT, POINTER(RECT), POINT, RECT,
/third_party/libffi/testsuite/libffi.bhaible/
Dtest-call.c79 #define FFI_PREP_CIF(cif,argtypes,rettype) \ argument
80 …if (ffi_prep_cif(&(cif),ABI_NUM,sizeof(argtypes)/sizeof(argtypes[0]),&rettype,argtypes) != FFI_OK)…
150 ffi_type* argtypes[] = { &ffi_type_sint }; in int_tests() local
152 FFI_PREP_CIF(cif,argtypes,ffi_type_sint); in int_tests()
169 ffi_type* argtypes[] = { &ffi_type_sint, &ffi_type_sint }; in int_tests() local
171 FFI_PREP_CIF(cif,argtypes,ffi_type_sint); in int_tests()
188 ffi_type* argtypes[] = { &ffi_type_sint, &ffi_type_sint, &ffi_type_sint, &ffi_type_sint }; in int_tests() local
190 FFI_PREP_CIF(cif,argtypes,ffi_type_sint); in int_tests()
207 …ffi_type* argtypes[] = { &ffi_type_sint, &ffi_type_sint, &ffi_type_sint, &ffi_type_sint, &ffi_type… in int_tests() local
209 FFI_PREP_CIF(cif,argtypes,ffi_type_sint); in int_tests()
[all …]
Dtest-callback.c79 #define FFI_PREP_CIF(cif,argtypes,rettype) \ argument
80 …if (ffi_prep_cif(&(cif),ABI_NUM,sizeof(argtypes)/sizeof(argtypes[0]),&rettype,argtypes) != FFI_OK)…
1311 ffi_type* argtypes[] = { &ffi_type_sint }; in main() local
1313 FFI_PREP_CIF(cif,argtypes,ffi_type_sint); in main()
1329 ffi_type* argtypes[] = { &ffi_type_sint, &ffi_type_sint }; in main() local
1331 FFI_PREP_CIF(cif,argtypes,ffi_type_sint); in main()
1347 ffi_type* argtypes[] = { &ffi_type_sint, &ffi_type_sint, &ffi_type_sint, &ffi_type_sint }; in main() local
1349 FFI_PREP_CIF(cif,argtypes,ffi_type_sint); in main()
1365 …ffi_type* argtypes[] = { &ffi_type_sint, &ffi_type_sint, &ffi_type_sint, &ffi_type_sint, &ffi_type… in main() local
1367 FFI_PREP_CIF(cif,argtypes,ffi_type_sint); in main()
[all …]
/third_party/pulseaudio/src/tests/
Dvolume-ui.py20 _to_name.argtypes = [c_void_p]
24 _to_pretty_name.argtypes = [c_void_p]
28 _snprint.argtypes = [c_char_p, c_ulong, c_void_p]
32 _position_to_string.argtypes = [c_uint]
36 _position_to_pretty_string.argtypes = [c_uint]
40 _can_balance.argtypes = [c_void_p]
44 _can_fade.argtypes = [c_void_p]
48 _parse.argtypes = [c_void_p, c_char_p]
88 _snprint.argtypes = [c_char_p, c_ulong, c_void_p]
92 _max.argtypes = [c_void_p]
[all …]
/third_party/python/Lib/test/
Dtest_type_comments.py386 self.assertEqual(tree.argtypes, [])
390 self.assertEqual(len(tree.argtypes), 1)
391 arg = tree.argtypes[0]
397 self.assertEqual(tree.argtypes[0].id, "int")
398 self.assertEqual(tree.argtypes[1].id, "str")
399 self.assertEqual(tree.argtypes[2].id, "Any")
403 self.assertEqual(tree.argtypes[0].id, "int")
405 self.assertEqual(tree.argtypes[0].id, "int")
407 self.assertEqual(tree.argtypes[0].id, "int")
408 self.assertEqual(tree.argtypes[1].id, "str")
Dtest_code.py356 RequestCodeExtraIndex.argtypes = (freefunc,)
360 SetExtra.argtypes = (ctypes.py_object, ctypes.c_ssize_t, ctypes.c_voidp)
364 GetExtra.argtypes = (ctypes.py_object, ctypes.c_ssize_t,
/third_party/python/Lib/ctypes/
D__init__.py76 def CFUNCTYPE(restype, *argtypes, **kw): argument
100 return _c_functype_cache[(restype, argtypes, flags)]
103 _argtypes_ = argtypes
106 _c_functype_cache[(restype, argtypes, flags)] = CFunctionType
114 def WINFUNCTYPE(restype, *argtypes, **kw): argument
124 return _win_functype_cache[(restype, argtypes, flags)]
127 _argtypes_ = argtypes
130 _win_functype_cache[(restype, argtypes, flags)] = WinFunctionType
501 def PYFUNCTYPE(restype, *argtypes): argument
503 _argtypes_ = argtypes
/third_party/libffi/testsuite/libffi.closures/
Dcls_many_mixed_float_double.c38 ffi_type *argtypes[12] = {&ffi_type_double, &ffi_type_float, &ffi_type_double, in main() local
47 CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 12, &ffi_type_double, argtypes) == FFI_OK); in main()
/third_party/node/deps/npm/node_modules/dashdash/lib/
Ddashdash.js766 assert.optionalArrayOfString(args.argtypes, 'args.argtypes');
771 argtypes: args.argtypes, property
818 assert.optionalArrayOfString(args.argtypes, 'args.argtypes');
873 if (args.argtypes) {
875 context, args.argtypes.join(' ')));
904 assert.optionalArrayOfString(args.argtypes, 'args.argtypes');
912 argtypes: args.argtypes property
/third_party/python/Modules/_ctypes/
D_ctypes.c2497 stgdict->argtypes = ob; in make_funcptrtype_dict()
3327 Py_CLEAR(self->argtypes); in PyCFuncPtr_set_argtypes()
3334 Py_XSETREF(self->argtypes, ob); in PyCFuncPtr_set_argtypes()
3343 if (self->argtypes) { in PyCFuncPtr_get_argtypes()
3344 Py_INCREF(self->argtypes); in PyCFuncPtr_get_argtypes()
3345 return self->argtypes; in PyCFuncPtr_get_argtypes()
3349 if (dict->argtypes) { in PyCFuncPtr_get_argtypes()
3350 Py_INCREF(dict->argtypes); in PyCFuncPtr_get_argtypes()
3351 return dict->argtypes; in PyCFuncPtr_get_argtypes()
3455 PyObject *argtypes; in _validate_paramflags() local
[all …]
Dctypes.h93 PyObject *argtypes; member
205 PyObject *argtypes; /* tuple of CDataObjects */ member
277 PyObject *argtypes,
/third_party/libxml2/
Dgentest.py516 argtypes = {} variable
523 if not argtypes.has_key(type):
524 argtypes[type] = func
548 if (name == None) or ((name not in argtypes) and (name not in rettypes)):
552 if argtypes.has_key(name) and is_known_param_type(name) == 0:
/third_party/ltp/tools/sparse/sparse-src/
Devaluate.h33 int evaluate_arguments(struct symbol_list *argtypes, struct expression_list *args);

123