2018-12-26 |
Denys Vlasenko | bc: fix handling of comment/string interactions while... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-25 |
Denys Vlasenko | bc: fix interactive handling of comments in strings... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-25 |
Denys Vlasenko | bc: simplify input pointer manipulation while lexing Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-25 |
Denys Vlasenko | bc: fold struct BcLex into BcParse Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-25 |
Denys Vlasenko | bc: move BcLex::lex member to be the first in struct... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-25 |
Denys Vlasenko | bc: rename some members and macros, no code changes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-25 |
Denys Vlasenko | bc: shorten error messages Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-25 |
Denys Vlasenko | dc: add two tests Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-25 |
Denys Vlasenko | bc: stop passing a pointer to G.prs down the call chain Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-25 |
Denys Vlasenko | bc: make zbc_program_read() and zdc_program_execStr... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-25 |
Denys Vlasenko | bc: fix interactive read() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-25 |
Denys Vlasenko | bc: add code to detect errors like "print 1 print 2" Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-25 |
Denys Vlasenko | bc: allow {break} and {continue} (allow RBRACE to terminate... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-25 |
Denys Vlasenko | bc: shrink parsing code a bit more, disallow "auto... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-25 |
Denys Vlasenko | bc: simplify bc_parse_expr_empty_ok() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-25 |
Denys Vlasenko | bc: simplify bc_parse_expr_empty_ok() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-25 |
Denys Vlasenko | bc: simplify bc_parse_expr_empty_ok() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-24 |
Denys Vlasenko | bc: BC_RESULT_ONE is bc-specific Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-24 |
Denys Vlasenko | bc: partially deinline BC_PARSE_LEAF() macro Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-24 |
Denys Vlasenko | bc: rename lexer variables, use smallints where appropriate Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-24 |
Denys Vlasenko | bc: fix "bc -s" only warning on "define f()<newline... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-24 |
Denys Vlasenko | bc: POSIX error/warn functions can be 'z' functions too Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-24 |
Denys Vlasenko | bc: remove unnecessary NULL initializers Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-24 |
Denys Vlasenko | bc: move relational LEXs before math LEXs - shorten... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-24 |
Denys Vlasenko | bc: offset dc_LEX_to_INST[] start Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-24 |
Denys Vlasenko | bc: rename BC_LEX_NLINE/WHITESPACE/STR/NAME/NUMBER... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-24 |
Denys Vlasenko | bc: separate many bc and dc LEX constants Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-24 |
Denys Vlasenko | bc: rename several BC_LEX_OPs to XC_LEX_OPs. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-24 |
Denys Vlasenko | bc: move BC_LEX_OP_INC/DEC to the end of operation... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-24 |
Denys Vlasenko | bc: rename BC_LEXs to XC_LEXs for common constants... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-24 |
Denys Vlasenko | bc: move functions/macros around, no code changes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-24 |
Denys Vlasenko | bc: rename common INST constants to XC_, dc-specific... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-24 |
Denys Vlasenko | dc: without -x, do not parse extended regs: 's p' means... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-24 |
Denys Vlasenko | bc: fix incorrect bit in BC_PARSE_EXPRS_BITS: 'limits... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-23 |
Denys Vlasenko | bc: for "dc only" remove handling of LAST, move OBASE... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-22 |
Denys Vlasenko | bc: fix empty lines in dc generating "bad token" message Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-22 |
Denys Vlasenko | bc: shrink modular exponentiation code Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-22 |
Denys Vlasenko | bc: do not yet allow 2^2.1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-22 |
Denys Vlasenko | bc: avoid having to twiddle b->neg in zbc_num_p() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-22 |
Denys Vlasenko | bc: do not disallow powers to N.0000 degree - it's... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-22 |
Denys Vlasenko | bc: shrink zbc_num_ulong() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-22 |
Denys Vlasenko | bc: make long-running dc drop data it does not need... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-22 |
Denys Vlasenko | bc: unbreak "z function" macro machinery Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-22 |
Denys Vlasenko | dc: unbreak interactive mode - was trying to get next... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-22 |
Denys Vlasenko | bc: move zbc_lex_next() out of zdc_parse_string() and... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-22 |
Denys Vlasenko | bc: shorten sanity-check code Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-22 |
Denys Vlasenko | bc: fold single-callsite functions into callers, commonalize... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-22 |
Denys Vlasenko | bc: zcommon_parse_expr() has only one user, fold it in Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-22 |
Denys Vlasenko | bc: zcommon_parse_expr() lost its flags argument Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-22 |
Denys Vlasenko | bc: stop using BC_PARSE_NOCALL in dc code Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-22 |
Denys Vlasenko | bc: unbreak read(), remove checks for nested read() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-21 |
Denys Vlasenko | bc: code shrink Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-21 |
Denys Vlasenko | bc: rename BcInstPtr::idx and ::len Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-21 |
Denys Vlasenko | bc: remove unnecessary initializations Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-21 |
Denys Vlasenko | bc: use non-allocated BcNum's where appropriate Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-21 |
Denys Vlasenko | bc: optimize bc_vec_push() usage Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-21 |
Denys Vlasenko | bc: fix for() to not leave data on stack Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-21 |
Denys Vlasenko | bc: fix infinite state growth for "yes 1 | bc" case Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-20 |
Denys Vlasenko | bc: fix comment Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-20 |
Denys Vlasenko | bc: for(;;) fix from upstream Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-20 |
Denys Vlasenko | bc: shrink bc_program_add_fn() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-20 |
Denys Vlasenko | bc: "dc only" config does not need G.prog.fn_map Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-20 |
Denys Vlasenko | bc: fix keyword matching to not think "ifz" is the... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-20 |
Denys Vlasenko | bc: shrink "dc only" code by dropping unused structure... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-19 |
Denys Vlasenko | bc: shorten bc_program_addFunc() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-19 |
Denys Vlasenko | bc: fix "dc only" and "bc only" configs Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-19 |
Denys Vlasenko | bc: rename dc-specific functions, simplify zdc_program_execS... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-19 |
Denys Vlasenko | bc: rename zbc_parse_string->bc_parse_pushSTR, do not... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-19 |
Denys Vlasenko | bc: avoid bc_vec_item() calls in bc_vm_run() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-19 |
Denys Vlasenko | bc: avoid bc_vec_item() calls in bc_array_copy() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-19 |
Denys Vlasenko | bc: avoid successive bc_vec_item(&func->autos, i) Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-19 |
Denys Vlasenko | bc: remove unnecessary union use Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-19 |
Denys Vlasenko | bc: "unsigned_n > 0" is shorter code than "unsigned_n... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-19 |
Denys Vlasenko | bc: open-code bc_parse_updateFunc() macro Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-19 |
Denys Vlasenko | bc: make bc_program_addFunc() return new idx, untangle... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-19 |
Denys Vlasenko | bc: "reload stack only after insts" change missed a... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-19 |
Denys Vlasenko | bc: rename a few functions Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-19 |
Denys Vlasenko | bc: remove redundant strdup+free in zbc_parse_call() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-19 |
Denys Vlasenko | bc: delete G.prog.strmb for real Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-19 |
Denys Vlasenko | bc: in execution loop, reload stack only after insts... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: simplify bc_array_expand() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: code shrink Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: code shrink Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: shrink bc_program_pushVar() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: get rid of G.prog.ob, G.prog.strmb Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: do not show -i in --help, it's a NOP (for now) Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: style edit, no code changes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: shrink bc_program_index() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: fix "echo -n '#foo' | bc" not eating last 'o' Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: shrink zdc_parse_expr() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: optimize zbc_lex_string() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: shrink zdc_lex_string() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: another for() loop simplified Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: simplify another for() loop Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: rewrite more for() loops Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: rewrite another for() loop Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: replace signed division / 10 by unsigned Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: rewrite bc_num_compare() to be readable Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: fold zbc_num_stream() into its single caller Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: get rid of BcNum BcProgram::ib,hexb Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
next |