From: Arran Cudbard-Bell Date: Sun, 19 Feb 2023 22:52:25 +0000 (-0600) Subject: xlat: Move entry to the start of the expression X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72d838a5a19f0166d07656a9bea78547a6561936;p=thirdparty%2Ffreeradius-server.git xlat: Move entry to the start of the expression It's generally the most efficient place to put it when we're traversing linked lists --- diff --git a/src/lib/unlang/xlat_priv.h b/src/lib/unlang/xlat_priv.h index 6d81e51cc08..2d0751d2ad0 100644 --- a/src/lib/unlang/xlat_priv.h +++ b/src/lib/unlang/xlat_priv.h @@ -138,13 +138,14 @@ typedef struct { * These nodes form a tree which represents one or more nested expansions. */ struct xlat_exp_s { + fr_dlist_t entry; + char const * _CONST fmt; //!< The original format string (a talloced buffer). fr_token_t quote; //!< Type of quoting around XLAT_GROUP types. xlat_flags_t flags; //!< Flags that control resolution and evaluation. xlat_type_t _CONST type; //!< type of this expansion. - fr_dlist_t entry; #ifndef NDEBUG char const * _CONST file; //!< File where the xlat was allocated.