* Like list.insert(), but for C arrays of PyObject*. Skips error checking. */
| 54 | * Like list.insert(), but for C arrays of PyObject*. Skips error checking. |
| 55 | */ |
| 56 | static void |
| 57 | pyobject_array_insert(PyObject **array, int length, int index, PyObject *item) |
| 58 | { |
| 59 | for (int j = length; j > index; j--) { |
| 60 | array[j] = array[j - 1]; |
| 61 | } |
| 62 | array[index] = item; |
| 63 | } |
| 64 | |
| 65 | |
| 66 | /* |
no outgoing calls
no test coverage detected