@@ -1257,7 +1257,7 @@ insert_into_dictkeys(PyDictKeysObject *keys, PyObject *name)
1257
1257
1258
1258
1259
1259
static inline int
1260
- insert_unsplit_dict (PyInterpreterState * interp , PyDictObject * mp ,
1260
+ insert_combined_dict (PyInterpreterState * interp , PyDictObject * mp ,
1261
1261
Py_hash_t hash , PyObject * key , PyObject * value , int unicode )
1262
1262
{
1263
1263
if (mp -> ma_keys -> dk_usable <= 0 ) {
@@ -1304,7 +1304,7 @@ insert_split_dict(PyInterpreterState *interp, PyDictObject *mp,
1304
1304
assert (!_PyDict_HasSplitTable (mp ));
1305
1305
assert (DK_IS_UNICODE (keys ));
1306
1306
UNLOCK_KEYS (keys );
1307
- return insert_unsplit_dict (interp , mp , hash , key , value , 1 );
1307
+ return insert_combined_dict (interp , mp , hash , key , value , 1 );
1308
1308
}
1309
1309
1310
1310
Py_ssize_t hashpos = find_empty_slot (keys , hash );
@@ -1383,7 +1383,7 @@ insertdict(PyInterpreterState *interp, PyDictObject *mp,
1383
1383
1384
1384
int unicode = DK_IS_UNICODE (mp -> ma_keys );
1385
1385
if (!unicode || !_PyDict_HasSplitTable (mp )) {
1386
- if (insert_unsplit_dict (interp , mp , hash , key , value , unicode ) < 0 ) {
1386
+ if (insert_combined_dict (interp , mp , hash , key , value , unicode ) < 0 ) {
1387
1387
goto Fail ;
1388
1388
}
1389
1389
} else {
@@ -3526,7 +3526,7 @@ PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *defaultobj)
3526
3526
3527
3527
int unicode = DK_IS_UNICODE (mp -> ma_keys );
3528
3528
if (!unicode || !_PyDict_HasSplitTable (mp )) {
3529
- if (insert_unsplit_dict (interp , mp , hash , Py_NewRef (key ), Py_NewRef (value ), unicode ) < 0 ) {
3529
+ if (insert_combined_dict (interp , mp , hash , Py_NewRef (key ), Py_NewRef (value ), unicode ) < 0 ) {
3530
3530
Py_DECREF (key );
3531
3531
Py_DECREF (value );
3532
3532
return NULL ;
0 commit comments