vb 42 htags/anchor.c static VARRAY *vb; vb 123 htags/anchor.c if (vb == NULL) vb 124 htags/anchor.c vb = varray_open(sizeof(struct anchor), 1000); vb 126 htags/anchor.c varray_reset(vb); vb 186 htags/anchor.c a = varray_append(vb); vb 198 htags/anchor.c if (vb->length == 0) { vb 201 htags/anchor.c int i, used = vb->length; vb 205 htags/anchor.c table = varray_assign(vb, 0, 0); vb 226 htags/anchor.c end = &table[vb->length]; vb 711 libutil/gtagsop.c if (gtop->vb == NULL) vb 712 libutil/gtagsop.c gtop->vb = varray_open(sizeof(GTP), 200); vb 714 libutil/gtagsop.c varray_reset(gtop->vb); vb 767 libutil/gtagsop.c varray_reset(gtop->vb); vb 795 libutil/gtagsop.c if (gtop->vb) vb 796 libutil/gtagsop.c varray_close(gtop->vb); vb 825 libutil/gtagsop.c VARRAY *vb = (VARRAY *)entry->value; vb 826 libutil/gtagsop.c int *lno_array = varray_assign(vb, 0, 0); vb 846 libutil/gtagsop.c qsort(lno_array, vb->length, sizeof(int), compare_lineno); vb 867 libutil/gtagsop.c for (i = 0; i < vb->length; i++) { vb 913 libutil/gtagsop.c for (i = 0; i < vb->length; i++) { vb 932 libutil/gtagsop.c varray_close(vb); vb 982 libutil/gtagsop.c gtp = varray_append(gtop->vb); vb 1002 libutil/gtagsop.c gtop->gtp_array = varray_assign(gtop->vb, 0, 0); vb 1003 libutil/gtagsop.c gtop->gtp_count = gtop->vb->length; vb 128 libutil/gtagsop.h VARRAY *vb; /**< */ vb 53 libutil/linetable.c static VARRAY *vb; vb 73 libutil/linetable.c vb = varray_open(sizeof(int), EXPAND); vb 127 libutil/linetable.c entry = varray_assign(vb, lineno - 1, 1); vb 145 libutil/linetable.c addr = *((int *)varray_assign(vb, lineno - 1, 0)); vb 156 libutil/linetable.c varray_close(vb); vb 173 libutil/linetable.c if (vb->length == lineno) { vb 93 libutil/varray.c VARRAY *vb = (VARRAY *)check_calloc(sizeof(VARRAY), 1); vb 99 libutil/varray.c vb->size = size; vb 100 libutil/varray.c vb->alloced = vb->length = 0; vb 101 libutil/varray.c vb->expand = (expand == 0) ? DEFAULT_EXPAND : expand; vb 102 libutil/varray.c vb->vbuf = NULL; vb 103 libutil/varray.c return vb; vb 118 libutil/varray.c varray_assign(VARRAY *vb, int index, int force) vb 122 libutil/varray.c if (index >= vb->length) { vb 124 libutil/varray.c vb->length = index + 1; vb 125 libutil/varray.c else if (index == 0 && vb->length == 0) vb 133 libutil/varray.c if (index >= vb->alloced) { vb 134 libutil/varray.c int old_alloced = vb->alloced; vb 136 libutil/varray.c while (index >= vb->alloced) vb 137 libutil/varray.c vb->alloced += vb->expand; vb 143 libutil/varray.c if (vb->vbuf == NULL) vb 144 libutil/varray.c vb->vbuf = (char *)check_malloc(vb->size * vb->alloced); vb 146 libutil/varray.c vb->vbuf = (char *)check_realloc(vb->vbuf, vb->size * vb->alloced); vb 148 libutil/varray.c fprintf(stderr, "Expanded: from %d to %d.\n", old_alloced, vb->alloced); vb 150 libutil/varray.c return (void *)(vb->vbuf + vb->size * index); vb 162 libutil/varray.c varray_append(VARRAY *vb) vb 164 libutil/varray.c return varray_assign(vb, vb->length, 1); vb 172 libutil/varray.c varray_reset(VARRAY *vb) vb 174 libutil/varray.c vb->length = 0; vb 182 libutil/varray.c varray_close(VARRAY *vb) vb 184 libutil/varray.c if (vb) { vb 185 libutil/varray.c if (vb->vbuf) vb 186 libutil/varray.c (void)free(vb->vbuf); vb 187 libutil/varray.c (void)free(vb);