Lines Matching refs:vp
1409 static void add_varray_page (varray_t *vp);
1410 static symint_t add_string (varray_t *vp,
1451 varray_t *vp);
1520 add_varray_page (varray_t *vp /* varray to add page to */) in add_varray_page() argument
1525 if (vp->object_size > 1) in add_varray_page()
1526 new_links->datum = (page_type *) xcalloc (1, vp->object_size); in add_varray_page()
1534 new_links->start_index = vp->num_allocated; in add_varray_page()
1535 vp->objects_last_page = 0; in add_varray_page()
1537 if (vp->first == (vlinks_t *) NULL) /* first allocation? */ in add_varray_page()
1538 vp->first = vp->last = new_links; in add_varray_page()
1541 new_links->prev = vp->last; in add_varray_page()
1542 vp->last->next = new_links; in add_varray_page()
1543 vp->last = new_links; in add_varray_page()
1550 add_string (varray_t *vp, /* string obstack */ in add_string() argument
1566 if (vp->objects_last_page + len >= PAGE_USIZE) in add_string()
1568 vp->num_allocated = in add_string()
1569 ((vp->num_allocated + PAGE_USIZE - 1) / PAGE_USIZE) * PAGE_USIZE; in add_string()
1570 add_varray_page (vp); in add_string()
1574 hash_ptr->indx = vp->num_allocated; in add_string()
1576 hash_ptr->string = &vp->last->datum->byte[vp->objects_last_page]; in add_string()
1578 vp->objects_last_page += len + 1; in add_string()
1579 vp->num_allocated += len + 1; in add_string()
1611 varray_t *vp; in add_ecoff_symbol() local
1618 vp = &cur_file_ptr->symbols; in add_ecoff_symbol()
1620 if (vp->objects_last_page == vp->objects_per_page) in add_ecoff_symbol()
1621 add_varray_page (vp); in add_ecoff_symbol()
1623 psym = &vp->last->datum->sym[vp->objects_last_page++]; in add_ecoff_symbol()
1657 ++vp->num_allocated; in add_ecoff_symbol()
1805 varray_t *vp; in add_aux_sym_symint() local
1811 vp = &cur_file_ptr->aux_syms; in add_aux_sym_symint()
1813 if (vp->objects_last_page == vp->objects_per_page) in add_aux_sym_symint()
1814 add_varray_page (vp); in add_aux_sym_symint()
1816 aux_ptr = &vp->last->datum->aux[vp->objects_last_page++]; in add_aux_sym_symint()
1820 return vp->num_allocated++; in add_aux_sym_symint()
1828 varray_t *vp; in add_aux_sym_rndx() local
1834 vp = &cur_file_ptr->aux_syms; in add_aux_sym_rndx()
1836 if (vp->objects_last_page == vp->objects_per_page) in add_aux_sym_rndx()
1837 add_varray_page (vp); in add_aux_sym_rndx()
1839 aux_ptr = &vp->last->datum->aux[vp->objects_last_page++]; in add_aux_sym_rndx()
1844 return vp->num_allocated++; in add_aux_sym_rndx()
1855 varray_t *vp; in add_aux_sym_tir() local
1865 vp = &cur_file_ptr->aux_syms; in add_aux_sym_tir()
1925 hash_ptr->indx = vp->num_allocated; in add_aux_sym_tir()
1931 if (vp->objects_last_page == vp->objects_per_page) in add_aux_sym_tir()
1932 add_varray_page (vp); in add_aux_sym_tir()
1934 aux_ptr = &vp->last->datum->aux[vp->objects_last_page++]; in add_aux_sym_tir()
1938 ret = vp->num_allocated++; in add_aux_sym_tir()
1977 = &vp->last->datum->aux[vp->objects_last_page - 1]; in add_aux_sym_tir()
1981 = &vp->last->datum->aux[vp->objects_last_page - 1]; in add_aux_sym_tir()
2117 varray_t *vp; in add_procedure() local
2129 vp = &cur_file_ptr->procs; in add_procedure()
2131 if (vp->objects_last_page == vp->objects_per_page) in add_procedure()
2132 add_varray_page (vp); in add_procedure()
2134 cur_proc_ptr = new_proc_ptr = &vp->last->datum->proc[vp->objects_last_page++]; in add_procedure()
2139 vp->num_allocated++; in add_procedure()
4466 varray_t *vp) in ecoff_build_strings() argument
4476 for (str_link = vp->first; in ecoff_build_strings()
4483 str_cnt = vp->objects_last_page; in ecoff_build_strings()
4485 str_cnt = vp->objects_per_page; in ecoff_build_strings()