MINOR: ist: add a macro to ease const array initialization
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Sep 2017 13:24:10 +0000 (15:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 21 Sep 2017 13:32:31 +0000 (15:32 +0200)
commit2ba672726c05f55dc70d3e887444c64a8decca64
tree50818bf7197a91f49ca12c253c38dc4c3aabbb2a
parent82967bf9b3e551d93fc5afc24958cc631f0c7fbf
MINOR: ist: add a macro to ease const array initialization

It's not possible to use strlen() in const arrays even with const
strings, but we can use sizeof-1 via a macro. Let's provide this in
the IST() macro, as it saves the developer from having to count the
characters.
include/common/ist.h