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;
551 BcVec results;
552 BcVec stack;
554 BcVec fns;
555 BcVec fn_map;
557 BcVec vars;
558 BcVec var_map;
560 BcVec arrs;
561 BcVec arr_map;
865 static void bc_vec_grow(BcVec *v, unsigned long n) { in bc_vec_grow()
872 void bc_vec_init(BcVec *v, size_t esize, BcVecFree dtor) { in bc_vec_init()
880 void bc_vec_expand(BcVec *v, size_t req) { in bc_vec_expand()
887 void bc_vec_npop(BcVec *v, size_t n) { in bc_vec_npop()
895 void bc_vec_npush(BcVec *v, size_t n, void *data) { in bc_vec_npush()
901 void bc_vec_push(BcVec *v, void *data) { in bc_vec_push()
905 void bc_vec_pushByte(BcVec *v, uchar data) { in bc_vec_pushByte()
909 void bc_vec_pushIndex(BcVec *v, size_t idx) { in bc_vec_pushIndex()
923 static void bc_vec_pushAt(BcVec *v, void *data, size_t idx) { in bc_vec_pushAt()
939 void bc_vec_string(BcVec *v, size_t len, char *str) { in bc_vec_string()
949 void bc_vec_concat(BcVec *v, char *str) { in bc_vec_concat()
960 void bc_vec_empty(BcVec *v) { in bc_vec_empty()
965 void* bc_vec_item(BcVec *v, size_t idx) { in bc_vec_item()
969 void* bc_vec_item_rev(BcVec *v, size_t idx) { in bc_vec_item_rev()
974 BcVec *v = (BcVec*) vec; in bc_vec_free()
979 static size_t bc_map_find(BcVec *v, struct str_len *ptr) { in bc_map_find()
997 int bc_map_insert(BcVec *v, struct str_len *ptr, size_t *i) { in bc_map_insert()
1008 size_t bc_map_index(BcVec *v, struct str_len *ptr) { in bc_map_index()
1024 BcStatus bc_read_chars(BcVec *vec, char *prompt) { in bc_read_chars()
1071 BcStatus bc_read_line(BcVec *vec, char *prompt) { in bc_read_line()
1954 BcVec stack; in bc_num_printNum()
2386 void bc_array_init(BcVec *a, int nums) { in bc_array_init()
2388 else bc_vec_init(a, sizeof(BcVec), bc_vec_free); in bc_array_init()
2392 void bc_array_copy(BcVec *d, BcVec *s) { in bc_array_copy()
2406 void bc_array_expand(BcVec *a, size_t len) { in bc_array_expand()
2416 BcVec v; in bc_array_expand()
2988 BcVec *v = inst == BC_INST_NUM ? &f->consts : &f->strs; in bc_parse_addId()
4459 BcVec *v; in bc_program_str()
4501 static BcVec* bc_program_search(BcProgram *p, char *id, BcType type) { in bc_program_search()
4504 BcVec *v, *map; in bc_program_search()
4565 BcVec *v; in bc_program_num()
4723 BcVec buf; in bc_program_read()
4950 BcVec *vec; in bc_program_copyToVar()
4959 BcVec *v = bc_program_search(p, ptr->d.id.str, t); in bc_program_copyToVar()
4979 bc_array_copy(&r.d.v, (BcVec *)n); in bc_program_copyToVar()
5128 BcVec *v; in bc_program_call()
5211 BcVec *v; in bc_program_return()
5262 val = (unsigned long) ((BcVec*) num)->len; in bc_program_builtin()
5325 bc_vec_init(&p->vars, sizeof(BcVec), bc_vec_free); in bc_program_init()
5328 bc_vec_init(&p->arrs, sizeof(BcVec), bc_vec_free); in bc_program_init()
5713 BcVec buf, buffer; in bc_vm_stdin()