]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: sample: converts uint and sint in 64 bits signed integer
authorThierry FOURNIER <tfournier@arpalert.org>
Mon, 6 Jul 2015 21:43:03 +0000 (23:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Jul 2015 22:48:23 +0000 (00:48 +0200)
commit07ee64ef4d7e67f9d7d4bc7791da0437becbc797
tree057c03604af0c009c4719c520d3465c55913aa15
parent5b4dd683cbeb04729193f1409ac0d86947f1d165
MAJOR: sample: converts uint and sint in 64 bits signed integer

This patch removes the 32 bits unsigned integer and the 32 bit signed
integer. It replaces these types by a unique type 64 bit signed.

This makes easy the usage of integer and clarify signed and unsigned use.
With the previous version, signed and unsigned are used ones in place of
others, and sometimes the converter loose the sign. For example, divisions
are processed with "unsigned", if one entry is negative, the result is
wrong.

Note that the integer pattern matching and dotted version pattern matching
are already working with signed 64 bits integer values.

There is one user-visible change : the "uint()" and "sint()" sample fetch
functions which used to return a constant integer have been replaced with
a new more natural, unified "int()" function. These functions were only
introduced in the latest 1.6-dev2 so there's no impact on regular
deployments.
18 files changed:
doc/configuration.txt
include/types/sample.h
src/acl.c
src/backend.c
src/compression.c
src/frontend.c
src/hlua.c
src/listener.c
src/map.c
src/pattern.c
src/payload.c
src/proto_http.c
src/proto_tcp.c
src/sample.c
src/ssl_sock.c
src/stick_table.c
src/stream.c
src/vars.c