]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
Add fr_{lst, heap}_foreach() and tests thereof. (#4237)
authorJames Jones <jejones3141@gmail.com>
Thu, 7 Oct 2021 01:39:58 +0000 (20:39 -0500)
committerGitHub <noreply@github.com>
Thu, 7 Oct 2021 01:39:58 +0000 (20:39 -0500)
commiteca78cf7dd6f627e6c6375e1b791da93c9abe4f2
treeaf47dadf2c9a2d70961ac556ae9b807f46a1d981
parent00b15dff59e954cbeb9cfb82e8520315a43dd214
Add fr_{lst, heap}_foreach() and tests thereof. (#4237)

Note that because we have to declare an fr_{lst, heap}_iter as well
as a variable of type pointer to the element type of the {lst, heap},
we must take the approach of fr_dlist_foreach_safe(). Correct uses
will thus look like they have unbalanced braces.
src/lib/util/heap.h
src/lib/util/heap_tests.c
src/lib/util/lst.h
src/lib/util/lst_tests.c