]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: acl: cleanup some of the redundancy and spaghetti after last fix
authorWilly Tarreau <w@1wt.eu>
Fri, 29 Aug 2014 17:09:48 +0000 (19:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 29 Aug 2014 17:13:32 +0000 (19:13 +0200)
commitaa4e32e10a126ad8370551c9ce0c65882f59d6bc
tree3097acc1ab63fcbf38de54541bc3873ef8b4ac97
parent6f0ddca67a0d261886d4e665c241e80243186be0
CLEANUP: acl: cleanup some of the redundancy and spaghetti after last fix

This code aims at clearing up the ACL parsing code a bit to make it
more obvious what happens in the case of an ACL keyword and what happens
in the case of a sample expression. Variables prev_type and cur_type were
merged, and ACL keyword processing functions are checked only once.

This patch could be backported into 1.5 after the previous patch, in order
to keep the code more maintainable.
src/acl.c