Lines Matching defs:code

263   BcVec code;
425 #define bc_parse_push(p, i) (bc_vec_pushByte(&(p)->func->code, i))
2359 bc_vec_init(&f->code, sizeof(uchar), NULL);
2370 bc_vec_npop(&f->code, f->code.len);
2381 bc_vec_free(&f->code);
2979 bc_vec_npush(&p->func->code, strlen(name), name);
2984 bc_vec_pushIndex(&p->func->code, idx);
3099 *label = func->code.len;
3109 bc_parse_createLabel(p, p->func->code.len);
3735 bc_parse_createLabel(p, p->func->code.len);
3774 bc_parse_createLabel(p, p->func->code.len);
4486 static size_t bc_program_index(char *code, size_t *bgn) {
4488 uchar amt = (uchar) code[(*bgn)++], i = 0;
4492 size_t temp = ((size_t) ((int) (uchar) code[*bgn]) & UCHAR_MAX);
4499 static char *bc_program_name(char *code, size_t *bgn) {
4504 char *str = code + *bgn, *ptr = strchr(str, UCHAR_MAX);
4508 for (i = 0; (c = (uchar) code[(*bgn)++]) && c != UCHAR_MAX; ++i)
4752 bc_vec_npop(&f->code, f->code.len);
4780 bc_vec_pushByte(&f->code, BC_INST_RET);
5057 static BcStatus bc_program_pushVar(BcProgram *p, char *code, size_t *bgn) {
5061 char *name = bc_program_name(code, bgn);
5071 static BcStatus bc_program_pushArray(BcProgram *p, char *code,
5078 r.d.id.str = bc_program_name(code, bgn);
5137 static BcStatus bc_program_call(BcProgram *p, char *code,
5142 size_t i, nparams = bc_program_index(code, idx);
5150 ip.func = bc_program_index(code, idx);
5153 if (!f->code.len) return bc_vm_verr(BC_ERROR_EXEC_UNDEF_FUNC, f->name);
5389 ip->idx = f->code.len;
5414 char *code = func->code.v;
5418 while (!s && ip->idx < func->code.len) {
5420 uchar inst = (uchar) code[(ip->idx)++];
5435 idx = bc_program_index(code, &ip->idx);
5443 s = bc_program_call(p, code, &ip->idx);
5498 s = bc_program_pushVar(p, code, &ip->idx);
5505 s = bc_program_pushArray(p, code, &ip->idx, inst);
5529 r.d.id.len = bc_program_index(code, &ip->idx);
5551 r.d.id.len = bc_program_index(code, &ip->idx);
5592 code = func->code.v;
5671 // constants, and code. This is an idea from busybox.
5673 !prog->results.len && ip->idx == f->code.len)
5678 bc_vec_npop(&f->code, f->code.len);