| 794 | } |
| 795 | |
| 796 | static PyObject * |
| 797 | record_iter_next(ApgRecordIterObject *it) |
| 798 | { |
| 799 | ApgRecordObject *seq; |
| 800 | PyObject *item; |
| 801 | |
| 802 | assert(it != NULL); |
| 803 | seq = it->it_seq; |
| 804 | if (seq == NULL) |
| 805 | return NULL; |
| 806 | |
| 807 | if (it->it_index < Py_SIZE(seq)) { |
| 808 | item = ApgRecord_GET_ITEM(seq, it->it_index); |
| 809 | ++it->it_index; |
| 810 | Py_INCREF(item); |
| 811 | return item; |
| 812 | } |
| 813 | |
| 814 | it->it_seq = NULL; |
| 815 | Py_DECREF(seq); |
| 816 | return NULL; |
| 817 | } |
| 818 | |
| 819 | static PyObject * |
| 820 | record_iter_len(ApgRecordIterObject *it) |
nothing calls this directly
no outgoing calls
no test coverage detected