]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Compact bools in the stack frame into a bit field
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 24 May 2017 23:07:59 +0000 (19:07 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 24 May 2017 23:07:59 +0000 (19:07 -0400)
src/include/interpreter.h

index e3596189252ebc4a517383e87d1334159ad03709..fb87483e30297f2493ad684f1112999b76128589 100644 (file)
@@ -228,18 +228,18 @@ typedef struct {
  *
  * Each request as an unlang interpreter stack associated with it, which represents its progress
  * through the server.  Because the interpreter stack is distinct from the C stack, we can have
- * a single system thread, have many thousands of pending requests
+ * a single system thread with many thousands of pending requests
  */
 typedef struct {
+       unlang_t                *instruction;                   //!< The unlang node we're evaluating.
        rlm_rcode_t             result;
        int                     priority;
        unlang_type_t           unwind;                         //!< Unwind to this one if it exists.
-       bool                    do_next_sibling;
-       bool                    was_if;
-       bool                    if_taken;
-       bool                    resume;
-       bool                    top_frame;
-       unlang_t                *instruction;                   //!< The unlang node we're evaluating.
+       bool                    do_next_sibling : 1;
+       bool                    was_if : 1;
+       bool                    if_taken : 1;
+       bool                    resume : 1;
+       bool                    top_frame : 1;
 
        /** Stack frame specialisations
         *