MINOR: pattern: make the delete and prune functions more generic
authorWilly Tarreau <w@1wt.eu>
Mon, 2 Nov 2020 18:26:02 +0000 (19:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 5 Nov 2020 18:27:09 +0000 (19:27 +0100)
commit6d8a68914ea460b06cda2a1b657d7a436588c9ad
tree8425273ff40f1c11952aa7aca9c24d1c3e2666b7
parent9b5c8bbc89541bee761e4c9eb9f8c5ba18c8a7b9
MINOR: pattern: make the delete and prune functions more generic

Now we have a single prune() function to act on an expression, and one
delete function for the lists and one for the trees. The presence of a
pointer in the lists is enough to warrant a free, and we rely on the
PAT_SF_REGFREE flag to decide whether to free using free() or regfree().
include/haproxy/pattern-t.h
include/haproxy/pattern.h
src/http_acl.c
src/pattern.c