httpd: simplify insane conf file parser
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 22 Apr 2009 13:49:16 +0000 (13:49 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Wed, 22 Apr 2009 13:49:16 +0000 (13:49 -0000)
commit1cf4a0eb81ed85d222d3310c39ac89c84c13ca17
tree11875bcafe1a1bb8b41ab1ef41d47c0a6d856326
parent574c316e5ac576ba8f4aa07596dd21bca95eb333
httpd: simplify insane conf file parser

function                                             old     new   delta
bb_simplify_abs_path_inplace                           -      98     +98
parse_expr                                           824     832      +8
passwd_main                                         1025    1027      +2
evalvar                                             1374    1376      +2
parse_command                                       1463    1460      -3
bb_simplify_path                                     137      55     -82
parse_conf                                          1572    1422    -150
------------------------------------------------------------------------------
(add/remove: 3/2 grow/shrink: 3/3 up/down: 126/-251)         Total: -125 bytes
include/libbb.h
libbb/simplify_path.c
networking/httpd.c