]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: add a new typed argument list parsing framework
authorWilly Tarreau <w@1wt.eu>
Thu, 19 Apr 2012 13:24:50 +0000 (15:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 18:57:10 +0000 (20:57 +0200)
commit2ac5718dbd4ec722ece228e9f613d2be74eee9da
treedfcb61c369d9ccbcfd4f75fec9e699c1a0c367b2
parentd53e2428d162e10ef0ec95a77b59da7db7937adf
MEDIUM: add a new typed argument list parsing framework

make_arg_list() builds an array of typed arguments with their values,
that the caller describes how to parse. This will be used to support
multiple arguments for ACLs and patterns, which is currently problematic
and prevents ACLs and patterns from being merged. Up to 7 arguments types
may be enumerated in a single 32-bit word, including their number of
mandatory parts.

At the moment, these files are not used yet, they're only built. Note that
the 4-bit encoding for the type has left only one unused type!
Makefile
Makefile.bsd
Makefile.osx
include/proto/arg.h [new file with mode: 0644]
include/types/arg.h [new file with mode: 0644]
src/arg.c [new file with mode: 0644]
tests/test-arg.c [new file with mode: 0644]