Searched refs:basedict (Results 1 – 4 of 4) sorted by relevance
322 StgDictObject *stgdict, *basedict; in PyCStructUnionType_update_stgdict() local392 basedict = PyType_stgdict((PyObject *)((PyTypeObject *)type)->tp_base); in PyCStructUnionType_update_stgdict()393 if (basedict && !use_broken_old_ctypes_semantics) { in PyCStructUnionType_update_stgdict()394 size = offset = basedict->size; in PyCStructUnionType_update_stgdict()395 align = basedict->align; in PyCStructUnionType_update_stgdict()399 stgdict->ffi_type_pointer.elements = PyMem_New(ffi_type *, basedict->length + len + 1); in PyCStructUnionType_update_stgdict()405 sizeof(ffi_type *) * (basedict->length + len + 1)); in PyCStructUnionType_update_stgdict()406 if (basedict->length > 0) { in PyCStructUnionType_update_stgdict()408 basedict->ffi_type_pointer.elements, in PyCStructUnionType_update_stgdict()409 sizeof(ffi_type *) * (basedict->length)); in PyCStructUnionType_update_stgdict()[all …]
510 StgDictObject *basedict = PyType_stgdict((PyObject *)result->tp_base); in StructUnionType_new() local512 if (basedict == NULL) in StructUnionType_new()515 if (-1 == PyCStgDict_clone(dict, basedict)) { in StructUnionType_new()520 basedict->flags |= DICTFLAG_FINAL; /* set the 'final' flag in the baseclass dict */ in StructUnionType_new()
338 StgDictObject *stgdict, *basedict; in PyCStructUnionType_update_stgdict() local408 basedict = PyType_stgdict((PyObject *)((PyTypeObject *)type)->tp_base); in PyCStructUnionType_update_stgdict()409 if (basedict && !use_broken_old_ctypes_semantics) { in PyCStructUnionType_update_stgdict()410 size = offset = basedict->size; in PyCStructUnionType_update_stgdict()411 align = basedict->align; in PyCStructUnionType_update_stgdict()415 stgdict->ffi_type_pointer.elements = PyMem_New(ffi_type *, basedict->length + len + 1); in PyCStructUnionType_update_stgdict()421 sizeof(ffi_type *) * (basedict->length + len + 1)); in PyCStructUnionType_update_stgdict()422 if (basedict->length > 0) { in PyCStructUnionType_update_stgdict()424 basedict->ffi_type_pointer.elements, in PyCStructUnionType_update_stgdict()425 sizeof(ffi_type *) * (basedict->length)); in PyCStructUnionType_update_stgdict()[all …]
467 StgDictObject *basedict = PyType_stgdict((PyObject *)result->tp_base); in StructUnionType_new() local469 if (basedict == NULL) in StructUnionType_new()472 if (-1 == PyCStgDict_clone(dict, basedict)) { in StructUnionType_new()477 basedict->flags |= DICTFLAG_FINAL; /* set the 'final' flag in the baseclass dict */ in StructUnionType_new()