Searched refs:n_members (Results 1 – 2 of 2) sorted by relevance
/third_party/glib/glib/ |
D | gvarianttypeinfo.c | 105 gsize n_members; member 370 for (i = 0; i < tuple_info->n_members; i++) in tuple_info_free() 373 g_slice_free1 (sizeof (GVariantMemberInfo) * tuple_info->n_members, in tuple_info_free() 381 gsize *n_members) in tuple_allocate_members() argument 386 *n_members = g_variant_type_n_items (type); in tuple_allocate_members() 387 *members = g_slice_alloc (sizeof (GVariantMemberInfo) * *n_members); in tuple_allocate_members() 405 g_assert (i == *n_members); in tuple_allocate_members() 418 if (&info->members[info->n_members] == item) in tuple_get_item() 623 if (info->n_members > 0) in tuple_set_base_info() 631 for (m = info->members; m < &info->members[info->n_members]; m++) in tuple_set_base_info() [all …]
|
/third_party/python/Objects/ |
D | structseq.c | 340 Py_ssize_t n_members, Py_ssize_t n_unnamed_members) { in initialize_structseq_dict() argument 357 SET_DICT_FROM_SIZE(real_length_key, n_members); in initialize_structseq_dict() 364 Py_ssize_t n_members) { in initialize_members() argument 367 for (i = k = 0; i < n_members; ++i) { in initialize_members() 389 Py_ssize_t n_members, n_unnamed_members; in PyStructSequence_InitType2() local 417 n_members = count_members(desc, &n_unnamed_members); in PyStructSequence_InitType2() 418 members = PyMem_NEW(PyMemberDef, n_members - n_unnamed_members + 1); in PyStructSequence_InitType2() 423 initialize_members(desc, members, n_members); in PyStructSequence_InitType2() 433 desc, type->tp_dict, n_members, n_unnamed_members) < 0) { in PyStructSequence_InitType2() 456 Py_ssize_t n_members, n_unnamed_members; in PyStructSequence_NewType() local [all …]
|