Skip to content

Commit 6d9ba2a

Browse files
authored
Cleaned up names (#31508)
1 parent aab9225 commit 6d9ba2a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

pandas/_libs/src/ujson/python/objToJSON.c

+11-11
Original file line numberDiff line numberDiff line change
@@ -926,15 +926,15 @@ char *Tuple_iterGetName(JSOBJ Py_UNUSED(obj), JSONTypeContext *Py_UNUSED(tc),
926926
}
927927

928928
//=============================================================================
929-
// Iterator iteration functions
929+
// Set iteration functions
930930
// itemValue is borrowed reference, no ref counting
931931
//=============================================================================
932-
void Iter_iterBegin(JSOBJ obj, JSONTypeContext *tc) {
932+
void Set_iterBegin(JSOBJ obj, JSONTypeContext *tc) {
933933
GET_TC(tc)->itemValue = NULL;
934934
GET_TC(tc)->iterator = PyObject_GetIter(obj);
935935
}
936936

937-
int Iter_iterNext(JSOBJ Py_UNUSED(obj), JSONTypeContext *tc) {
937+
int Set_iterNext(JSOBJ Py_UNUSED(obj), JSONTypeContext *tc) {
938938
PyObject *item;
939939

940940
if (GET_TC(tc)->itemValue) {
@@ -952,7 +952,7 @@ int Iter_iterNext(JSOBJ Py_UNUSED(obj), JSONTypeContext *tc) {
952952
return 1;
953953
}
954954

955-
void Iter_iterEnd(JSOBJ Py_UNUSED(obj), JSONTypeContext *tc) {
955+
void Set_iterEnd(JSOBJ Py_UNUSED(obj), JSONTypeContext *tc) {
956956
if (GET_TC(tc)->itemValue) {
957957
Py_DECREF(GET_TC(tc)->itemValue);
958958
GET_TC(tc)->itemValue = NULL;
@@ -964,11 +964,11 @@ void Iter_iterEnd(JSOBJ Py_UNUSED(obj), JSONTypeContext *tc) {
964964
}
965965
}
966966

967-
JSOBJ Iter_iterGetValue(JSOBJ Py_UNUSED(obj), JSONTypeContext *tc) {
967+
JSOBJ Set_iterGetValue(JSOBJ Py_UNUSED(obj), JSONTypeContext *tc) {
968968
return GET_TC(tc)->itemValue;
969969
}
970970

971-
char *Iter_iterGetName(JSOBJ Py_UNUSED(obj), JSONTypeContext *Py_UNUSED(tc),
971+
char *Set_iterGetName(JSOBJ Py_UNUSED(obj), JSONTypeContext *Py_UNUSED(tc),
972972
size_t *Py_UNUSED(outLen)) {
973973
return NULL;
974974
}
@@ -2041,11 +2041,11 @@ void Object_beginTypeContext(JSOBJ _obj, JSONTypeContext *tc) {
20412041
} else if (PyAnySet_Check(obj)) {
20422042
PRINTMARK();
20432043
tc->type = JT_ARRAY;
2044-
pc->iterBegin = Iter_iterBegin;
2045-
pc->iterEnd = Iter_iterEnd;
2046-
pc->iterNext = Iter_iterNext;
2047-
pc->iterGetValue = Iter_iterGetValue;
2048-
pc->iterGetName = Iter_iterGetName;
2044+
pc->iterBegin = Set_iterBegin;
2045+
pc->iterEnd = Set_iterEnd;
2046+
pc->iterNext = Set_iterNext;
2047+
pc->iterGetValue = Set_iterGetValue;
2048+
pc->iterGetName = Set_iterGetName;
20492049
return;
20502050
}
20512051

0 commit comments

Comments
 (0)