/external/bc/include/ |
D | vector.h | 55 typedef struct BcVec { struct 61 } BcVec; typedef 63 void bc_vec_init(BcVec *restrict v, size_t esize, BcVecFree dtor); 64 void bc_vec_expand(BcVec *restrict v, size_t req); 65 void bc_vec_grow(BcVec *restrict v, size_t n); 67 void bc_vec_npop(BcVec *restrict v, size_t n); 68 void bc_vec_npopAt(BcVec *restrict v, size_t n, size_t idx); 70 void bc_vec_push(BcVec *restrict v, const void *data); 71 void bc_vec_npush(BcVec *restrict v, size_t n, const void *data); 72 void bc_vec_pushByte(BcVec *restrict v, uchar data); [all …]
|
D | program.h | 62 BcVec globals_v[BC_PROG_GLOBALS_LEN]; 68 BcVec results; 69 BcVec stack; 71 BcVec *consts; 72 BcVec *strs; 74 BcVec fns; 75 BcVec fn_map; 77 BcVec vars; 78 BcVec var_map; 80 BcVec arrs; [all …]
|
D | lang.h | 229 BcVec code; 231 BcVec labels; 232 BcVec autos; 236 BcVec strs; 237 BcVec consts; 276 BcVec v; 307 void bc_array_init(BcVec *a, bool nums); 308 void bc_array_copy(BcVec *d, const BcVec *s); 317 void bc_array_expand(BcVec *a, size_t len);
|
D | parse.h | 89 BcVec flags; 90 BcVec exits; 91 BcVec conds; 92 BcVec ops; 93 BcVec buf;
|
D | read.h | 55 BcStatus bc_read_line(BcVec *vec, const char *prompt); 57 BcStatus bc_read_chars(BcVec *vec, const char *prompt); 58 bool bc_read_buf(BcVec *vec, char *buf, size_t *buf_len);
|
D | history.h | 184 BcVec buf; 187 BcVec history; 190 BcVec extras; 240 BcStatus bc_history_line(BcHistory *h, BcVec *vec, const char *prompt);
|
D | vm.h | 331 BcVec jmp_bufs; 333 BcVec temps; 337 BcVec ctxts; 338 BcVec out; 374 BcVec files; 375 BcVec exprs; 403 BcVec env_args;
|
D | library.h | 160 BcVec nums; 161 BcVec free_nums;
|
D | lex.h | 228 BcVec str;
|
D | rand.h | 184 BcVec v;
|
/external/bc/src/ |
D | vector.c | 44 void bc_vec_grow(BcVec *restrict v, size_t n) { in bc_vec_grow() 59 void bc_vec_init(BcVec *restrict v, size_t esize, BcVecFree dtor) { in bc_vec_init() 69 void bc_vec_expand(BcVec *restrict v, size_t req) { in bc_vec_expand() 86 void bc_vec_npop(BcVec *restrict v, size_t n) { in bc_vec_npop() 103 void bc_vec_npopAt(BcVec *restrict v, size_t n, size_t idx) { in bc_vec_npopAt() 128 void bc_vec_npush(BcVec *restrict v, size_t n, const void *data) { in bc_vec_npush() 144 inline void bc_vec_push(BcVec *restrict v, const void *data) { in bc_vec_push() 148 void bc_vec_pushByte(BcVec *restrict v, uchar data) { in bc_vec_pushByte() 153 void bc_vec_pushIndex(BcVec *restrict v, size_t idx) { in bc_vec_pushIndex() 171 static void bc_vec_pushAt(BcVec *restrict v, const void *data, size_t idx) { in bc_vec_pushAt() [all …]
|
D | lang.c | 170 void bc_array_init(BcVec *a, bool nums) { in bc_array_init() 173 else bc_vec_init(a, sizeof(BcVec), bc_vec_free); in bc_array_init() 177 void bc_array_copy(BcVec *d, const BcVec *s) { in bc_array_copy() 196 void bc_array_expand(BcVec *a, size_t len) { in bc_array_expand() 212 BcVec v; in bc_array_expand() 213 assert(a->size == sizeof(BcVec) && a->dtor == bc_vec_free); in bc_array_expand()
|
D | read.c | 81 bool bc_read_buf(BcVec *vec, char *buf, size_t *buf_len) { in bc_read_buf() 108 BcStatus bc_read_chars(BcVec *vec, const char *prompt) { in bc_read_chars() 185 BcStatus bc_read_line(BcVec *vec, const char *prompt) { in bc_read_line()
|
D | program.c | 110 BcVec *v = p->globals_v + i; in bc_program_popGlobals() 136 static BcVec* bc_program_dereference(const BcProgram *p, BcVec *vec) { in bc_program_dereference() 138 BcVec *v; in bc_program_dereference() 156 BcVec *v, *map; in bc_program_search() 175 static inline BcVec* bc_program_vec(const BcProgram *p, size_t idx, BcType type) in bc_program_vec() 177 const BcVec *v = (type == BC_TYPE_VAR) ? &p->vars : &p->arrs; in bc_program_vec() 206 BcVec *v; in bc_program_num() 434 BcVec buf; in bc_program_read() 730 BcVec *v, bool push) in bc_program_assignStr() 750 BcVec *vec; in bc_program_copyToVar() [all …]
|
D | parse.c | 64 BcVec *strs = BC_IS_BC ? &p->func->strs : p->prog->strs; in bc_parse_addString() 85 BcVec *consts = &p->func->consts; in bc_parse_addNum()
|
D | vm.c | 523 BcVec *fns = &vm.prog.fns; 652 BcVec buf, buffer; 828 BcVec buf;
|
D | history.c | 1324 BcStatus bc_history_line(BcHistory *h, BcVec *vec, const char *prompt) { in bc_history_line()
|
D | num.c | 1864 BcVec stack; in bc_num_printNum()
|
/external/toybox/toys/pending/ |
D | bc.c | 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; [all …]
|