Home | History | Annotate | Download | only in Modules

Lines Matching refs:KEY

29     /* key (key_size bytes) and then data (data_size bytes) follows */
41 /* Get a key value from pkey: use memcpy() rather than a pointer dereference
49 #define _Py_HASHTABLE_ENTRY_READ_KEY(TABLE, ENTRY, KEY) \
51 assert(sizeof(KEY) == (TABLE)->key_size); \
52 memcpy(&(KEY), _Py_HASHTABLE_ENTRY_PKEY(ENTRY), sizeof(KEY)); \
150 /* Add a new entry to the hash. The key must not be present in the hash table.
162 #define _Py_HASHTABLE_SET(TABLE, KEY, DATA) \
163 _Py_hashtable_set(TABLE, sizeof(KEY), &(KEY), sizeof(DATA), &(DATA))
165 #define _Py_HASHTABLE_SET_NODATA(TABLE, KEY) \
166 _Py_hashtable_set(TABLE, sizeof(KEY), &(KEY), 0, NULL)
170 Return NULL if the key does not exist.
179 #define _Py_HASHTABLE_GET_ENTRY(TABLE, KEY) \
180 _Py_hashtable_get_entry(TABLE, sizeof(KEY), &(KEY))
194 #define _Py_HASHTABLE_GET(TABLE, KEY, DATA) \
195 _Py_hashtable_get(TABLE, sizeof(KEY), &(KEY), sizeof(DATA), &(DATA))
206 #define _Py_HASHTABLE_POP(TABLE, KEY, DATA) \
207 _Py_hashtable_pop(TABLE, sizeof(KEY), &(KEY), sizeof(DATA), &(DATA))