]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: acl: have a pointer to the keyword name in acl_expr
authorWilly Tarreau <w@1wt.eu>
Sun, 31 Mar 2013 20:59:32 +0000 (22:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 3 Apr 2013 00:13:01 +0000 (02:13 +0200)
commit93fddf1dbc27b0bf32c05f31d017652a160a7e4e
treed01e8ec10619c99ffb069b4b59bbb88abbd2cf42
parentacca90d8e5db53f9d23aac5606d6ff05602a19bc
MEDIUM: acl: have a pointer to the keyword name in acl_expr

The acl_expr struct used to hold a pointer to the ACL keyword. But since
we now have all the relevant pointers, we don't need that anymore, we just
need the pointer to the keyword as a string in order to return warnings
and error messages.

So let's change this in order to remove the dependency on the acl_keyword
struct from acl_expr.

During this change, acl_cond_kw_conflicts() used to return a pointer to an
ACL keyword but had to be changed to return a const char* for the same reason.
include/proto/acl.h
include/types/acl.h
src/acl.c
src/cfgparse.c
src/proto_tcp.c