Lines Matching refs:BcVec
133 typedef struct BcVec { struct
137 } BcVec; argument
263 BcVec code;
264 BcVec labels;
265 BcVec autos;
268 BcVec strs;
269 BcVec consts;
298 BcVec v;
318 void bc_array_expand(BcVec *a, size_t len);
415 BcVec str;
445 BcVec flags;
446 BcVec exits;
447 BcVec conds;
448 BcVec ops;
552 BcVec results;
553 BcVec stack;
555 BcVec fns;
556 BcVec fn_map;
558 BcVec vars;
559 BcVec var_map;
561 BcVec arrs;
562 BcVec arr_map;
866 static void bc_vec_grow(BcVec *v, unsigned long n) { in bc_vec_grow()
873 void bc_vec_init(BcVec *v, size_t esize, BcVecFree dtor) { in bc_vec_init()
881 void bc_vec_expand(BcVec *v, size_t req) { in bc_vec_expand()
888 void bc_vec_npop(BcVec *v, size_t n) { in bc_vec_npop()
896 void bc_vec_npush(BcVec *v, size_t n, void *data) { in bc_vec_npush()
902 void bc_vec_push(BcVec *v, void *data) { in bc_vec_push()
906 void bc_vec_pushByte(BcVec *v, uchar data) { in bc_vec_pushByte()
910 void bc_vec_pushIndex(BcVec *v, size_t idx) { in bc_vec_pushIndex()
924 static void bc_vec_pushAt(BcVec *v, void *data, size_t idx) { in bc_vec_pushAt()
940 void bc_vec_string(BcVec *v, size_t len, char *str) { in bc_vec_string()
950 void bc_vec_concat(BcVec *v, char *str) { in bc_vec_concat()
961 void bc_vec_empty(BcVec *v) { in bc_vec_empty()
966 void* bc_vec_item(BcVec *v, size_t idx) { in bc_vec_item()
970 void* bc_vec_item_rev(BcVec *v, size_t idx) { in bc_vec_item_rev()
975 BcVec *v = (BcVec*) vec; in bc_vec_free()
980 static size_t bc_map_find(BcVec *v, struct str_len *ptr) { in bc_map_find()
998 int bc_map_insert(BcVec *v, struct str_len *ptr, size_t *i) { in bc_map_insert()
1009 size_t bc_map_index(BcVec *v, struct str_len *ptr) { in bc_map_index()
1025 BcStatus bc_read_chars(BcVec *vec, char *prompt) { in bc_read_chars()
1072 BcStatus bc_read_line(BcVec *vec, char *prompt) { in bc_read_line()
1956 BcVec stack; in bc_num_printNum()
2388 void bc_array_init(BcVec *a, int nums) { in bc_array_init()
2390 else bc_vec_init(a, sizeof(BcVec), bc_vec_free); in bc_array_init()
2394 void bc_array_copy(BcVec *d, BcVec *s) { in bc_array_copy()
2408 void bc_array_expand(BcVec *a, size_t len) { in bc_array_expand()
2418 BcVec v; in bc_array_expand()
2990 BcVec *v = inst == BC_INST_NUM ? &f->consts : &f->strs; in bc_parse_addId()
4474 BcVec *v; in bc_program_str()
4516 static BcVec* bc_program_search(BcProgram *p, char *id, BcType type) { in bc_program_search()
4519 BcVec *v, *map; in bc_program_search()
4580 BcVec *v; in bc_program_num()
4738 BcVec buf; in bc_program_read()
4966 BcVec *vec; in bc_program_copyToVar()
4975 BcVec *v = bc_program_search(p, ptr->d.id.str, t); in bc_program_copyToVar()
4995 bc_array_copy(&r.d.v, (BcVec *)n); in bc_program_copyToVar()
5144 BcVec *v; in bc_program_call()
5227 BcVec *v; in bc_program_return()
5278 val = (unsigned long) ((BcVec*) num)->len; in bc_program_builtin()
5341 bc_vec_init(&p->vars, sizeof(BcVec), bc_vec_free); in bc_program_init()
5344 bc_vec_init(&p->arrs, sizeof(BcVec), bc_vec_free); in bc_program_init()
5735 BcVec buf, buffer; in bc_vm_stdin()