Home
last modified time | relevance | path

Searched refs:basedict (Results 1 – 2 of 2) sorted by relevance

/third_party/python/Modules/_ctypes/
Dstgdict.c343 StgDictObject *stgdict, *basedict; in PyCStructUnionType_update_stgdict() local
442 basedict = PyType_stgdict((PyObject *)((PyTypeObject *)type)->tp_base); in PyCStructUnionType_update_stgdict()
443 if (basedict) { in PyCStructUnionType_update_stgdict()
444 stgdict->flags |= (basedict->flags & in PyCStructUnionType_update_stgdict()
450 if (basedict && !use_broken_old_ctypes_semantics) { in PyCStructUnionType_update_stgdict()
451 size = offset = basedict->size; in PyCStructUnionType_update_stgdict()
452 align = basedict->align; in PyCStructUnionType_update_stgdict()
456 stgdict->ffi_type_pointer.elements = PyMem_New(ffi_type *, basedict->length + len + 1); in PyCStructUnionType_update_stgdict()
462 sizeof(ffi_type *) * (basedict->length + len + 1)); in PyCStructUnionType_update_stgdict()
463 if (basedict->length > 0) { in PyCStructUnionType_update_stgdict()
[all …]
D_ctypes.c546 StgDictObject *basedict = PyType_stgdict((PyObject *)result->tp_base); in StructUnionType_new() local
548 if (basedict == NULL) in StructUnionType_new()
551 if (-1 == PyCStgDict_clone(dict, basedict)) { in StructUnionType_new()
556 basedict->flags |= DICTFLAG_FINAL; /* set the 'final' flag in the baseclass dict */ in StructUnionType_new()