]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/, tests/: addsl(): Add addsl(), a variadic macro
authorAlejandro Colomar <alx@kernel.org>
Sat, 6 Jan 2024 01:17:38 +0000 (02:17 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Tue, 16 Jan 2024 15:58:18 +0000 (16:58 +0100)
commit2e56af190222f2f3c3d26a58f2f085f55c98dd3c
tree30e761b243c4cd66a08d1fd96ef8459831d7f940
parent2e5fc4c90b6c04ed4aca43e906122ff2d85dc081
lib/, tests/: addsl(): Add addsl(), a variadic macro

Add a variadic macro addsl() that accepts an arbitrary number of
addends, instead of having specific versions like addsl2() or addsl3().

It is internally implemented by the addslN() function, which itself
calls addsl2().  addsl3() is now obsolete and thus removed.

Code should just call addsl().

Link: <https://github.com/shadow-maint/shadow/pull/882#discussion_r1437155212>
Cc: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/adds.c
lib/adds.h
tests/unit/test_adds.c