libbb: unified config parser (By Vladimir Dronnikov)
authorDenis Vlasenko <vda.linux@googlemail.com>
Tue, 15 Jul 2008 21:09:30 +0000 (21:09 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Tue, 15 Jul 2008 21:09:30 +0000 (21:09 -0000)
commite559e0a75738044403e9a43f54ccb0ac3091cd9a
tree9216b28c5e34aa5fed658d7893201947eec861b2
parent0ed090e184739b6722a87acab644a8df24be09d4
libbb: unified config parser (By Vladimir Dronnikov)
mdev: use it

function                                             old     new   delta
config_read                                            -     400    +400
config_open                                            -      43     +43
config_close                                           -       9      +9
qrealloc                                              33      36      +3
compare_keys                                         735     737      +2
xstrtoull_range_sfx                                  296     295      -1
qgravechar                                           109     106      -3
get_address                                          181     178      -3
next_token                                           928     923      -5
sv_main                                             1228    1222      -6
find_main                                            418     406     -12
next_field                                            32       -     -32
make_device                                         1269    1184     -85
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 2/7 up/down: 457/-147)          Total: 310 bytes
include/libbb.h
libbb/Kbuild
libbb/parse_config.c [new file with mode: 0644]
util-linux/mdev.c