]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] config: factor out the parsing of 20 req*/rsp* keywords
authorWilly Tarreau <w@1wt.eu>
Thu, 28 Jan 2010 18:33:49 +0000 (19:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 Jan 2010 18:42:59 +0000 (19:42 +0100)
commitade5ec430d01b4ba06fd67a63fcee85fea46ba28
treecfa4755d69e5d0d131dc398d1e1d61b6575aff26
parent3ec18a0eee772cb1fad7d66d1314725c0a642adb
[MEDIUM] config: factor out the parsing of 20 req*/rsp* keywords

A new function was added to take care of the common code between
all those keywords. This has saved 8 kB of object code and about
500 lines of source code. This has also permitted to spot and fix
minor bugs (allocated args that were never used).

The code could be factored even more but that would make it a bit
more complex which is not interesting at this stage.

Various tests have been performed, and the warnings and errors are
still correctly reported and everything seems to work as expected.
src/cfgparse.c