Home
last modified time | relevance | path

Searched refs:c_long (Results 1 – 25 of 28) sorted by relevance

12

/external/python/cpython2/Lib/ctypes/test/
Dtest_pep3118.py79 _fields_ = [("x", c_long), ("y", c_long)]
83 _fields_ = [("x", c_long), ("y", c_long)]
87 Point2._fields_ = [("x", c_long), ("y", c_long)]
96 _fields_ = [("x", c_long * 3 * 2), ("y", Point * 4)]
105 Complete._fields_ = [("a", c_long)]
127 (c_long, "<l", None, c_long),
144 (POINTER(POINTER(c_long)), "&&<l", None, POINTER(POINTER(c_long))),
185 _fields_ = [("x", c_long), ("y", c_long)]
188 _fields_ = [("x", c_long), ("y", c_long)]
Dtest_win32.py82 _fields_ = [("x", c_long),
83 ("y", c_long)]
86 _fields_ = [("left", c_long),
87 ("top", c_long),
88 ("right", c_long),
89 ("bottom", c_long)]
94 left = c_long.in_dll(dll, 'left')
95 top = c_long.in_dll(dll, 'top')
96 right = c_long.in_dll(dll, 'right')
97 bottom = c_long.in_dll(dll, 'bottom')
Dtest_parameters.py87 from ctypes import c_short, c_uint, c_int, c_long, POINTER, pointer
98 if c_int != c_long:
99 self.assertRaises(TypeError, LPINT.from_param, pointer(c_long(42)))
106 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref
112 if c_int != c_long:
113 self.assertRaises(TypeError, LPINT.from_param, byref(c_long(22)))
118 from ctypes import c_short, c_uint, c_int, c_long, pointer, POINTER, byref
124 if c_int != c_long:
125 self.assertRaises(TypeError, LPLPINT.from_param, byref(pointer(c_long(22))))
129 from ctypes import c_short, c_uint, c_int, c_long, POINTER
[all …]
Dtest_functions.py70 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double]
78 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
93 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
119 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
131 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
143 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_longdouble]
157 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
163 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double, c_longlong]
Dtest_cfuncs.py91 self._dll.tf_l.restype = c_long
92 self._dll.tf_l.argtypes = (c_long,)
97 self._dll.tf_bl.restype = c_long
98 self._dll.tf_bl.argtypes = (c_byte, c_long)
Dtest_funcptr.py46 WNDPROC = WINFUNCTYPE(c_long, c_int, c_int, c_int, c_int)
70 WNDPROC_2 = WINFUNCTYPE(c_long, c_int, c_int, c_int, c_int)
Dtest_callbacks.py59 self.check_type(c_long, 42)
60 self.check_type(c_long, -42)
174 integrate.argtypes = (c_double, c_double, CALLBACK, c_long)
Dtest_repr.py5 for base in [c_byte, c_short, c_int, c_long, c_longlong,
Dtest_unaligned_structures.py13 for typ in [c_short, c_int, c_long, c_longlong,
Dtest_prototypes.py49 func.restype = c_long
72 func.restype = c_long
Dtest_pointers.py7 c_long, c_ulong, c_longlong, c_ulonglong, c_double, c_float]
25 func.restype = c_long
Dtest_slicing.py160 elif sizeof(c_wchar) == sizeof(c_long):
161 dll.my_wcsdup.restype = POINTER(c_long)
Dtest_numbers.py25 signed_types = [c_byte, c_short, c_int, c_long, c_longlong]
219 self.assertRaises(TypeError, c_int, c_long(42))
Dtest_python_api.py52 pythonapi.PyInt_AsLong.restype = c_long
Dtest_bitfields.py50 signed_int_types = (c_byte, c_short, c_int, c_long, c_longlong)
124 if c_int != c_long:
Dtest_arrays.py9 c_long, c_ulonglong, c_float, c_double, c_longdouble
Dtest_as_parameter.py24 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double]
/external/python/cpython2/Lib/ctypes/
Dwintypes.py16 BOOL = c_long
25 LONG = c_long
41 if sizeof(c_long) == sizeof(c_void_p):
43 LPARAM = c_long
97 _fields_ = [("left", c_long),
98 ("top", c_long),
99 ("right", c_long),
100 ("bottom", c_long)]
115 _fields_ = [("x", c_long),
116 ("y", c_long)]
[all …]
D__init__.py173 class c_long(_SimpleCData): class
175 _check_size(c_long)
183 c_int = c_long
209 c_longlong = c_long
475 c_ssize_t = c_long
542 for kind in [c_short, c_int, c_long, c_longlong]:
/external/python/cpython2/Lib/lib2to3/tests/data/
Dinfinite_recursion.py30 __darwin_intptr_t = c_long
51 __darwin_ssize_t = c_long
52 __darwin_time_t = c_long
112 ('slen', c_long),
140 ('flags', c_long),
149 ('len', c_long),
159 ('minsize', c_long),
160 ('maxsize', c_long),
272 bio_info_cb = CFUNCTYPE(None, POINTER(bio_st), c_int, STRING, c_int, c_long, c_long)
282 ('ctrl', CFUNCTYPE(c_long, POINTER(BIO), c_int, c_long, c_void_p)),
[all …]
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/
Dtrace_time.py101 _fields_ = (('tv_sec', ctypes.c_long),
102 ('tv_nsec', ctypes.c_long))
/external/sonivox/jet_tools/JetCreator/
Deas.py355 state = c_long(-1)
539 ('maxVoices', c_long),
540 ('numChannels', c_long),
541 ('sampleRate', c_long),
542 ('mixBufferSize', c_long),
781 samplesRendered = c_long(0)
1013 ('location', c_long),
/external/python/cpython2/Lib/test/
Dtest_threading.py183 result = set_async_exc(ctypes.c_long(tid), exception)
229 result = set_async_exc(ctypes.c_long(-1), exception)
242 result = set_async_exc(ctypes.c_long(t.id), exception)
/external/python/cpython2/Doc/library/
Dctypes.rst26 an alias for the :class:`c_long` type on 32-bit systems. So, you should not be
27 confused if :class:`c_long` is printed if you would expect :class:`c_int` ---
241 | :class:`c_long` | :c:type:`long` | int/long |
270 c_long(0)
281 c_long(42)
597 <Field type=c_long, ofs=0, size=4>
599 <Field type=c_long, ofs=4, size=4>
642 <Field type=c_long, ofs=0:0, bits=16>
644 <Field type=c_long, ofs=0:16, bits=16>
715 c_long(42)
[all …]
/external/python/cpython2/Lib/multiprocessing/
Dsharedctypes.py53 'l': ctypes.c_long, 'L': ctypes.c_ulong,

12