]> git.ipfire.org Git - thirdparty/systemd.git/commit
macro: add macro that simplifies going backwards through an array via pointers
authorLennart Poettering <lennart@poettering.net>
Mon, 21 Mar 2022 13:23:38 +0000 (14:23 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 23 Mar 2022 12:46:08 +0000 (21:46 +0900)
commit50996f04ad1b2db36bb210c1bd1c3526f861ea45
tree79412bcb4f686519c85c500f9d6d4a76d8b299f5
parent4053d11006367d689ae4c9852de5ef5fc4125b35
macro: add macro that simplifies going backwards through an array via pointers

Inspired by #22797, let's avoid some UB when iterating through arrays.
src/basic/macro.h
src/test/test-macro.c