]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: map: uses HAProxy facilities to store default value
authorThierry FOURNIER <tfournier@haproxy.com>
Thu, 12 Mar 2015 23:10:16 +0000 (00:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 13 Mar 2015 13:10:30 +0000 (14:10 +0100)
commit933e5deb2b4fa73bb260a91aae94530ca6ead832
treed090b270dd6c4f2180c36b690f050d40cdb956ba
parent9e7ec0897677d434ab9de4a58da30cbf8216b2e5
MEDIUM: map: uses HAProxy facilities to store default value

The default value is stored in a special struct that describe the
map. This default value is parsed with special parser. This is
useless because HAProxy provides a space to store the default
value (the args) and HAProxy provides also standard parser for
the input types (args again).

This patch remove this special storage and replace it by an argument.
In other way the args of maps are declared as the expected type in
place of strings.
include/types/map.h
src/map.c