8000 Fix naming of unsplit -> combined · python/cpython@398cb23 · GitHub
[go: up one dir, main page]

Skip to content

Commit 398cb23

Browse files
committed
Fix naming of unsplit -> combined
1 parent dabbed9 commit 398cb23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Objects/dictobject.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ insert_into_dictkeys(PyDictKeysObject *keys, PyObject *name)
12641264

12651265

12661266
static inline int
1267-
insert_unsplit_dict(PyInterpreterState *interp, PyDictObject *mp,
1267+
insert_combined_dict(PyInterpreterState *interp, PyDictObject *mp,
12681268
Py_hash_t hash, PyObject *key, PyObject *value, int unicode)
12691269
{
12701270
if (mp->ma_keys->dk_usable <= 0) {
@@ -1311,7 +1311,7 @@ insert_split_dict(PyInterpreterState *interp, PyDictObject *mp,
13111311
assert(!_PyDict_HasSplitTable(mp));
13121312
assert(DK_IS_UNICODE(keys));
13131313
UNLOCK_KEYS(keys);
1314-
return insert_unsplit_dict(interp, mp, hash, key, value, 1);
1314+
return insert_combined_dict(interp, mp, hash, key, value, 1);
13151315
}
13161316

13171317
Py_ssize_t hashpos = find_empty_slot(keys, hash);
@@ -1390,7 +1390,7 @@ insertdict(PyInterpreterState *interp, PyDictObject *mp,
13901390

13911391
int unicode = DK_IS_UNICODE(mp->ma_keys);
13921392
if (!unicode || !_PyDict_HasSplitTable(mp)) {
1393-
if (insert_unsplit_dict(interp, mp, hash, key, value, unicode) < 0) {
1393+
if (insert_combined_dict(interp, mp, hash, key, value, unicode) < 0) {
13941394
goto Fail;
13951395
}
13961396
} else {
@@ -3536,7 +3536,7 @@ PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *defaultobj)
35363536

35373537
int unicode = DK_IS_UNICODE(mp->ma_keys);
35383538
if (!unicode || !_PyDict_HasSplitTable(mp)) {
3539-
if (insert_unsplit_dict(interp, mp, hash, Py_NewRef(key), Py_NewRef(value), unicode) < 0) {
3539+
if (insert_combined_dict(interp, mp, hash, Py_NewRef(key), Py_NewRef(value), unicode) < 0) {
35403540
Py_DECREF(key);
35413541
4089 Py_DECREF(value);
35423542
return NULL;

0 commit comments

Comments
 (0)
0