]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: pattern: The expected type is stored in the pattern head, and conversion...
authorThierry FOURNIER <tfournier@exceliance.fr>
Mon, 27 Jan 2014 13:19:53 +0000 (14:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 17 Mar 2014 17:06:07 +0000 (18:06 +0100)
commit5d344087856e9c7b324afeb635835fcbd4f797b4
treeb299744435abed1d720da90f460a70db8c754e4b
parentc5959fd5d4f9bc5b1700fe9acb6fa3af72700c15
MEDIUM: pattern: The expected type is stored in the pattern head, and conversion is executed once.

This patch extract the expect_type variable from the "struct pattern" to
"struct pattern_head". This variable is set during the declaration of
ACL and MAP. With this change, the function "pat_parse_len()" become
useless and can be replaced by "pat_parse_int()".

Implicit ACLs by default rely on the fetch's output type, so let's simply do
the same for all other ones. It has been verified that they all match.
include/proto/pattern.h
include/types/pattern.h
src/acl.c
src/dumpstats.c
src/map.c
src/pattern.c
src/proto_http.c