]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sample: make sample_parse_expr() able to return an end pointer
authorWilly Tarreau <w@1wt.eu>
Fri, 14 Feb 2020 15:50:14 +0000 (16:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Feb 2020 18:02:06 +0000 (19:02 +0100)
commite3b57bf92f279b56ed78d8ca55ff0b637e46755c
tree0790729f465e94f3d0978c487c3e60f27183173e
parentef21facd9953e44e0410aefb865963dcb66020b9
MINOR: sample: make sample_parse_expr() able to return an end pointer

When an end pointer is passed, instead of complaining that a comma is
missing after a keyword, sample_parse_expr() will silently return the
pointer to the current location into this return pointer so that the
caller can continue its parsing. This will be used by more complex
expressions which embed sample expressions, and may even permit to
embed sample expressions into arguments of other expressions.
14 files changed:
include/proto/sample.h
src/acl.c
src/cfgparse-listen.c
src/dns.c
src/flt_spoe.c
src/http_act.c
src/log.c
src/proto_tcp.c
src/queue.c
src/sample.c
src/server.c
src/stick_table.c
src/tcp_rules.c
src/vars.c