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 |
2018-12-18 |
Denys Vlasenko | bc: fixes to bugs found while testing 64-bit build Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-18 |
Denys Vlasenko | bc: fixed from 64-bit compile Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-17 |
Denys Vlasenko | udhcpc: check that 4-byte options are indeed 4-byte... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-17 |
Denys Vlasenko | bc: remove "error after expression parsing" check Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-17 |
Denys Vlasenko | bc: tighten up input NUL handling Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-17 |
Denys Vlasenko | bc: simplify zdc_parse_string() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-17 |
Denys Vlasenko | bc: use common strings Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-17 |
Denys Vlasenko | bc: tidy up "z-function" macro machinery Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-17 |
Denys Vlasenko | bc: parse file arguments piecemeal (do not read entire... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-17 |
Denys Vlasenko | bc: move fflush to the _actual_ execution loop Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: fix typo: defone -> define Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: factor out common code Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: remove use of "BcInstPtr ip" object from loop parsing Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: store only index in p->exits, it's the only thing... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: p->exits.func is never zero, do not check for that Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: remove redundant JUMP generation when parsing ... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: simplify use of "ip" in loop parsing functions Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: shring bc_lib[] Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: shrink zbc_parse_if() a bit more Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: stop using p->exits when parsing if() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: preparation to stop using p->exits when parsing... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: fix "print 1,2,3" parsing Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: disallow empty statement as function body Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: allow only one <newline> between if() and stmt Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: simplify bc_parse_pushName(), do not free name... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: simplify zbc_parse_break_or_continue(), logic is... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: fold zbc_parse_else() into its only caller Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: fold bc_parse_noElse() into its only caller Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: delete unused (write-only) BcParse::nbraces member Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: fixes for multi-line if/while/for Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: fix handling of 'return' not in functions, and... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-16 |
Denys Vlasenko | bc: partially rewrite parser, tests pass, ^C might... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-15 |
Denys Vlasenko | bc: lexer debugging, added some failing test cases Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-15 |
Denys Vlasenko | bc: simplify BC_INST_JUMP[_ZERO] handling Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-14 |
Denys Vlasenko | bc: rewrite "block flag stack" using simple realloc... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-14 |
Denys Vlasenko | bc: drop zbc_parse_endBody() bool parameter, move its... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-14 |
Denys Vlasenko | bc: shorten one message, make defines more readable Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-14 |
Denys Vlasenko | bc: pull zbc_lex_next() call out of zbc_parse_operator... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-14 |
Denys Vlasenko | bx: add more debug scaffolding Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-14 |
Denys Vlasenko | bc: convert macro bc_parse_push() to function, add... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-14 |
Denys Vlasenko | bc: rename zbc_parse_text() to ..._init(), reuse existing... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-14 |
Denys Vlasenko | bc: compress two constant arguments of bc_lex_assign... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-14 |
Denys Vlasenko | bc: remove stale comment, empty lines, regularize comment... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-14 |
Denys Vlasenko | bc: tweak bc_num_parseDecimal() for readability, logic... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-14 |
Denys Vlasenko | bc: shrink s() in library again Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-14 |
Denys Vlasenko | bc: yet another library shrink Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-14 |
Denys Vlasenko | bc: shrink internal library yet more Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-14 |
Denys Vlasenko | bc: shrink internal library more Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-14 |
Denys Vlasenko | bc: shrink internal library Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-13 |
Denys Vlasenko | bc: group ENABLE_BC code a bit better, no logic changes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-13 |
Denys Vlasenko | bc: fix "dc only" bug Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-13 |
Denys Vlasenko | bc: unbreak "only bc" and "only dc" configs Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-13 |
Denys Vlasenko | bc: simplify bc_lex_whitespace() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-13 |
Denys Vlasenko | bc: G.sbgn and G.send are unused, remove them Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-13 |
Denys Vlasenko | bc: simplify filename saving in zbc_vm_file() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-13 |
Denys Vlasenko | bc: do not append duplicate NUL, reduce indentation... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-13 |
Denys Vlasenko | bc: change bc_read_line() and zbc_vm_stdin() to avoid... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-13 |
Denys Vlasenko | bc: further simplification in zbc_vm_stdin() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-13 |
Denys Vlasenko | bc: fix another thinko Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-13 |
Denys Vlasenko | bc: fix a thinko: dc uses [] string delimiters, bot bc! Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-13 |
Denys Vlasenko | bc: fix comment handling Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-13 |
Denys Vlasenko | bc: further zbc_vm_stdin() optimizations Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-13 |
Denys Vlasenko | bc: shrink zbc_vm_stdin() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-13 |
Denys Vlasenko | bc: trim config help text, add a few comments, no code... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-12 |
Denys Vlasenko | bc: unbreak CONFIG_FEATURE_BC_SIGNALS=y config Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-12 |
Denys Vlasenko | bc: remove lexer function pointer Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-12 |
Denys Vlasenko | bc: remove parse function pointer Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-12 |
Denys Vlasenko | bc: convert two more functions to "z" logic Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-12 |
Denys Vlasenko | bc: remove BC_STATUS_EOF (again), the condition is... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-12 |
Denys Vlasenko | dc: fix EOF handling in case of last line being incomplete Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-12 |
Denys Vlasenko | testsuite: add bc and dc tests Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-12 |
Denys Vlasenko | bc: further conversions to "z" logic Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-12 |
Denys Vlasenko | bc: optimize bc_parse_pushIndex() Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
2018-12-12 |
Denys Vlasenko | bc: convert even more of lexer functions to "z" convention Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
commit | commitdiff | tree |
next |