• Home
  • Raw
  • Download

Lines Matching refs:co_extra

265     co->co_extra = NULL;  in PyCode_NewWithPosOnlyArgs()
642 if (co->co_extra != NULL) { in code_dealloc()
644 _PyCodeObjectExtra *co_extra = co->co_extra; in code_dealloc() local
646 for (Py_ssize_t i = 0; i < co_extra->ce_size; i++) { in code_dealloc()
650 free_extra(co_extra->ce_extras[i]); in code_dealloc()
654 PyMem_Free(co_extra); in code_dealloc()
679 _PyCodeObjectExtra *co_extra = (_PyCodeObjectExtra*) co->co_extra; in code_sizeof() local
684 if (co_extra != NULL) { in code_sizeof()
686 (co_extra->ce_size-1) * sizeof(co_extra->ce_extras[0]); in code_sizeof()
1305 _PyCodeObjectExtra *co_extra = (_PyCodeObjectExtra*) o->co_extra; in _PyCode_GetExtra() local
1307 if (co_extra == NULL || co_extra->ce_size <= index) { in _PyCode_GetExtra()
1312 *extra = co_extra->ce_extras[index]; in _PyCode_GetExtra()
1329 _PyCodeObjectExtra *co_extra = (_PyCodeObjectExtra *) o->co_extra; in _PyCode_SetExtra() local
1331 if (co_extra == NULL || co_extra->ce_size <= index) { in _PyCode_SetExtra()
1332 Py_ssize_t i = (co_extra == NULL ? 0 : co_extra->ce_size); in _PyCode_SetExtra()
1333 co_extra = PyMem_Realloc( in _PyCode_SetExtra()
1334 co_extra, in _PyCode_SetExtra()
1337 if (co_extra == NULL) { in _PyCode_SetExtra()
1341 co_extra->ce_extras[i] = NULL; in _PyCode_SetExtra()
1343 co_extra->ce_size = interp->co_extra_user_count; in _PyCode_SetExtra()
1344 o->co_extra = co_extra; in _PyCode_SetExtra()
1347 if (co_extra->ce_extras[index] != NULL) { in _PyCode_SetExtra()
1350 free(co_extra->ce_extras[index]); in _PyCode_SetExtra()
1354 co_extra->ce_extras[index] = extra; in _PyCode_SetExtra()