Home
last modified time | relevance | path

Searched refs:BC_ERR (Results 1 – 18 of 18) sorted by relevance

/external/bc/src/
Dbc_parse.c301 if (BC_ERR(comma)) bc_parse_err(p, BC_ERR_PARSE_TOKEN); in bc_parse_args()
383 if (BC_ERR(!(flags & BC_PARSE_ARRAY))) in bc_parse_name()
399 if (BC_ERR(p->l.t != BC_LEX_RBRACKET)) in bc_parse_name()
416 if (BC_ERR(flags & BC_PARSE_NOCALL)) in bc_parse_name()
449 if (BC_ERR(p->l.t != BC_LEX_LPAREN)) bc_parse_err(p, BC_ERR_PARSE_TOKEN); in bc_parse_noArgBuiltin()
473 if (BC_ERR(p->l.t != BC_LEX_LPAREN)) in bc_parse_builtin()
488 if (BC_ERR(p->l.t != BC_LEX_RPAREN)) in bc_parse_builtin()
509 if (BC_ERR(p->l.t != BC_LEX_LPAREN)) in bc_parse_builtin3()
521 if (BC_ERR(p->l.t != BC_LEX_COMMA)) in bc_parse_builtin3()
529 if (BC_ERR(p->l.t != BC_LEX_COMMA)) in bc_parse_builtin3()
[all …]
Dread.c85 if (BC_ERR(BC_READ_BIN_CHAR(buf[i]))) return true; in bc_read_binary()
226 if (BC_ERR(bc_read_binary(vec->v, vec->len - 1))) in bc_read_line()
252 if (BC_ERR(fd < 0)) bc_verr(BC_ERR_FATAL_FILE_ERR, path); in bc_read_file()
256 if (BC_ERR(fstat(fd, &pstat) == -1)) goto malloc_err; in bc_read_file()
259 if (BC_ERR(S_ISDIR(pstat.st_mode))) { in bc_read_file()
271 if (BC_ERR(r != size)) goto read_err; in bc_read_file()
276 if (BC_ERR(bc_read_binary(buf, size))) { in bc_read_file()
Dhistory.c421 if (BC_ERR(n <= 0)) goto err; in bc_history_readCode()
436 if (BC_ERR(n <= 0)) goto err; in bc_history_readCode()
444 if (BC_ERR(n <= 0)) goto err; in bc_history_readCode()
452 if (BC_ERR(n <= 0)) goto err; in bc_history_readCode()
467 if (BC_ERR(n < 0)) bc_vm_fatalError(BC_ERR_FATAL_IO_ERR); in bc_history_readCode()
538 if (BC_ERR(tcgetattr(STDIN_FILENO, &h->orig_termios) == -1)) in bc_history_enableRaw()
567 } while (BC_ERR(err < 0) && errno == EINTR); in bc_history_enableRaw()
571 if (BC_ERR(err < 0)) bc_vm_fatalError(BC_ERR_FATAL_IO_ERR); in bc_history_enableRaw()
590 if (BC_ERR(tcsetattr(STDIN_FILENO, TCSAFLUSH, &h->orig_termios) != -1)) in bc_history_disableRaw()
621 if (BC_ERR(buf[0] != BC_ACTION_ESC || buf[1] != '[')) return SIZE_MAX; in bc_history_cursorPos()
[all …]
Ddc_lex.c65 if (BC_ERR(!isalpha(c) && c != '_')) in dc_lex_register()
76 if (BC_ERR(l->buf[l->i - 1] == '\n')) in dc_lex_register()
132 if (BC_ERR(c == '\0' && depth)) { in dc_lex_string()
140 if (BC_ERR(c == '\0' && depth)) { in dc_lex_string()
Dvm.c279 if (BC_ERR(s == BC_STATUS_ERROR_FATAL)) {
330 if (BC_ERR(id == BC_ERR_IDX_FATAL || s == BC_STATUS_ERROR_FATAL))
333 if (BC_ERR(s == BC_STATUS_ERROR_FATAL)) vm.status = (sig_atomic_t) s;
341 if (BC_ERR(vm.status)) BC_JMP;
587 if (BC_ERR(BC_VM_MUL_OVERFLOW(n, size, res)))
594 if (BC_ERR(res >= SIZE_MAX || res < a))
607 if (BC_ERR(ptr == NULL)) {
613 if (BC_ERR(ptr == NULL)) bc_vm_fatalError(BC_ERR_FATAL_ALLOC_ERR);
627 if (BC_ERR(temp == NULL)) {
633 if (BC_ERR(temp == NULL)) bc_vm_fatalError(BC_ERR_FATAL_ALLOC_ERR);
[all …]
Dprogram.c76 if (BC_ERR(!BC_PROG_NUM(r, n))) bc_err(BC_ERR_EXEC_TYPE); in bc_program_type_num()
87 if (BC_ERR((r->t != BC_RESULT_ARRAY) != (!t))) bc_err(BC_ERR_EXEC_TYPE); in bc_program_type_match()
406 if (BC_ERR((*r)->t == BC_RESULT_VOID)) bc_err(BC_ERR_EXEC_VOID_VAL); in bc_program_operand()
436 if (BC_ERR(!BC_PROG_STACK(&p->results, idx + 2))) in bc_program_binPrep()
460 if (BC_ERR(lt == BC_RESULT_STR)) bc_err(BC_ERR_EXEC_TYPE); in bc_program_binPrep()
513 if (BC_ERR(lt >= min && lt <= BC_RESULT_ONE)) bc_err(BC_ERR_EXEC_TYPE); in bc_program_assignPrep()
542 if (BC_ERR(!BC_PROG_STACK(&p->results, idx + 1))) in bc_program_prep()
710 if (BC_ERR(vm.read_prs.l.t != BC_LEX_NLINE && in bc_program_read()
859 if (BC_ERR(!BC_PROG_STACK(&p->results, idx + 1))) in bc_program_print()
874 if (BC_ERR(pop)) bc_err(BC_ERR_EXEC_VOID_VAL); in bc_program_print()
[all …]
Ddc_parse.c189 if (BC_ERR(flags & BC_PARSE_NOREAD)) in dc_parse_token()
296 if (BC_ERR(need_expr && !have_expr)) bc_err(BC_ERR_EXEC_READ_EXPR); in dc_parse_expr()
309 if (BC_ERR(p->l.t == BC_LEX_EOF)) bc_parse_err(p, BC_ERR_PARSE_EOF); in dc_parse_parse()
Drand.c208 if (BC_ERR(nread != sizeof(ulong))) bc_vm_fatalError(BC_ERR_FATAL_IO_ERR); in bc_rand_frand()
231 if (BC_ERR(!BCRYPT_SUCCESS(s))) buf[0] = 0; in bc_rand_winrand()
421 while (BC_ERR(BC_RAND_ZERO(rng))) bc_rand_fill(rng, bc_rand_rand, NULL); in bc_rand_srand()
466 if (BC_ERR(BC_RAND_ZERO(rng))) bc_rand_srand(rng); in bc_rand_int()
538 if (BC_ERR(BC_RAND_ZERO(rng))) bc_rand_srand(rng); in bc_rand_getRands()
Dlex.c83 if (BC_ERR(!c || buf[i + 1] == '\0')) { in bc_lex_comment()
211 if (BC_ERR(!BC_LEX_NUM_CHAR(c, false, true))) in bc_lex_number()
269 if (BC_ERR(l->last == BC_LEX_EOF)) bc_lex_err(l, BC_ERR_PARSE_EOF); in bc_lex_next()
Dfile.c97 if (BC_ERR(written == -1)) in bc_file_output()
157 if (BC_ERR(s)) { in bc_file_flush()
Dbc_lex.c89 if (BC_ERR(l->str.len - 1 > 1)) in bc_lex_identifier()
120 if (BC_ERR(c == '\0') && !vm.eof && l->is_stdin) in bc_lex_string()
Dnum.c61 if (BC_ERR(BC_VM_MUL_OVERFLOW(a, b, res))) bc_err(BC_ERR_MATH_OVERFLOW); in bc_num_mulOverflow()
854 if (BC_ERR(!zero)) return true; in bc_num_nonInt()
875 if (BC_ERR(bc_num_nonInt(b, &temp))) bc_err(BC_ERR_MATH_NON_INTEGER); in bc_num_intop()
1828 if (BC_ERR(bc_num_nonInt(b, &btemp))) bc_err(BC_ERR_MATH_NON_INTEGER); in bc_num_p()
3212 if (BC_ERR(BC_NUM_NEG(n))) bc_err(BC_ERR_MATH_NEGATIVE); in bc_num_bigdig()
3213 if (BC_ERR(bc_num_cmp(n, &vm.max) >= 0)) bc_err(BC_ERR_MATH_OVERFLOW); in bc_num_bigdig()
3414 if (BC_ERR(BC_NUM_NEG(a))) bc_err(BC_ERR_MATH_NEGATIVE); in bc_num_irand()
3419 if (BC_ERR(bc_num_nonInt(a, &atemp))) bc_err(BC_ERR_MATH_NON_INTEGER); in bc_num_irand()
3576 if (BC_ERR(BC_NUM_NEG(a))) bc_err(BC_ERR_MATH_NEGATIVE); in bc_num_sqrt()
3788 if (BC_ERR(BC_NUM_ZERO(c))) bc_err(BC_ERR_MATH_DIVIDE_BY_ZERO); in bc_num_modexp()
[all …]
Dparse.c196 if (BC_ERR(vm.status)) BC_JMP; in bc_parse_reset()
Dlibrary.c110 if (BC_ERR(vm.err)) { in bcl_init()
206 if (BC_ERR(vm.err && ctxt != NULL)) { in bcl_ctxt_create()
754 if (BC_ERR(vm.err)) { in bcl_divmod()
943 if (BC_ERR(n.i >= ctxt->nums.len)) return str; in bcl_string()
Dlang.c75 if (BC_ERR(idx == aptr->idx && type == aptr->type)) { in bc_func_insert()
/external/bc/include/
Dlibrary.h127 if (BC_ERR((e) != BCL_ERROR_NONE)) { \
142 if (BC_ERR(c == NULL)) { \
157 if (BC_ERR(c == NULL)) { \
180 if (BC_ERR((n).i >= (c)->nums.len)) { \
198 if (BC_ERR((n).i >= (c)->nums.len)) { \
Dstatus.h105 #define BC_ERR(e) BC_UNLIKELY(e) macro
/external/bc/manuals/
Ddevelopment.md3725 if (BC_ERR(s)) return s;
4579 * `BC_ERR(e)`
4584 `BC_ERR` is the same as `BC_UNLIKELY`, and `BC_NO_ERR` is the same as