h 56 gtags-cscope/history.c struct cmd *h; h 58 gtags-cscope/history.c h = mymalloc(sizeof(struct cmd)); h 60 gtags-cscope/history.c tail->next = h; h 61 gtags-cscope/history.c h->next = 0; h 62 gtags-cscope/history.c h->prev = tail; h 63 gtags-cscope/history.c tail = h; h 65 gtags-cscope/history.c tail = h; h 66 gtags-cscope/history.c h->next = h->prev = 0; h 68 gtags-cscope/history.c h->field = f; h 69 gtags-cscope/history.c h->text = my_strdup( s); h 40 htags/lexcommon.h lexcommon.h requires the lex_symbol_generation_rule(x) macro for each language h 62 libdb/bt_conv.c PAGE *h; h 74 libdb/bt_conv.c h = pp; h 75 libdb/bt_conv.c M_32_SWAP(h->pgno); h 76 libdb/bt_conv.c M_32_SWAP(h->prevpg); h 77 libdb/bt_conv.c M_32_SWAP(h->nextpg); h 78 libdb/bt_conv.c M_32_SWAP(h->flags); h 79 libdb/bt_conv.c M_16_SWAP(h->lower); h 80 libdb/bt_conv.c M_16_SWAP(h->upper); h 82 libdb/bt_conv.c top = NEXTINDEX(h); h 83 libdb/bt_conv.c if ((h->flags & P_TYPE) == P_BINTERNAL) h 85 libdb/bt_conv.c M_16_SWAP(h->linp[i]); h 86 libdb/bt_conv.c p = (char *)GETBINTERNAL(h, i); h 98 libdb/bt_conv.c else if ((h->flags & P_TYPE) == P_BLEAF) h 100 libdb/bt_conv.c M_16_SWAP(h->linp[i]); h 101 libdb/bt_conv.c p = (char *)GETBLEAF(h, i); h 139 libdb/bt_conv.c PAGE *h; h 151 libdb/bt_conv.c h = pp; h 152 libdb/bt_conv.c top = NEXTINDEX(h); h 153 libdb/bt_conv.c if ((h->flags & P_TYPE) == P_BINTERNAL) h 155 libdb/bt_conv.c p = (char *)GETBINTERNAL(h, i); h 166 libdb/bt_conv.c M_16_SWAP(h->linp[i]); h 168 libdb/bt_conv.c else if ((h->flags & P_TYPE) == P_BLEAF) h 170 libdb/bt_conv.c p = (char *)GETBLEAF(h, i); h 190 libdb/bt_conv.c M_16_SWAP(h->linp[i]); h 193 libdb/bt_conv.c M_32_SWAP(h->pgno); h 194 libdb/bt_conv.c M_32_SWAP(h->prevpg); h 195 libdb/bt_conv.c M_32_SWAP(h->nextpg); h 196 libdb/bt_conv.c M_32_SWAP(h->flags); h 197 libdb/bt_conv.c M_16_SWAP(h->lower); h 198 libdb/bt_conv.c M_16_SWAP(h->upper); h 63 libdb/bt_debug.c PAGE *h; h 90 libdb/bt_debug.c for (i = P_ROOT; (h = mpool_get(t->bt_mp, i, 0)) != NULL; ++i) { h 91 libdb/bt_debug.c __bt_dpage(h); h 92 libdb/bt_debug.c (void)mpool_put(t->bt_mp, h, 0); h 102 libdb/bt_debug.c __bt_dmpage(h) h 103 libdb/bt_debug.c PAGE *h; h 108 libdb/bt_debug.c m = (BTMETA *)h; h 141 libdb/bt_debug.c PAGE *h; h 144 libdb/bt_debug.c if ((h = mpool_get(t->bt_mp, pgno, 0)) != NULL) { h 145 libdb/bt_debug.c __bt_dpage(h); h 146 libdb/bt_debug.c (void)mpool_put(t->bt_mp, h, 0); h 156 libdb/bt_debug.c __bt_dpage(h) h 157 libdb/bt_debug.c PAGE *h; h 166 libdb/bt_debug.c (void)fprintf(stderr, " page %d: (", h->pgno); h 169 libdb/bt_debug.c if (h->flags & flag) { \ h 183 libdb/bt_debug.c (void)fprintf(stderr, "\tprev %2d next %2d", h->prevpg, h->nextpg); h 184 libdb/bt_debug.c if (h->flags & P_OVERFLOW) h 187 libdb/bt_debug.c top = NEXTINDEX(h); h 189 libdb/bt_debug.c h->lower, h->upper, top); h 191 libdb/bt_debug.c (void)fprintf(stderr, "\t[%03d] %4d ", cur, h->linp[cur]); h 192 libdb/bt_debug.c switch (h->flags & P_TYPE) { h 194 libdb/bt_debug.c bi = GETBINTERNAL(h, cur); h 204 libdb/bt_debug.c ri = GETRINTERNAL(h, cur); h 209 libdb/bt_debug.c bl = GETBLEAF(h, cur); h 228 libdb/bt_debug.c rl = GETRLEAF(h, cur); h 255 libdb/bt_debug.c PAGE *h; h 263 libdb/bt_debug.c for (i = P_ROOT; (h = mpool_get(t->bt_mp, i, 0)) != NULL; ++i) { h 264 libdb/bt_debug.c switch (h->flags & P_TYPE) { h 268 libdb/bt_debug.c ifree += h->upper - h->lower; h 273 libdb/bt_debug.c lfree += h->upper - h->lower; h 274 libdb/bt_debug.c nkeys += NEXTINDEX(h); h 280 libdb/bt_debug.c (void)mpool_put(t->bt_mp, h, 0); h 285 libdb/bt_debug.c h = mpool_get(t->bt_mp, i, 0); h 286 libdb/bt_debug.c if (h->flags & (P_BLEAF|P_RLEAF)) { h 289 libdb/bt_debug.c (void)mpool_put(t->bt_mp, h, 0); h 293 libdb/bt_debug.c GETRINTERNAL(h, 0)->pgno : h 294 libdb/bt_debug.c GETBINTERNAL(h, 0)->pgno; h 295 libdb/bt_debug.c (void)mpool_put(t->bt_mp, h, 0); h 73 libdb/bt_delete.c PAGE *h; h 103 libdb/bt_delete.c if ((h = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL) h 110 libdb/bt_delete.c if (NEXTINDEX(h) == 1) h 111 libdb/bt_delete.c if (__bt_stkacq(t, &h, &t->bt_cursor)) h 114 libdb/bt_delete.c status = __bt_dleaf(t, NULL, h, c->pg.index); h 116 libdb/bt_delete.c if (NEXTINDEX(h) == 0 && status == RET_SUCCESS) { h 117 libdb/bt_delete.c if (__bt_pdelete(t, h)) h 121 libdb/bt_delete.c h, status == RET_SUCCESS ? MPOOL_DIRTY : 0); h 153 libdb/bt_delete.c PAGE *h; h 163 libdb/bt_delete.c h = *hp; h 164 libdb/bt_delete.c mpool_put(t->bt_mp, h, 0); h 167 libdb/bt_delete.c h = e->page; h 170 libdb/bt_delete.c if (h->pgno == c->pg.pgno) h 179 libdb/bt_delete.c while (h->pgno != c->pg.pgno) { h 180 libdb/bt_delete.c if ((nextpg = h->nextpg) == P_INVALID) h 182 libdb/bt_delete.c mpool_put(t->bt_mp, h, 0); h 187 libdb/bt_delete.c if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL) h 191 libdb/bt_delete.c if (parent->index != NEXTINDEX(h) - 1) { h 193 libdb/bt_delete.c BT_PUSH(t, h->pgno, index); h 196 libdb/bt_delete.c mpool_put(t->bt_mp, h, 0); h 202 libdb/bt_delete.c bi = GETBINTERNAL(h, index); h 207 libdb/bt_delete.c mpool_put(t->bt_mp, h, 0); h 210 libdb/bt_delete.c if ((h = mpool_get(t->bt_mp, pgno, 0)) == NULL) h 214 libdb/bt_delete.c mpool_put(t->bt_mp, h, 0); h 215 libdb/bt_delete.c if ((h = mpool_get(t->bt_mp, nextpg, 0)) == NULL) h 219 libdb/bt_delete.c if (h->pgno == c->pg.pgno) h 223 libdb/bt_delete.c mpool_put(t->bt_mp, h, 0); h 226 libdb/bt_delete.c h = e->page; h 234 libdb/bt_delete.c while (h->pgno != c->pg.pgno) { h 235 libdb/bt_delete.c if ((prevpg = h->prevpg) == P_INVALID) h 237 libdb/bt_delete.c mpool_put(t->bt_mp, h, 0); h 242 libdb/bt_delete.c if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL) h 248 libdb/bt_delete.c BT_PUSH(t, h->pgno, index); h 251 libdb/bt_delete.c mpool_put(t->bt_mp, h, 0); h 257 libdb/bt_delete.c bi = GETBINTERNAL(h, index); h 261 libdb/bt_delete.c mpool_put(t->bt_mp, h, 0); h 264 libdb/bt_delete.c if ((h = mpool_get(t->bt_mp, pgno, 0)) == NULL) h 267 libdb/bt_delete.c index = NEXTINDEX(h) - 1; h 270 libdb/bt_delete.c mpool_put(t->bt_mp, h, 0); h 271 libdb/bt_delete.c if ((h = mpool_get(t->bt_mp, prevpg, 0)) == NULL) h 276 libdb/bt_delete.c ret: mpool_put(t->bt_mp, h, 0); h 295 libdb/bt_delete.c PAGE *h; h 314 libdb/bt_delete.c h = e->page; h 316 libdb/bt_delete.c if (__bt_dleaf(t, key, h, e->index)) { h 317 libdb/bt_delete.c mpool_put(t->bt_mp, h, 0); h 321 libdb/bt_delete.c if (NEXTINDEX(h) == 0) { h 322 libdb/bt_delete.c if (__bt_pdelete(t, h)) h 325 libdb/bt_delete.c mpool_put(t->bt_mp, h, MPOOL_DIRTY); h 329 libdb/bt_delete.c } while (e->index < NEXTINDEX(h) && __bt_cmp(t, key, e) == 0); h 332 libdb/bt_delete.c if (e->index == NEXTINDEX(h)) h 339 libdb/bt_delete.c if (__bt_dleaf(t, key, h, e->index) == RET_ERROR) { h 340 libdb/bt_delete.c mpool_put(t->bt_mp, h, 0); h 348 libdb/bt_delete.c if (NEXTINDEX(h) == 0) { h 349 libdb/bt_delete.c if (__bt_pdelete(t, h)) h 355 libdb/bt_delete.c mpool_put(t->bt_mp, h, MPOOL_DIRTY); h 375 libdb/bt_delete.c __bt_pdelete(t, h) h 377 libdb/bt_delete.c PAGE *h; h 450 libdb/bt_delete.c if (h->pgno == P_ROOT) { h 451 libdb/bt_delete.c mpool_put(t->bt_mp, h, MPOOL_DIRTY); h 454 libdb/bt_delete.c return (__bt_relink(t, h) || __bt_free(t, h)); h 469 libdb/bt_delete.c __bt_dleaf(t, key, h, index) h 472 libdb/bt_delete.c PAGE *h; h 484 libdb/bt_delete.c t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index == index && h 485 libdb/bt_delete.c __bt_curdel(t, key, h, index)) h 489 libdb/bt_delete.c to = bl = GETBLEAF(h, index); h 498 libdb/bt_delete.c from = (char *)h + h->upper; h 500 libdb/bt_delete.c h->upper += nbytes; h 503 libdb/bt_delete.c offset = h->linp[index]; h 504 libdb/bt_delete.c for (cnt = index, ip = &h->linp[0]; cnt--; ++ip) h 507 libdb/bt_delete.c for (cnt = NEXTINDEX(h) - index; --cnt; ++ip) h 509 libdb/bt_delete.c h->lower -= sizeof(indx_t); h 514 libdb/bt_delete.c t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index > index) h 532 libdb/bt_delete.c __bt_curdel(t, key, h, index) h 535 libdb/bt_delete.c PAGE *h; h 558 libdb/bt_delete.c e.page = h; h 568 libdb/bt_delete.c e.page = h; h 576 libdb/bt_delete.c if (index < NEXTINDEX(h) - 1) { h 577 libdb/bt_delete.c e.page = h; h 585 libdb/bt_delete.c if (index == 0 && h->prevpg != P_INVALID) { h 586 libdb/bt_delete.c if ((pg = mpool_get(t->bt_mp, h->prevpg, 0)) == NULL) h 597 libdb/bt_delete.c if (index == NEXTINDEX(h) - 1 && h->nextpg != P_INVALID) { h 598 libdb/bt_delete.c if ((pg = mpool_get(t->bt_mp, h->nextpg, 0)) == NULL) h 612 libdb/bt_delete.c e.page = h; h 630 libdb/bt_delete.c __bt_relink(t, h) h 632 libdb/bt_delete.c PAGE *h; h 636 libdb/bt_delete.c if (h->nextpg != P_INVALID) { h 637 libdb/bt_delete.c if ((pg = mpool_get(t->bt_mp, h->nextpg, 0)) == NULL) h 639 libdb/bt_delete.c pg->prevpg = h->prevpg; h 642 libdb/bt_delete.c if (h->prevpg != P_INVALID) { h 643 libdb/bt_delete.c if ((pg = mpool_get(t->bt_mp, h->prevpg, 0)) == NULL) h 645 libdb/bt_delete.c pg->nextpg = h->nextpg; h 90 libdb/bt_overflow.c PAGE *h; h 116 libdb/bt_overflow.c for (p = *buf;; p = (char *)p + nb, pg = h->nextpg) { h 117 libdb/bt_overflow.c if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) h 121 libdb/bt_overflow.c memmove(p, (char *)h + BTDATAOFF, nb); h 122 libdb/bt_overflow.c mpool_put(t->bt_mp, h, 0); h 145 libdb/bt_overflow.c PAGE *h, *last; h 157 libdb/bt_overflow.c p = (char *)p + plen, last = h) { h 158 libdb/bt_overflow.c if ((h = __bt_new(t, &npg)) == NULL) h 161 libdb/bt_overflow.c h->pgno = npg; h 162 libdb/bt_overflow.c h->nextpg = h->prevpg = P_INVALID; h 163 libdb/bt_overflow.c h->flags = P_OVERFLOW; h 164 libdb/bt_overflow.c h->lower = h->upper = 0; h 167 libdb/bt_overflow.c memmove((char *)h + BTDATAOFF, p, nb); h 170 libdb/bt_overflow.c last->nextpg = h->pgno; h 173 libdb/bt_overflow.c *pg = h->pgno; h 176 libdb/bt_overflow.c mpool_put(t->bt_mp, h, MPOOL_DIRTY); h 196 libdb/bt_overflow.c PAGE *h; h 208 libdb/bt_overflow.c if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) h 212 libdb/bt_overflow.c if (h->flags & P_PRESERVE) { h 213 libdb/bt_overflow.c mpool_put(t->bt_mp, h, 0); h 219 libdb/bt_overflow.c pg = h->nextpg; h 220 libdb/bt_overflow.c __bt_free(t, h); h 223 libdb/bt_overflow.c if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) h 57 libdb/bt_page.c __bt_free(t, h) h 59 libdb/bt_page.c PAGE *h; h 62 libdb/bt_page.c h->prevpg = P_INVALID; h 63 libdb/bt_page.c h->nextpg = t->bt_free; h 64 libdb/bt_page.c t->bt_free = h->pgno; h 68 libdb/bt_page.c return (mpool_put(t->bt_mp, h, MPOOL_DIRTY)); h 85 libdb/bt_page.c PAGE *h; h 88 libdb/bt_page.c (h = mpool_get(t->bt_mp, t->bt_free, 0)) != NULL) { h 90 libdb/bt_page.c t->bt_free = h->nextpg; h 92 libdb/bt_page.c return (h); h 80 libdb/bt_put.c PAGE *h; h 158 libdb/bt_put.c if ((h = mpool_get(t->bt_mp, t->bt_cursor.pg.pgno, 0)) == NULL) h 171 libdb/bt_put.c h = e->page; h 184 libdb/bt_put.c mpool_put(t->bt_mp, h, 0); h 194 libdb/bt_put.c delete: if (__bt_dleaf(t, key, h, index) == RET_ERROR) { h 195 libdb/bt_put.c mpool_put(t->bt_mp, h, 0); h 208 libdb/bt_put.c if (h->upper - h->lower < nbytes + sizeof(indx_t)) { h 209 libdb/bt_put.c if ((status = __bt_split(t, h, key, h 215 libdb/bt_put.c if (index < (nxtindex = NEXTINDEX(h))) h 216 libdb/bt_put.c memmove(h->linp + index + 1, h->linp + index, h 218 libdb/bt_put.c h->lower += sizeof(indx_t); h 220 libdb/bt_put.c h->linp[index] = h->upper -= nbytes; h 221 libdb/bt_put.c dest = (char *)h + h->upper; h 227 libdb/bt_put.c t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index >= index) h 231 libdb/bt_put.c if (h->nextpg == P_INVALID) { h 232 libdb/bt_put.c if (index == NEXTINDEX(h) - 1) { h 235 libdb/bt_put.c t->bt_last.pgno = h->pgno; h 237 libdb/bt_put.c } else if (h->prevpg == P_INVALID) { h 241 libdb/bt_put.c t->bt_last.pgno = h->pgno; h 245 libdb/bt_put.c mpool_put(t->bt_mp, h, MPOOL_DIRTY); h 273 libdb/bt_put.c PAGE *h; h 277 libdb/bt_put.c if ((h = mpool_get(t->bt_mp, t->bt_last.pgno, 0)) == NULL) { h 281 libdb/bt_put.c t->bt_cur.page = h; h 289 libdb/bt_put.c if (h->upper - h->lower < nbytes + sizeof(indx_t)) h 295 libdb/bt_put.c if (t->bt_cur.index != NEXTINDEX(h) - 1) h 320 libdb/bt_put.c mpool_put(t->bt_mp, h, 0); h 69 libdb/bt_search.c PAGE *h; h 76 libdb/bt_search.c if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) h 80 libdb/bt_search.c t->bt_cur.page = h; h 81 libdb/bt_search.c for (base = 0, lim = NEXTINDEX(h); lim; lim >>= 1) { h 84 libdb/bt_search.c if (h->flags & P_BLEAF) { h 104 libdb/bt_search.c if (h->flags & P_BLEAF) { h 107 libdb/bt_search.c h->prevpg != P_INVALID && h 108 libdb/bt_search.c __bt_sprev(t, h, key, exactp)) h 110 libdb/bt_search.c if (base == NEXTINDEX(h) && h 111 libdb/bt_search.c h->nextpg != P_INVALID && h 112 libdb/bt_search.c __bt_snext(t, h, key, exactp)) h 129 libdb/bt_search.c next: BT_PUSH(t, h->pgno, index); h 130 libdb/bt_search.c pg = GETBINTERNAL(h, index)->pgno; h 131 libdb/bt_search.c mpool_put(t->bt_mp, h, 0); h 148 libdb/bt_search.c __bt_snext(t, h, key, exactp) h 150 libdb/bt_search.c PAGE *h; h 160 libdb/bt_search.c if ((e.page = mpool_get(t->bt_mp, h->nextpg, 0)) == NULL) h 164 libdb/bt_search.c mpool_put(t->bt_mp, h, 0); h 186 libdb/bt_search.c __bt_sprev(t, h, key, exactp) h 188 libdb/bt_search.c PAGE *h; h 198 libdb/bt_search.c if ((e.page = mpool_get(t->bt_mp, h->prevpg, 0)) == NULL) h 202 libdb/bt_search.c mpool_put(t->bt_mp, h, 0); h 158 libdb/bt_seq.c PAGE *h; h 182 libdb/bt_seq.c if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) h 186 libdb/bt_seq.c if (NEXTINDEX(h) == 0) { h 187 libdb/bt_seq.c mpool_put(t->bt_mp, h, 0); h 191 libdb/bt_seq.c if (h->flags & (P_BLEAF | P_RLEAF)) h 193 libdb/bt_seq.c pg = GETBINTERNAL(h, 0)->pgno; h 194 libdb/bt_seq.c mpool_put(t->bt_mp, h, 0); h 196 libdb/bt_seq.c ep->page = h; h 203 libdb/bt_seq.c if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) h 207 libdb/bt_seq.c if (NEXTINDEX(h) == 0) { h 208 libdb/bt_seq.c mpool_put(t->bt_mp, h, 0); h 212 libdb/bt_seq.c if (h->flags & (P_BLEAF | P_RLEAF)) h 214 libdb/bt_seq.c pg = GETBINTERNAL(h, NEXTINDEX(h) - 1)->pgno; h 215 libdb/bt_seq.c mpool_put(t->bt_mp, h, 0); h 218 libdb/bt_seq.c ep->page = h; h 219 libdb/bt_seq.c ep->index = NEXTINDEX(h) - 1; h 246 libdb/bt_seq.c PAGE *h; h 269 libdb/bt_seq.c if ((h = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL) h 286 libdb/bt_seq.c if (++index == NEXTINDEX(h)) { h 287 libdb/bt_seq.c pg = h->nextpg; h 288 libdb/bt_seq.c mpool_put(t->bt_mp, h, 0); h 291 libdb/bt_seq.c if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) h 304 libdb/bt_seq.c ep->page = h; h 310 libdb/bt_seq.c pg = h->prevpg; h 311 libdb/bt_seq.c mpool_put(t->bt_mp, h, 0); h 314 libdb/bt_seq.c if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) h 316 libdb/bt_seq.c index = NEXTINDEX(h) - 1; h 322 libdb/bt_seq.c ep->page = h; h 347 libdb/bt_seq.c PAGE *h; h 373 libdb/bt_seq.c h = ep->page; h 387 libdb/bt_seq.c if (h->prevpg == P_INVALID) h 389 libdb/bt_seq.c if (h->pgno != save.page->pgno) h 390 libdb/bt_seq.c mpool_put(t->bt_mp, h, 0); h 391 libdb/bt_seq.c if ((h = mpool_get(t->bt_mp, h 392 libdb/bt_seq.c h->prevpg, 0)) == NULL) { h 393 libdb/bt_seq.c if (h->pgno == save.page->pgno) h 398 libdb/bt_seq.c ep->page = h; h 399 libdb/bt_seq.c ep->index = NEXTINDEX(h); h 409 libdb/bt_seq.c if (h->pgno != save.page->pgno) h 410 libdb/bt_seq.c mpool_put(t->bt_mp, h, 0); h 418 libdb/bt_seq.c h = ep->page; h 419 libdb/bt_seq.c pg = h->nextpg; h 420 libdb/bt_seq.c mpool_put(t->bt_mp, h, 0); h 423 libdb/bt_seq.c if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) h 426 libdb/bt_seq.c ep->page = h; h 94 libdb/bt_split.c PAGE *h, *l, *r, *lchild, *rchild; h 108 libdb/bt_split.c h = sp->pgno == P_ROOT ? h 111 libdb/bt_split.c if (h == NULL) h 118 libdb/bt_split.c h->linp[skip] = h->upper -= ilen; h 119 libdb/bt_split.c dest = (char *)h + h->upper; h 159 libdb/bt_split.c if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL) h 191 libdb/bt_split.c (h->prevpg != P_INVALID || skip > 1)) { h 218 libdb/bt_split.c if (h->upper - h->lower < nbytes + sizeof(indx_t)) { h 219 libdb/bt_split.c sp = h; h 220 libdb/bt_split.c h = h->pgno == P_ROOT ? h 221 libdb/bt_split.c bt_root(t, h, &l, &r, &skip, nbytes) : h 222 libdb/bt_split.c bt_page(t, h, &l, &r, &skip, nbytes); h 223 libdb/bt_split.c if (h == NULL) h 227 libdb/bt_split.c if (skip < (nxtindex = NEXTINDEX(h))) h 228 libdb/bt_split.c memmove(h->linp + skip + 1, h->linp + skip, h 230 libdb/bt_split.c h->lower += sizeof(indx_t); h 237 libdb/bt_split.c h->linp[skip] = h->upper -= nbytes; h 238 libdb/bt_split.c dest = (char *)h + h->linp[skip]; h 243 libdb/bt_split.c h->linp[skip] = h->upper -= nbytes; h 244 libdb/bt_split.c dest = (char *)h + h->linp[skip]; h 258 libdb/bt_split.c dest = (char *)h + h->linp[skip - 1]; h 265 libdb/bt_split.c h->linp[skip] = h->upper -= nbytes; h 266 libdb/bt_split.c dest = (char *)h + h->linp[skip]; h 276 libdb/bt_split.c dest = (char *)h + h->linp[skip - 1]; h 283 libdb/bt_split.c h->linp[skip] = h->upper -= nbytes; h 284 libdb/bt_split.c dest = (char *)h + h->linp[skip]; h 294 libdb/bt_split.c mpool_put(t->bt_mp, h, MPOOL_DIRTY); h 343 libdb/bt_split.c bt_page(t, h, lp, rp, skip, ilen) h 345 libdb/bt_split.c PAGE *h, **lp, **rp; h 361 libdb/bt_split.c r->nextpg = h->nextpg; h 362 libdb/bt_split.c r->prevpg = h->pgno; h 363 libdb/bt_split.c r->flags = h->flags & P_TYPE; h 375 libdb/bt_split.c if (h->nextpg == P_INVALID && *skip == NEXTINDEX(h)) { h 379 libdb/bt_split.c h->nextpg = r->pgno; h 382 libdb/bt_split.c *lp = h; h 395 libdb/bt_split.c l->pgno = h->pgno; h 397 libdb/bt_split.c l->prevpg = h->prevpg; h 400 libdb/bt_split.c l->flags = h->flags & P_TYPE; h 403 libdb/bt_split.c if (h->nextpg != P_INVALID) { h 404 libdb/bt_split.c if ((tp = mpool_get(t->bt_mp, h->nextpg, 0)) == NULL) { h 420 libdb/bt_split.c tp = bt_psplit(t, h, l, r, skip, ilen); h 423 libdb/bt_split.c memmove(h, l, t->bt_psize); h 425 libdb/bt_split.c tp = h; h 428 libdb/bt_split.c *lp = h; h 447 libdb/bt_split.c bt_root(t, h, lp, rp, skip, ilen) h 449 libdb/bt_split.c PAGE *h, **lp, **rp; h 471 libdb/bt_split.c l->flags = r->flags = h->flags & P_TYPE; h 474 libdb/bt_split.c tp = bt_psplit(t, h, l, r, skip, ilen); h 493 libdb/bt_split.c bt_rroot(t, h, l, r) h 495 libdb/bt_split.c PAGE *h, *l, *r; h 500 libdb/bt_split.c h->linp[0] = h->upper = t->bt_psize - NRINTERNAL; h 501 libdb/bt_split.c dest = (char *)h + h->upper; h 505 libdb/bt_split.c h->linp[1] = h->upper -= NRINTERNAL; h 506 libdb/bt_split.c dest = (char *)h + h->upper; h 510 libdb/bt_split.c h->lower = BTDATAOFF + 2 * sizeof(indx_t); h 513 libdb/bt_split.c h->flags &= ~P_TYPE; h 514 libdb/bt_split.c h->flags |= P_RINTERNAL; h 515 libdb/bt_split.c mpool_put(t->bt_mp, h, MPOOL_DIRTY); h 532 libdb/bt_split.c bt_broot(t, h, l, r) h 534 libdb/bt_split.c PAGE *h, *l, *r; h 550 libdb/bt_split.c h->linp[0] = h->upper = t->bt_psize - nbytes; h 551 libdb/bt_split.c dest = (char *)h + h->upper; h 554 libdb/bt_split.c switch (h->flags & P_TYPE) { h 558 libdb/bt_split.c h->linp[1] = h->upper -= nbytes; h 559 libdb/bt_split.c dest = (char *)h + h->upper; h 574 libdb/bt_split.c h->linp[1] = h->upper -= nbytes; h 575 libdb/bt_split.c dest = (char *)h + h->upper; h 584 libdb/bt_split.c h->lower = BTDATAOFF + 2 * sizeof(indx_t); h 587 libdb/bt_split.c h->flags &= ~P_TYPE; h 588 libdb/bt_split.c h->flags |= P_BINTERNAL; h 589 libdb/bt_split.c mpool_put(t->bt_mp, h, MPOOL_DIRTY); h 608 libdb/bt_split.c bt_psplit(t, h, l, r, pskip, ilen) h 610 libdb/bt_split.c PAGE *h, *l, *r; h 635 libdb/bt_split.c for (nxt = off = 0, top = NEXTINDEX(h); nxt < top; ++off) { h 640 libdb/bt_split.c switch (h->flags & P_TYPE) { h 642 libdb/bt_split.c src = bi = GETBINTERNAL(h, nxt); h 647 libdb/bt_split.c src = bl = GETBLEAF(h, nxt); h 652 libdb/bt_split.c src = GETRINTERNAL(h, nxt); h 657 libdb/bt_split.c src = rl = GETRLEAF(h, nxt); h 708 libdb/bt_split.c if (F_ISSET(c, CURS_INIT) && c->pg.pgno == h->pgno) { h 737 libdb/bt_split.c switch (h->flags & P_TYPE) { h 739 libdb/bt_split.c src = bi = GETBINTERNAL(h, nxt); h 743 libdb/bt_split.c src = bl = GETBLEAF(h, nxt); h 747 libdb/bt_split.c src = GETRINTERNAL(h, nxt); h 751 libdb/bt_split.c src = rl = GETRLEAF(h, nxt); h 789 libdb/bt_split.c PAGE *h; h 791 libdb/bt_split.c if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL) h 793 libdb/bt_split.c h->flags |= P_PRESERVE; h 794 libdb/bt_split.c mpool_put(t->bt_mp, h, MPOOL_DIRTY); h 812 libdb/bt_split.c rec_total(h) h 813 libdb/bt_split.c PAGE *h; h 818 libdb/bt_split.c for (recs = 0, nxt = 0, top = NEXTINDEX(h); nxt < top; ++nxt) h 819 libdb/bt_split.c recs += GETRINTERNAL(h, nxt)->nrecs; h 162 libdb/bt_utils.c PAGE *h; h 172 libdb/bt_utils.c h = e->page; h 173 libdb/bt_utils.c if (e->index == 0 && h->prevpg == P_INVALID && !(h->flags & P_BLEAF)) h 177 libdb/bt_utils.c if (h->flags & P_BLEAF) { h 178 libdb/bt_utils.c bl = GETBLEAF(h, e->index); h 186 libdb/bt_utils.c bi = GETBINTERNAL(h, e->index); h 118 libglibc/obstack.c # define CALL_CHUNKFUN(h, size) \ h 119 libglibc/obstack.c (((h) -> use_extra_arg) \ h 120 libglibc/obstack.c ? (*(h)->chunkfun) ((h)->extra_arg, (size)) \ h 121 libglibc/obstack.c : (*(struct _obstack_chunk *(*) (long)) (h)->chunkfun) ((size))) h 123 libglibc/obstack.c # define CALL_FREEFUN(h, old_chunk) \ h 125 libglibc/obstack.c if ((h) -> use_extra_arg) \ h 126 libglibc/obstack.c (*(h)->freefun) ((h)->extra_arg, (old_chunk)); \ h 128 libglibc/obstack.c (*(void (*) (void *)) (h)->freefun) ((old_chunk)); \ h 141 libglibc/obstack.c _obstack_begin (struct obstack *h, h 167 libglibc/obstack.c h->chunkfun = (struct _obstack_chunk * (*)(void *, long)) chunkfun; h 168 libglibc/obstack.c h->freefun = (void (*) (void *, struct _obstack_chunk *)) freefun; h 169 libglibc/obstack.c h->chunk_size = size; h 170 libglibc/obstack.c h->alignment_mask = alignment - 1; h 171 libglibc/obstack.c h->use_extra_arg = 0; h 173 libglibc/obstack.c chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size); h 176 libglibc/obstack.c h->next_free = h->object_base = chunk->contents; h 177 libglibc/obstack.c h->chunk_limit = chunk->limit h 178 libglibc/obstack.c = (char *) chunk + h->chunk_size; h 181 libglibc/obstack.c h->maybe_empty_object = 0; h 182 libglibc/obstack.c h->alloc_failed = 0; h 187 libglibc/obstack.c _obstack_begin_1 (struct obstack *h, int size, int alignment, h 213 libglibc/obstack.c h->chunkfun = (struct _obstack_chunk * (*)(void *,long)) chunkfun; h 214 libglibc/obstack.c h->freefun = (void (*) (void *, struct _obstack_chunk *)) freefun; h 215 libglibc/obstack.c h->chunk_size = size; h 216 libglibc/obstack.c h->alignment_mask = alignment - 1; h 217 libglibc/obstack.c h->extra_arg = arg; h 218 libglibc/obstack.c h->use_extra_arg = 1; h 220 libglibc/obstack.c chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size); h 223 libglibc/obstack.c h->next_free = h->object_base = chunk->contents; h 224 libglibc/obstack.c h->chunk_limit = chunk->limit h 225 libglibc/obstack.c = (char *) chunk + h->chunk_size; h 228 libglibc/obstack.c h->maybe_empty_object = 0; h 229 libglibc/obstack.c h->alloc_failed = 0; h 240 libglibc/obstack.c _obstack_newchunk (struct obstack *h, int length) h 242 libglibc/obstack.c register struct _obstack_chunk *old_chunk = h->chunk; h 245 libglibc/obstack.c register long obj_size = h->next_free - h->object_base; h 251 libglibc/obstack.c new_size = (obj_size + length) + (obj_size >> 3) + h->alignment_mask + 100; h 252 libglibc/obstack.c if (new_size < h->chunk_size) h 253 libglibc/obstack.c new_size = h->chunk_size; h 256 libglibc/obstack.c new_chunk = CALL_CHUNKFUN (h, new_size); h 259 libglibc/obstack.c h->chunk = new_chunk; h 261 libglibc/obstack.c new_chunk->limit = h->chunk_limit = (char *) new_chunk + new_size; h 265 libglibc/obstack.c __INT_TO_PTR ((__PTR_TO_INT (new_chunk->contents) + h->alignment_mask) h 266 libglibc/obstack.c & ~ (h->alignment_mask)); h 271 libglibc/obstack.c if (h->alignment_mask + 1 >= DEFAULT_ALIGNMENT) h 276 libglibc/obstack.c = ((COPYING_UNIT *)h->object_base)[i]; h 286 libglibc/obstack.c object_base[i] = h->object_base[i]; h 291 libglibc/obstack.c if (h->object_base == old_chunk->contents && ! h->maybe_empty_object) h 294 libglibc/obstack.c CALL_FREEFUN (h, old_chunk); h 297 libglibc/obstack.c h->object_base = object_base; h 298 libglibc/obstack.c h->next_free = h->object_base + obj_size; h 300 libglibc/obstack.c h->maybe_empty_object = 0; h 312 libglibc/obstack.c int _obstack_allocated_p (struct obstack *h, void *obj); h 315 libglibc/obstack.c _obstack_allocated_p (struct obstack *h, void *obj) h 320 libglibc/obstack.c lp = (h)->chunk; h 338 libglibc/obstack.c obstack_free (struct obstack *h, void *obj) h 343 libglibc/obstack.c lp = h->chunk; h 350 libglibc/obstack.c CALL_FREEFUN (h, lp); h 354 libglibc/obstack.c h->maybe_empty_object = 1; h 358 libglibc/obstack.c h->object_base = h->next_free = (char *) (obj); h 359 libglibc/obstack.c h->chunk_limit = lp->limit; h 360 libglibc/obstack.c h->chunk = lp; h 374 libglibc/obstack.c _obstack_memory_used (struct obstack *h) h 379 libglibc/obstack.c for (lp = h->chunk; lp != 0; lp = lp->prev) h 197 libglibc/obstack.h #define obstack_base(h) ((void *) (h)->object_base) h 201 libglibc/obstack.h #define obstack_chunk_size(h) ((h)->chunk_size) h 205 libglibc/obstack.h #define obstack_next_free(h) ((h)->next_free) h 209 libglibc/obstack.h #define obstack_alignment_mask(h) ((h)->alignment_mask) h 212 libglibc/obstack.h #define obstack_init(h) \ h 213 libglibc/obstack.h _obstack_begin ((h), 0, 0, \ h 217 libglibc/obstack.h #define obstack_begin(h, size) \ h 218 libglibc/obstack.h _obstack_begin ((h), (size), 0, \ h 222 libglibc/obstack.h #define obstack_specify_allocation(h, size, alignment, chunkfun, freefun) \ h 223 libglibc/obstack.h _obstack_begin ((h), (size), (alignment), \ h 227 libglibc/obstack.h #define obstack_specify_allocation_with_arg(h, size, alignment, chunkfun, freefun, arg) \ h 228 libglibc/obstack.h _obstack_begin_1 ((h), (size), (alignment), \ h 232 libglibc/obstack.h #define obstack_chunkfun(h, newchunkfun) \ h 233 libglibc/obstack.h ((h) -> chunkfun = (struct _obstack_chunk *(*)(void *, long)) (newchunkfun)) h 235 libglibc/obstack.h #define obstack_freefun(h, newfreefun) \ h 236 libglibc/obstack.h ((h) -> freefun = (void (*)(void *, struct _obstack_chunk *)) (newfreefun)) h 238 libglibc/obstack.h #define obstack_1grow_fast(h,achar) (*((h)->next_free)++ = (achar)) h 240 libglibc/obstack.h #define obstack_blank_fast(h,n) ((h)->next_free += (n)) h 242 libglibc/obstack.h #define obstack_memory_used(h) _obstack_memory_used (h) h 395 libglibc/obstack.h # define obstack_object_size(h) \ h 396 libglibc/obstack.h (unsigned) ((h)->next_free - (h)->object_base) h 398 libglibc/obstack.h # define obstack_room(h) \ h 399 libglibc/obstack.h (unsigned) ((h)->chunk_limit - (h)->next_free) h 401 libglibc/obstack.h # define obstack_empty_p(h) \ h 402 libglibc/obstack.h ((h)->chunk->prev == 0 && (h)->next_free - (h)->chunk->contents == 0) h 410 libglibc/obstack.h # define obstack_make_room(h,length) \ h 411 libglibc/obstack.h ( (h)->temp = (length), \ h 412 libglibc/obstack.h (((h)->next_free + (h)->temp > (h)->chunk_limit) \ h 413 libglibc/obstack.h ? (_obstack_newchunk ((h), (h)->temp), 0) : 0)) h 415 libglibc/obstack.h # define obstack_grow(h,where,length) \ h 416 libglibc/obstack.h ( (h)->temp = (length), \ h 417 libglibc/obstack.h (((h)->next_free + (h)->temp > (h)->chunk_limit) \ h 418 libglibc/obstack.h ? (_obstack_newchunk ((h), (h)->temp), 0) : 0), \ h 419 libglibc/obstack.h memcpy ((h)->next_free, where, (h)->temp), \ h 420 libglibc/obstack.h (h)->next_free += (h)->temp) h 422 libglibc/obstack.h # define obstack_grow0(h,where,length) \ h 423 libglibc/obstack.h ( (h)->temp = (length), \ h 424 libglibc/obstack.h (((h)->next_free + (h)->temp + 1 > (h)->chunk_limit) \ h 425 libglibc/obstack.h ? (_obstack_newchunk ((h), (h)->temp + 1), 0) : 0), \ h 426 libglibc/obstack.h memcpy ((h)->next_free, where, (h)->temp), \ h 427 libglibc/obstack.h (h)->next_free += (h)->temp, \ h 428 libglibc/obstack.h *((h)->next_free)++ = 0) h 430 libglibc/obstack.h # define obstack_1grow(h,datum) \ h 431 libglibc/obstack.h ( (((h)->next_free + 1 > (h)->chunk_limit) \ h 432 libglibc/obstack.h ? (_obstack_newchunk ((h), 1), 0) : 0), \ h 433 libglibc/obstack.h obstack_1grow_fast (h, datum)) h 435 libglibc/obstack.h # define obstack_ptr_grow(h,datum) \ h 436 libglibc/obstack.h ( (((h)->next_free + sizeof (char *) > (h)->chunk_limit) \ h 437 libglibc/obstack.h ? (_obstack_newchunk ((h), sizeof (char *)), 0) : 0), \ h 438 libglibc/obstack.h obstack_ptr_grow_fast (h, datum)) h 440 libglibc/obstack.h # define obstack_int_grow(h,datum) \ h 441 libglibc/obstack.h ( (((h)->next_free + sizeof (int) > (h)->chunk_limit) \ h 442 libglibc/obstack.h ? (_obstack_newchunk ((h), sizeof (int)), 0) : 0), \ h 443 libglibc/obstack.h obstack_int_grow_fast (h, datum)) h 445 libglibc/obstack.h # define obstack_ptr_grow_fast(h,aptr) \ h 446 libglibc/obstack.h (((const void **) ((h)->next_free += sizeof (void *)))[-1] = (aptr)) h 448 libglibc/obstack.h # define obstack_int_grow_fast(h,aint) \ h 449 libglibc/obstack.h (((int *) ((h)->next_free += sizeof (int)))[-1] = (aptr)) h 451 libglibc/obstack.h # define obstack_blank(h,length) \ h 452 libglibc/obstack.h ( (h)->temp = (length), \ h 453 libglibc/obstack.h (((h)->chunk_limit - (h)->next_free < (h)->temp) \ h 454 libglibc/obstack.h ? (_obstack_newchunk ((h), (h)->temp), 0) : 0), \ h 455 libglibc/obstack.h obstack_blank_fast (h, (h)->temp)) h 457 libglibc/obstack.h # define obstack_alloc(h,length) \ h 458 libglibc/obstack.h (obstack_blank ((h), (length)), obstack_finish ((h))) h 460 libglibc/obstack.h # define obstack_copy(h,where,length) \ h 461 libglibc/obstack.h (obstack_grow ((h), (where), (length)), obstack_finish ((h))) h 463 libglibc/obstack.h # define obstack_copy0(h,where,length) \ h 464 libglibc/obstack.h (obstack_grow0 ((h), (where), (length)), obstack_finish ((h))) h 466 libglibc/obstack.h # define obstack_finish(h) \ h 467 libglibc/obstack.h ( ((h)->next_free == (h)->object_base \ h 468 libglibc/obstack.h ? (((h)->maybe_empty_object = 1), 0) \ h 470 libglibc/obstack.h (h)->temp = __PTR_TO_INT ((h)->object_base), \ h 471 libglibc/obstack.h (h)->next_free \ h 472 libglibc/obstack.h = __INT_TO_PTR ((__PTR_TO_INT ((h)->next_free)+(h)->alignment_mask) \ h 473 libglibc/obstack.h & ~ ((h)->alignment_mask)), \ h 474 libglibc/obstack.h (((h)->next_free - (char *) (h)->chunk \ h 475 libglibc/obstack.h > (h)->chunk_limit - (char *) (h)->chunk) \ h 476 libglibc/obstack.h ? ((h)->next_free = (h)->chunk_limit) : 0), \ h 477 libglibc/obstack.h (h)->object_base = (h)->next_free, \ h 478 libglibc/obstack.h (void *) __INT_TO_PTR ((h)->temp)) h 480 libglibc/obstack.h # define obstack_free(h,obj) \ h 481 libglibc/obstack.h ( (h)->temp = (char *) (obj) - (char *) (h)->chunk, \ h 482 libglibc/obstack.h (((h)->temp > 0 && (h)->temp < (h)->chunk_limit - (char *) (h)->chunk)\ h 483 libglibc/obstack.h ? (int) ((h)->next_free = (h)->object_base \ h 484 libglibc/obstack.h = (h)->temp + (char *) (h)->chunk) \ h 485 libglibc/obstack.h : (((obstack_free) ((h), (h)->temp + (char *) (h)->chunk), 0), 0)))