commit | bb519c7cd145454b8a1f8ad20e5acabfa436c7ea | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Jan 28 23:04:39 2014 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Jan 28 23:34:45 2014 +0100 |
tree | 7c565bd681638694f23d1e6e528d77d4092df4e6 | |
parent | e9101695ef354d5e3e17e8e65d224f380aa841e5 [diff] |
MINOR: tools: add very basic support for composite pointers 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.