Home | History | Annotate | Download | only in test

Lines Matching refs:POINTER

15         class A(POINTER(c_ulong)):
18 POINTER(c_ulong)(c_ulong(22))
19 # Pointer can't set contents: has no _type_
28 ## func.argtypes = (POINTER(c_int),)
32 func.restype = POINTER(c_int)
33 res = func(pointer(i))
42 func.restype = POINTER(c_int)
43 func.argtypes = (POINTER(c_int),)
45 res = func(pointer(i))
60 # a function type receiving a pointer
61 PROTOTYPE = CFUNCTYPE(c_int, POINTER(c_int))
74 # This function expects a function pointer,
75 # and calls this with an integer pointer as parameter.
76 # The int pointer points to a table containing the numbers 1..10
92 p = pointer(i)
107 p = POINTER(POINTER(c_int))
118 pt = pointer(Table(1, 2, 3))
130 p = pointer(c_int(42))
131 # Although a pointer can be indexed, it ha no length
137 """Test that a character pointer-to-pointer is correctly passed"""
155 p = pointer(x)
156 pp = pointer(p)
157 q = pointer(y)
180 self.assertEqual(bool(POINTER(c_int)()), False)
181 self.assertEqual(bool(pointer(c_int())), True)