bc: simplify input pointer manipulation while lexing
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 25 Dec 2018 22:15:59 +0000 (23:15 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 25 Dec 2018 22:15:59 +0000 (23:15 +0100)
commitc192b0442b0b3f50d4fbb34322e07f0ff3c5aecd
treecd2e0a52eb585c261ae3f65fb71b9a6f63ab97db
parentecb62edd478e8ae2b1a5f3d122e316345909a805
bc: simplify input pointer manipulation while lexing

function                                             old     new   delta
bc_lex_name                                           70      68      -2
zbc_lex_number                                       177     174      -3
bc_vm_init                                           679     676      -3
bc_lex_whitespace                                     42      39      -3
zbc_parse_text_init                                   55      51      -4
bc_lex_lineComment                                    37      29      -8
bc_lex_assign                                         34      26      -8
zbc_lex_next                                        2039    1965     -74
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/8 up/down: 0/-105)           Total: -105 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/bc.c