Lines Matching refs:TO_PTR
154 #define TO_PTR(ch) ((void*)(uintptr_t)ch)
192 assert(_Py_hashtable_get(table, TO_PTR('x')) == NULL);
198 if (_Py_hashtable_set(table, TO_PTR(key), TO_PTR(value)) < 0) {
208 _Py_hashtable_entry_t *entry = _Py_hashtable_get_entry(table, TO_PTR(key));
210 assert(entry->key == TO_PTR(key));
211 assert(entry->value == TO_PTR(VALUE(key)));
216 void *value_ptr = _Py_hashtable_get(table, TO_PTR(key));
222 void *value_ptr = _Py_hashtable_steal(table, TO_PTR(key));
225 assert(_Py_hashtable_get_entry(table, TO_PTR(key)) == NULL);
237 assert(_Py_hashtable_get(table, TO_PTR('x')) == NULL);