]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: compat: add short aliases for a few very commonly used types
authorWilly Tarreau <w@1wt.eu>
Fri, 26 Mar 2021 16:28:47 +0000 (17:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Mar 2021 16:54:15 +0000 (17:54 +0100)
commitbe362fd992fb3d4d1709b58ad1698f20ce82aee7
treeab1f5698113d30908da495e13a411328db34ab93
parentb8bd1ee8935cbbb54e88bf8420fff3583f79d916
MINOR: compat: add short aliases for a few very commonly used types

Very often we use "int" where negative numbers are not needed (and can
further cause trouble) just because it's painful to type "unsigned int"
or "unsigned", or ugly to use in function arguments. Similarly sometimes
chars would absolutely need to be signed but nobody types "signed char".
Let's add a few aliases for such types and make them part of the standard
internal API so that over time we can get used to them and get rid of
horrible definitions. A comment also reminds some commonly available
types and their properties regarding other types.
include/haproxy/compat.h