bc: store library in ASCII, shrink keyword parsing code
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 4 Dec 2018 23:22:34 +0000 (00:22 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 5 Dec 2018 14:43:35 +0000 (15:43 +0100)
commit51fb8aa5c132446b188196cd6b3d55ff255461dd
tree2c51c216ddd48d2901748093f3b55de1a8ffcf23
parentcb9a99f3bb883e319e674a45f906fd3a85c235f7
bc: store library in ASCII, shrink keyword parsing code

Also, use ARRAY_SIZE() where appropriate

function                                             old     new   delta
bc_lib                                              1878    1877      -1
bc_program_index                                      66      64      -2
bc_lex_token                                        1282    1266     -16
bc_lex_kws                                           220     160     -60
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/4 up/down: 0/-79)             Total: -79 bytes
   text    data     bss     dec     hex filename
 987518     485    7296  995299   f2fe3 busybox_old
 987440     485    7296  995221   f2f95 busybox_unstripped

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