mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-15 05:41:16 +01:00
Very often we want to associate one or two flags to a pointer, to put a type on it or whatever. This patch provides this in standard.h in the form of a few inline functions which combine a void * pointer with an int and return an unsigned long called a composite address. The functions allow to individuall set, retrieve both the pointer and the flags. This is very similar to what is used in ebtree in fact.