@@ -926,15 +926,15 @@ char *Tuple_iterGetName(JSOBJ Py_UNUSED(obj), JSONTypeContext *Py_UNUSED(tc),
926
926
}
927
927
928
928
//=============================================================================
929
- // Iterator iteration functions
929
+ // Set iteration functions
930
930
// itemValue is borrowed reference, no ref counting
931
931
//=============================================================================
932
- void Iter_iterBegin (JSOBJ obj , JSONTypeContext * tc ) {
932
+ void Set_iterBegin (JSOBJ obj , JSONTypeContext * tc ) {
933
933
GET_TC (tc )-> itemValue = NULL ;
934
934
GET_TC (tc )-> iterator = PyObject_GetIter (obj );
935
935
}
936
936
937
- int Iter_iterNext (JSOBJ Py_UNUSED (obj ), JSONTypeContext * tc ) {
937
+ int Set_iterNext (JSOBJ Py_UNUSED (obj ), JSONTypeContext * tc ) {
938
938
PyObject * item ;
939
939
940
940
if (GET_TC (tc )-> itemValue ) {
@@ -952,7 +952,7 @@ int Iter_iterNext(JSOBJ Py_UNUSED(obj), JSONTypeContext *tc) {
952
952
return 1 ;
953
953
}
954
954
955
- void Iter_iterEnd (JSOBJ Py_UNUSED (obj ), JSONTypeContext * tc ) {
955
+ void Set_iterEnd (JSOBJ Py_UNUSED (obj ), JSONTypeContext * tc ) {
956
956
if (GET_TC (tc )-> itemValue ) {
957
957
Py_DECREF (GET_TC (tc )-> itemValue );
958
958
GET_TC (tc )-> itemValue = NULL ;
@@ -964,11 +964,11 @@ void Iter_iterEnd(JSOBJ Py_UNUSED(obj), JSONTypeContext *tc) {
964
964
}
965
965
}
966
966
967
- JSOBJ Iter_iterGetValue (JSOBJ Py_UNUSED (obj ), JSONTypeContext * tc ) {
967
+ JSOBJ Set_iterGetValue (JSOBJ Py_UNUSED (obj ), JSONTypeContext * tc ) {
968
968
return GET_TC (tc )-> itemValue ;
969
969
}
970
970
971
- char * Iter_iterGetName (JSOBJ Py_UNUSED (obj ), JSONTypeContext * Py_UNUSED (tc ),
971
+ char * Set_iterGetName (JSOBJ Py_UNUSED (obj ), JSONTypeContext * Py_UNUSED (tc ),
972
972
size_t * Py_UNUSED (outLen )) {
973
973
return NULL ;
974
974
}
@@ -2041,11 +2041,11 @@ void Object_beginTypeContext(JSOBJ _obj, JSONTypeContext *tc) {
2041
2041
} else if (PyAnySet_Check (obj )) {
2042
2042
PRINTMARK ();
2043
2043
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 ;
2049
2049
return ;
2050
2050
}
2051
2051
0 commit comments