Lines Matching refs:index
214 int index = 0;
220 assert(index < num);
223 PyTuple_SET_ITEM(names, index, name);
224 index += 1;
226 assert(index == num);
717 /* Use co_linetable to compute the line number from a bytecode index, addrq. See
750 for (int index = start; index < end; index++) {
751 assert(index < (int)Py_SIZE(co));
754 ((int16_t *)co->_co_linearray)[index] = bounds.ar_line;
758 ((int32_t *)co->_co_linearray)[index] = bounds.ar_line;
1346 _PyCode_GetExtra(PyObject *code, Py_ssize_t index, void **extra)
1356 if (co_extra == NULL || index < 0 || co_extra->ce_size <= index) {
1361 *extra = co_extra->ce_extras[index];
1367 _PyCode_SetExtra(PyObject *code, Py_ssize_t index, void *extra)
1371 if (!PyCode_Check(code) || index < 0 ||
1372 index >= interp->co_extra_user_count) {
1380 if (co_extra == NULL || co_extra->ce_size <= index) {
1396 if (co_extra->ce_extras[index] != NULL) {
1397 freefunc free = interp->co_extra_freefuncs[index];
1399 free(co_extra->ce_extras[index]);
1403 co_extra->ce_extras[index] = extra;