Lines Matching refs:BcStatus

50 typedef enum BcStatus {  enum
59 } BcStatus; typedef
162 typedef BcStatus (*BcNumBinaryOp)(BcNum*, BcNum*, BcNum*, size_t);
173 BcStatus bc_num_ulong(BcNum *n, unsigned long *result);
176 BcStatus bc_num_add(BcNum *a, BcNum *b, BcNum *c, size_t scale);
177 BcStatus bc_num_sub(BcNum *a, BcNum *b, BcNum *c, size_t scale);
178 BcStatus bc_num_mul(BcNum *a, BcNum *b, BcNum *c, size_t scale);
179 BcStatus bc_num_div(BcNum *a, BcNum *b, BcNum *c, size_t scale);
180 BcStatus bc_num_mod(BcNum *a, BcNum *b, BcNum *c, size_t scale);
181 BcStatus bc_num_pow(BcNum *a, BcNum *b, BcNum *c, size_t scale);
182 BcStatus bc_num_sqrt(BcNum *a, BcNum *b, size_t scale);
183 BcStatus bc_num_divmod(BcNum *a, BcNum *b, BcNum *c, BcNum *d, size_t scale);
474 BcStatus bc_lex_token(BcLex *l);
537 BcStatus bc_parse_parse(BcParse *p);
538 BcStatus bc_parse_expr_status(BcParse *p, uint8_t flags, BcParseNext next);
583 BcStatus bc_program_reset(BcProgram *p, BcStatus s);
584 BcStatus bc_program_exec(BcProgram *p);
612 BcStatus bc_vm_posixError(BcError e, size_t line, ...);
614 BcStatus bc_vm_error(BcError e, size_t line, ...);
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()
1073 BcStatus s; in bc_read_line()
1087 BcStatus bc_read_file(char *path, char **buf) { in bc_read_file()
1158 static BcStatus bc_num_subArrays(signed char *a, signed char *b, size_t len) in bc_num_subArrays()
1285 static BcStatus bc_num_shift(BcNum *n, size_t places) { in bc_num_shift()
1302 static BcStatus bc_num_inv(BcNum *a, BcNum *b, size_t scale) { in bc_num_inv()
1321 static BcStatus bc_num_a(BcNum *a, BcNum *b, BcNum *c, size_t sub) { in bc_num_a()
1390 static BcStatus bc_num_s(BcNum *a, BcNum *b, BcNum *c, size_t sub) { in bc_num_s()
1392 BcStatus s; in bc_num_s()
1453 static BcStatus bc_num_k(BcNum *a, BcNum *b, BcNum *c) { in bc_num_k()
1455 BcStatus s; in bc_num_k()
1558 static BcStatus bc_num_m(BcNum *a, BcNum *b, BcNum *c, size_t scale) { in bc_num_m()
1560 BcStatus s; in bc_num_m()
1598 static BcStatus bc_num_d(BcNum *a, BcNum *b, BcNum *c, size_t scale) { in bc_num_d()
1600 BcStatus s = BC_STATUS_SUCCESS; in bc_num_d()
1661 static BcStatus bc_num_r(BcNum *a, BcNum *b, BcNum *c, BcNum *d, size_t scale, in bc_num_r()
1664 BcStatus s; in bc_num_r()
1696 static BcStatus bc_num_rem(BcNum *a, BcNum *b, BcNum *c, size_t scale) { in bc_num_rem()
1698 BcStatus s; in bc_num_rem()
1709 static BcStatus bc_num_p(BcNum *a, BcNum *b, BcNum *c, size_t scale) { in bc_num_p()
1711 BcStatus s = BC_STATUS_SUCCESS; in bc_num_p()
1791 static BcStatus bc_num_binary(BcNum *a, BcNum *b, BcNum *c, size_t scale, in bc_num_binary()
1794 BcStatus s; in bc_num_binary()
1834 static BcStatus bc_num_parseBase(BcNum *n, char *val, in bc_num_parseBase()
1837 BcStatus s = BC_STATUS_SUCCESS; in bc_num_parseBase()
1950 static BcStatus bc_num_printNum(BcNum *n, BcNum *base, in bc_num_printNum()
1953 BcStatus s; in bc_num_printNum()
2013 static BcStatus bc_num_printBase(BcNum *n, BcNum *base, size_t base_t) { in bc_num_printBase()
2015 BcStatus s; in bc_num_printBase()
2082 BcStatus bc_num_parse(BcNum *n, char *val, in bc_num_parse()
2085 BcStatus s = BC_STATUS_SUCCESS; in bc_num_parse()
2120 BcStatus bc_num_ulong(BcNum *n, unsigned long *result) { in bc_num_ulong()
2173 BcStatus bc_num_add(BcNum *a, BcNum *b, BcNum *c, size_t scale) { in bc_num_add()
2178 BcStatus bc_num_sub(BcNum *a, BcNum *b, BcNum *c, size_t scale) { in bc_num_sub()
2183 BcStatus bc_num_mul(BcNum *a, BcNum *b, BcNum *c, size_t scale) { in bc_num_mul()
2187 BcStatus bc_num_div(BcNum *a, BcNum *b, BcNum *c, size_t scale) { in bc_num_div()
2191 BcStatus bc_num_mod(BcNum *a, BcNum *b, BcNum *c, size_t scale) { in bc_num_mod()
2195 BcStatus bc_num_pow(BcNum *a, BcNum *b, BcNum *c, size_t scale) { in bc_num_pow()
2199 BcStatus bc_num_sqrt(BcNum *a, BcNum *b, size_t scale) { in bc_num_sqrt()
2201 BcStatus s = BC_STATUS_SUCCESS; in bc_num_sqrt()
2300 BcStatus bc_num_divmod(BcNum *a, BcNum *b, BcNum *c, BcNum *d, size_t scale) { in bc_num_divmod()
2302 BcStatus s; in bc_num_divmod()
2337 BcStatus bc_func_insert(BcFunc *f, char *name, BcType type, size_t line) { in bc_func_insert()
2459 BcStatus bc_lex_invalidChar(BcLex *l, char c) { in bc_lex_invalidChar()
2469 BcStatus bc_lex_comment(BcLex *l) { in bc_lex_comment()
2502 BcStatus bc_lex_number(BcLex *l, char start) { in bc_lex_number()
2550 BcStatus bc_lex_name(BcLex *l) { in bc_lex_name()
2580 BcStatus bc_lex_next(BcLex *l) { in bc_lex_next()
2582 BcStatus s; in bc_lex_next()
2602 BcStatus bc_lex_text(BcLex *l, char *text) { in bc_lex_text()
2610 static BcStatus bc_lex_identifier(BcLex *l) { in bc_lex_identifier()
2612 BcStatus s; in bc_lex_identifier()
2644 static BcStatus bc_lex_string(BcLex *l) { in bc_lex_string()
2680 BcStatus bc_lex_token(BcLex *l) { in bc_lex_token()
2682 BcStatus s = BC_STATUS_SUCCESS; in bc_lex_token()
2998 BcStatus bc_parse_text(BcParse *p, char *text) { in bc_parse_text()
3004 BcStatus bc_parse_reset(BcParse *p, BcStatus s) { in bc_parse_reset()
3047 static BcStatus bc_parse_else(BcParse *p);
3048 static BcStatus bc_parse_stmt(BcParse *p);
3049 static BcStatus bc_parse_expr_err(BcParse *p, uint8_t flags, BcParseNext next);
3156 static BcStatus bc_parse_rightParen(BcParse *p, size_t ops_bgn, size_t *nexs) { in bc_parse_rightParen()
3177 static BcStatus bc_parse_params(BcParse *p, uint8_t flags) { in bc_parse_params()
3179 BcStatus s; in bc_parse_params()
3206 static BcStatus bc_parse_call(BcParse *p, char *name, uint8_t flags) { in bc_parse_call()
3208 BcStatus s; in bc_parse_call()
3239 static BcStatus bc_parse_name(BcParse *p, BcInst *type, uint8_t flags) { in bc_parse_name()
3241 BcStatus s; in bc_parse_name()
3305 static BcStatus bc_parse_read(BcParse *p) { in bc_parse_read()
3307 BcStatus s; in bc_parse_read()
3322 static BcStatus bc_parse_builtin(BcParse *p, BcLexType type, in bc_parse_builtin()
3325 BcStatus s; in bc_parse_builtin()
3348 static BcStatus bc_parse_scale(BcParse *p, BcInst *type, uint8_t flags) { in bc_parse_scale()
3350 BcStatus s; in bc_parse_scale()
3376 static BcStatus bc_parse_incdec(BcParse *p, BcInst *prev, in bc_parse_incdec()
3379 BcStatus s; in bc_parse_incdec()
3425 static BcStatus bc_parse_minus(BcParse *p, BcInst *prev, size_t ops_bgn, in bc_parse_minus()
3428 BcStatus s; in bc_parse_minus()
3445 static BcStatus bc_parse_str(BcParse *p, char inst) { in bc_parse_str()
3451 static BcStatus bc_parse_print(BcParse *p) { in bc_parse_print()
3453 BcStatus s; in bc_parse_print()
3491 static BcStatus bc_parse_return(BcParse *p) { in bc_parse_return()
3493 BcStatus s; in bc_parse_return()
3532 static BcStatus bc_parse_endBody(BcParse *p, int brace) { in bc_parse_endBody()
3534 BcStatus s = BC_STATUS_SUCCESS; in bc_parse_endBody()
3620 static BcStatus bc_parse_if(BcParse *p) { in bc_parse_if()
3622 BcStatus s; in bc_parse_if()
3648 static BcStatus bc_parse_else(BcParse *p) { in bc_parse_else()
3665 static BcStatus bc_parse_while(BcParse *p) { in bc_parse_while()
3667 BcStatus s; in bc_parse_while()
3695 static BcStatus bc_parse_for(BcParse *p) { in bc_parse_for()
3697 BcStatus s; in bc_parse_for()
3770 static BcStatus bc_parse_loopExit(BcParse *p, BcLexType type) { in bc_parse_loopExit()
3798 static BcStatus bc_parse_func(BcParse *p) { in bc_parse_func()
3800 BcStatus s; in bc_parse_func()
3889 static BcStatus bc_parse_auto(BcParse *p) { in bc_parse_auto()
3891 BcStatus s; in bc_parse_auto()
3948 static BcStatus bc_parse_body(BcParse *p, int brace) { in bc_parse_body()
3950 BcStatus s = BC_STATUS_SUCCESS; in bc_parse_body()
3980 static BcStatus bc_parse_stmt(BcParse *p) { in bc_parse_stmt()
3982 BcStatus s = BC_STATUS_SUCCESS; in bc_parse_stmt()
4152 BcStatus bc_parse_parse(BcParse *p) { in bc_parse_parse()
4154 BcStatus s; in bc_parse_parse()
4168 static BcStatus bc_parse_expr_err(BcParse *p, uint8_t flags, BcParseNext next) { in bc_parse_expr_err()
4169 BcStatus s = BC_STATUS_SUCCESS; in bc_parse_expr_err()
4437 BcStatus bc_parse_expr_status(BcParse *p, uint8_t flags, BcParseNext next) { in bc_parse_expr_status()
4439 BcStatus s = bc_parse_expr_err(p, flags, next); in bc_parse_expr_status()
4446 static BcStatus bc_program_type_num(BcResult *r, BcNum *n) { in bc_program_type_num()
4451 static BcStatus bc_program_type_match(BcResult *r, BcType t) { in bc_program_type_match()
4527 static BcStatus bc_program_num(BcProgram *p, BcResult *r, BcNum **num) { in bc_program_num()
4529 BcStatus s = BC_STATUS_SUCCESS; in bc_program_num()
4606 static BcStatus bc_program_operand(BcProgram *p, BcResult **r, in bc_program_operand()
4615 static BcStatus bc_program_binPrep(BcProgram *p, BcResult **l, BcNum **ln, in bc_program_binPrep()
4618 BcStatus s; in bc_program_binPrep()
4638 static BcStatus bc_program_binOpPrep(BcProgram *p, BcResult **l, BcNum **ln, in bc_program_binOpPrep()
4641 BcStatus s; in bc_program_binOpPrep()
4652 static BcStatus bc_program_assignPrep(BcProgram *p, BcResult **l, BcNum **ln, in bc_program_assignPrep()
4655 BcStatus s; in bc_program_assignPrep()
4681 static BcStatus bc_program_prep(BcProgram *p, BcResult **r, BcNum **n) { in bc_program_prep()
4683 BcStatus s; in bc_program_prep()
4697 static BcStatus bc_program_op(BcProgram *p, uchar inst) { in bc_program_op()
4699 BcStatus s; in bc_program_op()
4719 static BcStatus bc_program_read(BcProgram *p) { in bc_program_read()
4721 BcStatus s; in bc_program_read()
4801 static BcStatus bc_program_print(BcProgram *p, uchar inst, size_t idx) { in bc_program_print()
4803 BcStatus s = BC_STATUS_SUCCESS; in bc_program_print()
4862 static BcStatus bc_program_unary(BcProgram *p, uchar inst) { in bc_program_unary()
4864 BcStatus s; in bc_program_unary()
4878 static BcStatus bc_program_logical(BcProgram *p, uchar inst) { in bc_program_logical()
4880 BcStatus s; in bc_program_logical()
4945 static BcStatus bc_program_copyToVar(BcProgram *p, char *name, in bc_program_copyToVar()
4948 BcStatus s = BC_STATUS_SUCCESS; in bc_program_copyToVar()
4988 static BcStatus bc_program_assign(BcProgram *p, uchar inst) { in bc_program_assign()
4990 BcStatus s; in bc_program_assign()
5041 static BcStatus bc_program_pushVar(BcProgram *p, char *code, size_t *bgn) { in bc_program_pushVar()
5043 BcStatus s = BC_STATUS_SUCCESS; in bc_program_pushVar()
5055 static BcStatus bc_program_pushArray(BcProgram *p, char *code, in bc_program_pushArray()
5058 BcStatus s = BC_STATUS_SUCCESS; in bc_program_pushArray()
5092 static BcStatus bc_program_incdec(BcProgram *p, uchar inst) { in bc_program_incdec()
5094 BcStatus s; in bc_program_incdec()
5121 static BcStatus bc_program_call(BcProgram *p, char *code, in bc_program_call()
5124 BcStatus s = BC_STATUS_SUCCESS; in bc_program_call()
5184 static BcStatus bc_program_return(BcProgram *p, uchar inst) { in bc_program_return()
5186 BcStatus s; in bc_program_return()
5240 static BcStatus bc_program_builtin(BcProgram *p, uchar inst) { in bc_program_builtin()
5242 BcStatus s; in bc_program_builtin()
5363 BcStatus bc_program_reset(BcProgram *p, BcStatus s) { in bc_program_reset()
5391 BcStatus bc_program_exec(BcProgram *p) { in bc_program_exec()
5393 BcStatus s = BC_STATUS_SUCCESS; in bc_program_exec()
5624 BcStatus bc_vm_error(BcError e, size_t line, ...) { in bc_vm_error()
5635 BcStatus bc_vm_posixError(BcError e, size_t line, ...) { in bc_vm_posixError()
5667 static BcStatus bc_vm_process(char *text, int is_stdin) { in bc_vm_process()
5669 BcStatus s; in bc_vm_process()
5690 static BcStatus bc_vm_file(char *file) { in bc_vm_file()
5692 BcStatus s; in bc_vm_file()
5710 static BcStatus bc_vm_stdin(void) { in bc_vm_stdin()
5712 BcStatus s = BC_STATUS_SUCCESS; in bc_vm_stdin()
5790 BcStatus s = 0; in bc_main()