]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
xlat: Move entry to the start of the expression
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 19 Feb 2023 22:52:25 +0000 (16:52 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 19 Feb 2023 22:55:46 +0000 (16:55 -0600)
It's generally the most efficient place to put it when we're traversing linked lists

src/lib/unlang/xlat_priv.h

index 6d81e51cc0856c2803ec0e836aec19aab81894ba..2d0751d2ad0fdbd9d59e7102c1749f8674060b0a 100644 (file)
@@ -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.