]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
v4: Further simplifications and fixes for tmpl_dcursors (#4651)
authorNick Porter <nick@portercomputing.co.uk>
Thu, 11 Aug 2022 11:03:56 +0000 (12:03 +0100)
committerGitHub <noreply@github.com>
Thu, 11 Aug 2022 11:03:56 +0000 (19:03 +0800)
commit31ac7003e4aeee25cff2edfa151c06cee8daead7
treef897e89af18784da0b2c72ff5dcf3b272e9ff1d6
parent6a4adce704d453575f11a147055907dd9346be51
v4: Further simplifications and fixes for tmpl_dcursors (#4651)

* Amalgamate child_eval functions for all tmpl types

* Remove unused list_head from eval function

* Define _tmpl_cursor_common_push

to clarify push / pop on the nested cursor stack

* Move matching of attribute da to dcursor iterator function

* Just use a single child cursor init function

The only difference between a leaf and intermediate node is allocation
of the #tmpl_cursor_nested_t

* Evaluation function no longer needed
src/lib/server/tmpl_dcursor.c
src/lib/server/tmpl_dcursor.h