Searched refs:bc_vec_item (Results 1 - 10 of 10) sorted by relevance
/freebsd-12-stable/contrib/bc/src/ |
H A D | vector.c | 110 ptr = bc_vec_item(v, idx); 111 data = bc_vec_item(v, idx + n); 119 for (i = 0; i < n; ++i) v->dtor(bc_vec_item(v, idx + i)); 258 ptr = bc_vec_item(v, idx); 266 inline void* bc_vec_item(const BcVec *restrict v, size_t idx) { function 297 const BcId *id = bc_vec_item(v, mid); 321 if (*i != v->len && !strcmp(name, ((BcId*) bc_vec_item(v, *i))->name)) 342 return strcmp(name, ((BcId*) bc_vec_item(v, i))->name) ?
|
H A D | parse.c | 49 p->func = bc_vec_item(&p->prog->fns, fidx); 132 neg = (*((char*) bc_vec_item(&p->l.str, idx + 1)) == BC_LEX_NEG_CHAR); 134 bc_parse_addNum(p, bc_vec_item(&p->l.str, idx + 1 + neg)); 142 p->func = bc_vec_item(&p->prog->fns, p->fidx);
|
H A D | program.c | 146 v = bc_vec_item(bc_vec_item(&p->arrs, vidx), nidx); 172 return ((BcId*) bc_vec_item(map, i))->idx; 178 return bc_vec_item(v, idx); 229 n = bc_vec_item(v, idx); 382 BcConst *c = bc_vec_item(p->consts, bc_program_index(code, bgn)); 438 BcFunc *f = bc_vec_item(&p->fns, BC_PROG_READ); 441 BcInstPtr *ip_ptr = bc_vec_item(&p->stack, i); 479 f = bc_vec_item(&p->fns, BC_PROG_READ); 604 str = *((char**) bc_vec_item( [all...] |
H A D | lang.c | 77 BcLoc *id = bc_vec_item(&f->autos, i); 191 BcNum *dnum = bc_vec_item(d, i), *snum = bc_vec_item(s, i);
|
H A D | vm.c | 247 BcFunc *f = bc_vec_item(&vm.prog.fns, ip->func); 349 bc_args((int) vm.env_args.len - 1, bc_vec_item(&vm.env_args, 0), false); 416 free(((BcNum*) bc_vec_item(&vm.temps, i))->num); 524 BcFunc *f = bc_vec_item(fns, BC_PROG_MAIN); 525 BcInstPtr *ip = bc_vec_item(&vm.prog.stack, 0); 542 BcResult *r = (BcResult*) bc_vec_item(&vm.prog.results, i); 603 uint16_t flag = *((uint16_t*) bc_vec_item(&vm.prs.flags, i)); 880 char *path = *((char**) bc_vec_item(&vm.files, i));
|
H A D | bc_parse.c | 104 assert(func == bc_vec_item(&p->prog->fns, p->fidx)); 106 label = bc_vec_item(&func->labels, ip->idx); 125 assert(p->func == bc_vec_item(&p->prog->fns, p->fidx)); 221 p->func = bc_vec_item(&p->prog->fns, p->fidx); 223 else idx = ((BcId*) bc_vec_item(&p->prog->fn_map, idx))->idx; 761 ip = bc_vec_item(&p->exits, i); 763 while (!ip->func && i < p->exits.len) ip = bc_vec_item(&p->exits, i--);
|
H A D | history.c | 689 memcpy(bc_vec_item(&h->buf, h->pos), cbuf, clen); 835 str = *((char**) bc_vec_item(&h->history, h->history.len - 1 - h->idx));
|
H A D | library.c | 146 BclContext ctxt = *((BclContext*) bc_vec_item(&vm.ctxts, i)); 269 ptr = bc_vec_item(&ctxt->nums, idx.i);
|
/freebsd-12-stable/contrib/bc/include/ |
H A D | vector.h | 82 void* bc_vec_item(const BcVec *restrict v, size_t idx);
|
H A D | library.h | 150 #define BC_NUM(c, n) ((BcNum*) bc_vec_item(&(c)->nums, (n).i))
|
Completed in 124 milliseconds