Searched refs:add_defs (Results 1 – 2 of 2) sorted by relevance
3780 upb_def **add_defs = NULL; in upb_symtab_add() local3926 add_defs = malloc(sizeof(void*) * upb_strtable_count(&addtab)); in upb_symtab_add()3927 if (add_defs == NULL) goto oom_err; in upb_symtab_add()3930 add_defs[n++] = upb_value_getptr(upb_strtable_iter_value(&iter)); in upb_symtab_add()3933 if (!upb_def_freeze(add_defs, n, status)) goto err; in upb_symtab_add()3942 upb_def *def = add_defs[i]; in upb_symtab_add()3954 free(add_defs); in upb_symtab_add()3975 free(add_defs); in upb_symtab_add()
3944 upb_def **add_defs = NULL; in symtab_add() local4101 add_defs = upb_gmalloc(sizeof(void*) * add_objs_size); in symtab_add()4102 if (add_defs == NULL) goto oom_err; in symtab_add()4105 add_defs[add_n++] = upb_value_getptr(upb_strtable_iter_value(&iter)); in symtab_add()4109 if (!_upb_def_validate(add_defs, add_n, status)) { in symtab_add()4115 add_objs = (upb_refcounted**)add_defs; in symtab_add()4146 upb_gfree(add_defs); in symtab_add()4167 upb_gfree(add_defs); in symtab_add()