Home
last modified time | relevance | path

Searched refs:bc_vec_item (Results 1 – 10 of 10) sorted by relevance

/freebsd-13.1/contrib/bc/src/
H A Dvector.c131 ptr = bc_vec_item(v, idx); in bc_vec_npopAt()
132 data = bc_vec_item(v, idx + n); in bc_vec_npopAt()
142 for (i = 0; i < n; ++i) d(bc_vec_item(v, idx + i)); in bc_vec_npopAt()
310 ptr = bc_vec_item(v, idx); in bc_vec_replaceAt()
318 inline void* bc_vec_item(const BcVec *restrict v, size_t idx) { in bc_vec_item() function
360 const BcId *id = bc_vec_item(v, mid); in bc_map_find()
385 if (*i != v->len && !strcmp(name, ((BcId*) bc_vec_item(v, *i))->name)) in bc_map_insert()
414 return strcmp(name, ((BcId*) bc_vec_item(v, i))->name) ? in bc_map_index()
424 BcId* id = (BcId*) bc_vec_item(v, i); in bc_map_name()
544 s = bc_vec_item(v, 0); in bc_slabvec_clear()
[all …]
H A Dprogram.c121 BcFunc *f = bc_vec_item(&p->fns, n->rdx); in bc_program_string()
188 v = bc_vec_item(bc_vec_item(&p->arrs, vidx), nidx); in bc_program_dereference()
227 f = bc_vec_item(&p->fns, fidx); in bc_program_addString()
273 return bc_vec_item(v, idx); in bc_program_vec()
358 n = bc_vec_item(v, idx); in bc_program_num()
1630 f = bc_vec_item(&p->fns, ip.func); in bc_program_call()
1685 a = bc_vec_item(&f->autos, i); in bc_program_call()
1738 f = bc_vec_item(&p->fns, ip->func); in bc_program_return()
2308 f = bc_vec_item(&p->fns, fidx); in bc_program_execStr()
2385 f = bc_vec_item(&p->fns, fidx); in bc_program_execStr()
[all …]
H A Dparse.c49 p->func = bc_vec_item(&p->prog->fns, fidx); in bc_parse_updateFunc()
144 neg = (*((char*) bc_vec_item(&p->l.str, idx + 1)) == BC_LEX_NEG_CHAR); in bc_parse_number()
147 bc_parse_addNum(p, bc_vec_item(&p->l.str, idx + 1 + neg)); in bc_parse_number()
158 p->func = bc_vec_item(&p->prog->fns, p->fidx); in bc_parse_text()
H A Dlang.c72 BcAuto *aptr = bc_vec_item(&f->autos, i); in bc_func_insert()
203 dnum = bc_vec_item(d, i); in bc_array_copy()
204 snum = bc_vec_item(s, i); in bc_array_copy()
H A Dvm.c309 BcFunc *f = bc_vec_item(&vm.prog.fns, ip->func);
475 bc_args((int) vm.env_args.len - 1, bc_vec_item(&vm.env_args, 0), false);
756 BcFunc *f = bc_vec_item(fns, BC_PROG_MAIN);
757 BcInstPtr *ip = bc_vec_item(&vm.prog.stack, 0);
782 BcResult *r = (BcResult*) bc_vec_item(&vm.prog.results, i);
1208 char *path = *((char**) bc_vec_item(&vm.files, i));
H A Dbc_parse.c159 assert(func == bc_vec_item(&p->prog->fns, p->fidx)); in bc_parse_setLabel()
162 label = bc_vec_item(&func->labels, ip->idx); in bc_parse_setLabel()
209 assert(p->func == bc_vec_item(&p->prog->fns, p->fidx)); in bc_parse_createExitLabel()
355 p->func = bc_vec_item(&p->prog->fns, p->fidx); in bc_parse_call()
358 else idx = ((BcId*) bc_vec_item(&p->prog->fn_map, idx))->idx; in bc_parse_call()
1027 uint16_t flag = *((uint16_t*) bc_vec_item(&p->flags, i)); in bc_parse_endif()
1264 ip = bc_vec_item(&p->exits, i); in bc_parse_loopExit()
1268 while (!ip->func && i < p->exits.len) ip = bc_vec_item(&p->exits, i--); in bc_parse_loopExit()
H A Dhistory.c811 memcpy(bc_vec_item(&h->buf, h->pos), cbuf, clen); in bc_history_edit_insert()
990 str = *((char**) bc_vec_item(&h->history, h->history.len - 1 - h->idx)); in bc_history_edit_next()
H A Dlibrary.c165 BclContext ctxt = *((BclContext*) bc_vec_item(&vm.ctxts, i)); in bcl_free()
307 ptr = bc_vec_item(&ctxt->nums, idx.i); in bcl_num_insert()
/freebsd-13.1/contrib/bc/include/
H A Dlibrary.h210 #define BC_NUM(c, n) ((BcNum*) bc_vec_item(&(c)->nums, (n).i))
H A Dvector.h282 void* bc_vec_item(const BcVec *restrict v, size_t idx);